v0.4.0 #53
@ -19,13 +19,11 @@ If you have everything listed in [requirements](#requirements), then let's begin
|
|||||||
|
|
||||||
### Variant 1
|
### Variant 1
|
||||||
|
|
||||||
1. `python -m pip install pyrmv`
|
`python -m pip install pyrmv`
|
||||||
|
|
||||||
### Variant 2
|
### Variant 2
|
||||||
|
|
||||||
1. `git clone https://git.end-play.xyz/profitroll/PythonRMV.git`
|
`python -m pip install git+https://git.end-play.xyz/profitroll/PythonRMV.git`
|
||||||
2. `cd PythonRMV`
|
|
||||||
3. `python setup.py install`
|
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
@ -39,7 +37,7 @@ client = pyrmv.Client("AcessId")
|
|||||||
origin = client.stop_by_name("Frankfurt Hauptbahnhof", max_number=3)[0]
|
origin = client.stop_by_name("Frankfurt Hauptbahnhof", max_number=3)[0]
|
||||||
destination = client.stop_by_coords(50.099613, 8.685449, max_number=3)[0]
|
destination = client.stop_by_coords(50.099613, 8.685449, max_number=3)[0]
|
||||||
|
|
||||||
# Find a trip by locations got
|
# Find a trip by locations you got above
|
||||||
trip = client.trip_find(origin_id=origin.id, dest_id=destination.id)
|
trip = client.trip_find(origin_id=origin.id, dest_id=destination.id)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user