Updated to version 0.2.0

This commit is contained in:
Profitroll
2022-09-23 22:58:05 +02:00
parent da21f3ad77
commit 977ac2d559
3 changed files with 12 additions and 9 deletions

View File

@@ -8,19 +8,20 @@ Small module that makes your journey with RMV REST API somehow easier. Based ful
```py
import pyrmv
accessId = "Something" # Set API key
# Set API key
accessId = "Something"
# 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"]
origin = pyrmv.raw.stop_by_name(accessid, "Frankfurt Hauptbahnhof", maxNo=1)[0]
destination = pyrmv.raw.stop_by_coords(accessid, 50.099613, 8.685449, maxNo=1)[0]
# Find a trip by locations got
trip = pyrmv.raw.trip_find(accessId, originId=origin["id"], destExtId=destination["id"])
trip = pyrmv.raw.trip_find(accessId, originId=origin.id, destExtId=destination.id)
```
"""
__name__ = "pyrmv"
__version__ = "0.1.9"
__version__ = "0.2.0"
__license__ = "MIT License"
__author__ = "Profitroll"