types for polylines

This commit is contained in:
Leah 2020-02-10 19:40:40 +01:00
parent 18833579b7
commit a96eede151

View file

@ -166,6 +166,32 @@ type
notFoundException* = object of Exception
errorException* = object of Exception
Polyline* = object
`type`*: string
features*: seq[Feature]
Feature* = object
`type`*: string
properties*: FeatureProperties
geometry*: FeatureGeometry
FeatureProperties* = object
`type`*: string
id*: int
name*: string
location*: FeatureLocation
products*: Products
station*: Station
FeatureGeometry* = object
`type`*: string
coordinates*: seq[float]
FeatureLocation* = object
`type`*: string
latitiude*: float
longitude*: float
const MODES* = [
Train, # nationalExp
Train, # national