2022-09-22 16:13:02 +03:00
|
|
|
"""
|
|
|
|
## PythonRMV
|
|
|
|
|
2022-09-22 19:35:21 +03:00
|
|
|
Small module that makes your journey with RMV REST API somehow easier. Based fully on official RMV API reference and HAFAS documentation.
|
2022-09-22 16:13:02 +03:00
|
|
|
|
2022-09-23 16:01:00 +03:00
|
|
|
## Usage
|
2022-09-22 16:13:02 +03:00
|
|
|
|
2022-09-23 16:01:00 +03:00
|
|
|
```py
|
|
|
|
import pyrmv
|
2022-09-22 16:13:02 +03:00
|
|
|
|
2022-09-23 16:01:00 +03:00
|
|
|
accessId = "Something" # Set API key
|
2022-09-22 16:13:02 +03:00
|
|
|
|
2022-09-23 16:01:00 +03:00
|
|
|
# Get origin's and destination's location
|
|
|
|
origin = pyrmv.raw.stop_by_name(accessid, "Frankfurt Hauptbahnhof", maxNo=3)[0]["StopLocation"]
|
|
|
|
destination = pyrmv.raw.stop_by_coords(accessid, 50.099613, 8.685449, maxNo=3)[0]["StopLocation"]
|
2022-09-22 16:13:02 +03:00
|
|
|
|
2022-09-23 16:01:00 +03:00
|
|
|
# Find a trip by locations got
|
|
|
|
trip = pyrmv.raw.trip_find(accessId, originId=origin["id"], destExtId=destination["id"])
|
|
|
|
```
|
2022-09-22 16:13:02 +03:00
|
|
|
"""
|
|
|
|
|
2022-09-22 19:35:21 +03:00
|
|
|
__name__ = "pyrmv"
|
2022-09-23 16:01:00 +03:00
|
|
|
__version__ = "0.1.9"
|
2022-09-22 19:35:21 +03:00
|
|
|
__license__ = "MIT License"
|
2022-09-22 16:13:02 +03:00
|
|
|
__author__ = "Profitroll"
|
|
|
|
|
2022-09-23 12:18:18 +03:00
|
|
|
from . import raw
|
2022-09-23 14:53:33 +03:00
|
|
|
from . import errors
|
2022-09-23 16:01:00 +03:00
|
|
|
from . import utility
|
|
|
|
from . import methods
|
2022-09-23 14:53:33 +03:00
|
|
|
from .methods import *
|