docs: correct forStops() calls in README
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
backported from 591476cc6011210c01624214d7f57e099a48ea66
This commit is contained in:
parent
4b69343d39
commit
5152c4e667
@ -39,13 +39,13 @@ List<Stop> stops = ura.forPosition(51.51009, -0.1345734, 200)
|
|||||||
|
|
||||||
```java
|
```java
|
||||||
// Get next 10 trips for given stops and lines in a single direction (all filters optional)
|
// Get next 10 trips for given stops and lines in a single direction (all filters optional)
|
||||||
List<Trip> trips = ura.forStop("100000")
|
List<Trip> trips = ura.forStops("100000")
|
||||||
.forLines("25", "35")
|
.forLines("25", "35")
|
||||||
.forDirection(1)
|
.forDirection(1)
|
||||||
.getTrips(10);
|
.getTrips(10);
|
||||||
|
|
||||||
// Get trips from given stop towards your destination
|
// Get trips from given stop towards your destination
|
||||||
List<Trip> trips = ura.forStopByName("Piccadilly Circus")
|
List<Trip> trips = ura.forStopsByName("Piccadilly Circus")
|
||||||
.towards("Marble Arch")
|
.towards("Marble Arch")
|
||||||
.getTrips();
|
.getTrips();
|
||||||
```
|
```
|
||||||
@ -54,7 +54,7 @@ List<Trip> trips = ura.forStopByName("Piccadilly Circus")
|
|||||||
|
|
||||||
```java
|
```java
|
||||||
// Get next 10 trips for given stops and lines in a single direction (all filters optional)
|
// Get next 10 trips for given stops and lines in a single direction (all filters optional)
|
||||||
List<Message> msgs = ura.forStop("100000")
|
List<Message> msgs = ura.forStops("100000")
|
||||||
.getMessages();
|
.getMessages();
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user