ctucx.git: nimhafas

[nimlang] hafas-client library

1 
2 
3 
4 
5 
6 
7 
8 
9 
import ../types
import ../util
import json

proc parseOperator*(op: JsonNode): Operator =
  return (%* {
    "name": op{"name"},
    "id": %* slug(op{"name"}.getStr()),
  }).to(Operator)