Add "via" to Readme.
This commit is contained in:
parent
5940bdaa6d
commit
d3256e0387
10
README.md
10
README.md
|
@ -71,6 +71,7 @@ The following optional parameters are accepted:
|
||||||
* "time": Time at which to find a connection (e.g. 20:00, default: current time)
|
* "time": Time at which to find a connection (e.g. 20:00, default: current time)
|
||||||
* "mode": May be set to "arr" if "time" should be considered time of arrival
|
* "mode": May be set to "arr" if "time" should be considered time of arrival
|
||||||
* "details": May be set to return additional details to connections (see below)
|
* "details": May be set to return additional details to connections (see below)
|
||||||
|
* "via": Return connections passing through a specific station
|
||||||
|
|
||||||
This request will return a list of connections between the two stations given in
|
This request will return a list of connections between the two stations given in
|
||||||
the "from" and "to" parameters, ordered by time of departure.
|
the "from" and "to" parameters, ordered by time of departure.
|
||||||
|
@ -112,6 +113,15 @@ Götzendorf/Leitha&time=12:00)
|
||||||
(https://bahnapi.xyz/?type=conn&from=Wolkersdorf im Weinviertel&to=
|
(https://bahnapi.xyz/?type=conn&from=Wolkersdorf im Weinviertel&to=
|
||||||
Götzendorf/Leitha&time=12:00&mode=arr)
|
Götzendorf/Leitha&time=12:00&mode=arr)
|
||||||
|
|
||||||
|
To make sure the connection passes through a specific station, the name or ID
|
||||||
|
of that station may be passed as a "via" parameter. Up to three "via" parameters
|
||||||
|
may be passed in a single request and will be applied in the order of their
|
||||||
|
appearance in the request.
|
||||||
|
|
||||||
|
* [Example "conn" request with three "via" stations]
|
||||||
|
(https://bahnapi.xyz/?type=conn&from=Bruck an der Mur&to=Salzburg&via=Leoben
|
||||||
|
&via=Selzthal&via=Linz)
|
||||||
|
|
||||||
### Short requests
|
### Short requests
|
||||||
|
|
||||||
For "val" and "conn" requests, it is possible to use shorter requests by passing
|
For "val" and "conn" requests, it is possible to use shorter requests by passing
|
||||||
|
|
Loading…
Reference in a new issue