2023-03-30 06:44:58 +00:00
|
|
|
package internal
|
|
|
|
|
2023-05-07 23:29:59 +00:00
|
|
|
import (
|
|
|
|
"git.coopgo.io/coopgo-platform/carpool-service/interoperability/ocss"
|
|
|
|
"github.com/paulmach/orb/geojson"
|
|
|
|
)
|
2023-03-30 06:44:58 +00:00
|
|
|
|
2023-09-26 14:42:46 +00:00
|
|
|
// Booking is the internal struct to desribe a booking. It overrides ocss.Booking and adds driver and passenger routes
|
2023-03-30 06:44:58 +00:00
|
|
|
type Booking struct {
|
2023-05-07 23:29:59 +00:00
|
|
|
ocss.Booking `bson:",inline"`
|
|
|
|
|
|
|
|
DriverRoute *geojson.FeatureCollection `bson:"driver_route,omitempty"`
|
|
|
|
PassengerRoute *geojson.FeatureCollection `bson:"passenger_route,omitempty"`
|
2023-03-30 06:44:58 +00:00
|
|
|
}
|