Updated README and version to 0.2.1

This commit is contained in:
Profitroll
2022-09-24 13:02:49 +02:00
parent a868c997ac
commit 947e6361f6
3 changed files with 9 additions and 9 deletions

View File

@@ -12,16 +12,16 @@ import pyrmv
accessId = "Something"
# Get origin's and destination's location
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]
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.raw.trip_find(accessId, originId=origin.id, destExtId=destination.id)
trip = pyrmv.trip_find(accessId, origin_id=origin.id, dest_id=destination.id)
```
"""
__name__ = "pyrmv"
__version__ = "0.2.0"
__version__ = "0.2.1"
__license__ = "MIT License"
__author__ = "Profitroll"