From a96eede1510fd6aa5c999433eef914179cf91c72 Mon Sep 17 00:00:00 2001 From: ctucx Date: Mon, 10 Feb 2020 19:40:40 +0100 Subject: [PATCH] types for polylines --- src/types.nim | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) 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