Updated version to 0.1.9 and changed README
This commit is contained in:
15
README.md
15
README.md
@@ -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)
|
||||
|
Reference in New Issue
Block a user