32 lines
749 B
Python
32 lines
749 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
|
|
|
|
# Set API key
|
|
accessId = "Something"
|
|
|
|
# Get origin's and destination's location
|
|
origin = pyrmv.raw.stop_by_name(accessid, "Frankfurt Hauptbahnhof", maxNo=3)[0]
|
|
destination = pyrmv.raw.stop_by_coords(accessid, 50.099613, 8.685449, maxNo=3)[0]
|
|
|
|
# Find a trip by locations got
|
|
trip = pyrmv.trip_find(accessId, origin_id=origin.id, dest_id=destination.id)
|
|
```
|
|
"""
|
|
|
|
__name__ = "pyrmv"
|
|
__version__ = "0.2.1"
|
|
__license__ = "MIT License"
|
|
__author__ = "Profitroll"
|
|
|
|
from . import raw
|
|
from . import errors
|
|
from . import utility
|
|
from . import classes
|
|
from .methods import * |