2022-09-22 15:13:02 +02:00
|
|
|
"""
|
|
|
|
## PythonRMV
|
|
|
|
|
2022-09-22 18:35:21 +02: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 15:13:02 +02:00
|
|
|
|
2022-09-23 15:01:00 +02:00
|
|
|
## Usage
|
2022-09-22 15:13:02 +02:00
|
|
|
|
2022-09-23 15:01:00 +02:00
|
|
|
```py
|
|
|
|
import pyrmv
|
2022-09-22 15:13:02 +02:00
|
|
|
|
2022-10-07 13:47:25 +02:00
|
|
|
# Define a Client with API key
|
|
|
|
client = pyrmv.Client("AcessId")
|
2022-09-22 15:13:02 +02:00
|
|
|
|
2022-09-23 15:01:00 +02:00
|
|
|
# Get origin's and destination's location
|
2022-10-07 13:47:25 +02:00
|
|
|
origin = client.stop_by_name("Frankfurt Hauptbahnhof", max_number=3)[0]
|
|
|
|
destination = client.stop_by_coords(50.099613, 8.685449, max_number=3)[0]
|
2022-09-22 15:13:02 +02:00
|
|
|
|
2022-09-23 15:01:00 +02:00
|
|
|
# Find a trip by locations got
|
2022-10-07 13:47:25 +02:00
|
|
|
trip = client.trip_find(origin_id=origin.id, dest_id=destination.id)
|
2022-09-23 15:01:00 +02:00
|
|
|
```
|
2022-09-22 15:13:02 +02:00
|
|
|
"""
|
|
|
|
|
2022-09-22 18:35:21 +02:00
|
|
|
__name__ = "pyrmv"
|
2024-09-08 01:44:18 +02:00
|
|
|
__version__ = "0.4.0"
|
2022-09-22 18:35:21 +02:00
|
|
|
__license__ = "MIT License"
|
2022-09-22 15:13:02 +02:00
|
|
|
__author__ = "Profitroll"
|
|
|
|
|
2023-11-24 12:35:51 +01:00
|
|
|
from . import classes, const, enums, errors, raw, utility
|
2023-11-24 12:39:25 +01:00
|
|
|
from .classes.client import Client
|