PythonRMV/pyrmv/classes/Gis.py
2022-09-24 12:08:32 +02:00

10 lines
255 B
Python

from isodate import parse_duration
class Gis():
def __init__(self, ref: str, route: dict):
self.ref = ref
self.dist = route["dist"]
self.duration = parse_duration(route["durS"])
self.geo = route["dirGeo"]