types for polylines
This commit is contained in:
parent
18833579b7
commit
a96eede151
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue