Updated version to 0.1.9 and changed README

This commit is contained in:
2022-09-23 15:01:00 +02:00
parent 0805f1becf
commit 590eca20d8
3 changed files with 34 additions and 25 deletions

View File

@@ -20,6 +20,21 @@ If you have everything listed in [requirements](#requirements), then let's begin
2. `cd PythonRMV`
3. `python setup.py install`
# 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"])
```
# Frequently Asked Questions
- [Why are there raw versions and formatted ones?](#why-are-there-raw-versions-and-formatted-ones)