2023-05-07 23:30:50 +00:00
|
|
|
package internal
|
|
|
|
|
|
|
|
import (
|
|
|
|
"time"
|
|
|
|
|
|
|
|
"git.coopgo.io/coopgo-platform/routing-service"
|
|
|
|
"github.com/paulmach/orb/geojson"
|
|
|
|
)
|
|
|
|
|
2023-09-26 14:42:46 +00:00
|
|
|
// PlannedRouteSchedule describes a route at a specific date, or a journey
|
|
|
|
// It can be used during journeys search to store journeys after they are processed from regular routes and tiles
|
2023-05-07 23:30:50 +00:00
|
|
|
type PlannedRouteSchedule struct {
|
|
|
|
ID string `bson:"_id" json:"id"`
|
|
|
|
Route *geojson.FeatureCollection
|
|
|
|
DepartureDate time.Time `bson:"departureDate"`
|
|
|
|
Itinerary *routing.Route `bson:"itinerary,omitempty"`
|
|
|
|
}
|