diff --git a/src/types.nim b/src/types.nim index 2c01fbc..f93dfa5 100644 --- a/src/types.nim +++ b/src/types.nim @@ -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