Add tiles management
This commit is contained in:
21
tiles/routes.go
Normal file
21
tiles/routes.go
Normal file
@@ -0,0 +1,21 @@
|
||||
package tiles
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/paulmach/orb/geojson"
|
||||
)
|
||||
|
||||
type TiledRouteType int
|
||||
|
||||
const (
|
||||
TiledRouteRegular TiledRouteType = iota
|
||||
TiledRoutePunctual
|
||||
)
|
||||
|
||||
type TiledRoute struct {
|
||||
ID string
|
||||
Type TiledRouteType
|
||||
Route *geojson.FeatureCollection
|
||||
DepartureDate time.Time
|
||||
}
|
||||
Reference in New Issue
Block a user