commit a96eede1510fd6aa5c999433eef914179cf91c72
parent 18833579b7626cfefedecf2934eb2b1914afd7c6
Author: ctucx <c@ctu.cx>
Date: Mon, 10 Feb 2020 19:40:40 +0100
parent 18833579b7626cfefedecf2934eb2b1914afd7c6
Author: ctucx <c@ctu.cx>
Date: Mon, 10 Feb 2020 19:40:40 +0100
types for polylines
1 file changed, 26 insertions(+), 0 deletions(-)
diff --git 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