Classes restructure
Some checks failed
Tests / test (3.10) (push) Failing after 1m10s
Tests / test (3.11) (push) Failing after 1m7s
Tests / test (3.8) (push) Failing after 1m11s
Tests / test (3.9) (push) Has been cancelled

This commit is contained in:
2023-11-24 12:39:25 +01:00
parent 3a65991257
commit c4b7197267
12 changed files with 20 additions and 20 deletions

13
src/pyrmv/classes/gis.py Normal file
View File

@@ -0,0 +1,13 @@
from typing import Any, Mapping
from isodate import parse_duration
class Gis:
"""Gis object."""
def __init__(self, ref: str, route: Mapping[str, Any]):
self.ref = ref
self.dist = route["dist"]
self.duration = parse_duration(route["durS"])
self.geo = route["dirGeo"]