PythonRMV/pyrmv/__init__.py

31 lines
792 B
Python

"""
## PythonRMV
Small module that makes your journey with RMV REST API somehow easier. Based fully on official RMV API reference and HAFAS documentation.
## Usage
```py
import pyrmv
accessId = "Something" # Set API key
# 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"]
# Find a trip by locations got
trip = pyrmv.raw.trip_find(accessId, originId=origin["id"], destExtId=destination["id"])
```
"""
__name__ = "pyrmv"
__version__ = "0.1.9"
__license__ = "MIT License"
__author__ = "Profitroll"
from . import raw
from . import errors
from . import utility
from . import methods
from .methods import *