Add HTTP docs
This commit is contained in:
parent
21f15f0a29
commit
261636febb
@ -31,6 +31,7 @@ To pass parameters to each location some options support an array like encoding:
|
|||||||
|generate\_hints |`true` (default), `false` |Adds a Hint to the response which can be used in subsequent requests, see `hints` parameter. |
|
|generate\_hints |`true` (default), `false` |Adds a Hint to the response which can be used in subsequent requests, see `hints` parameter. |
|
||||||
|hints |`{hint};{hint}[;{hint} ...]` |Hint from previous request to derive position in street network. |
|
|hints |`{hint};{hint}[;{hint} ...]` |Hint from previous request to derive position in street network. |
|
||||||
|approaches |`{approach};{approach}[;{approach} ...]` |Keep waypoints on curb side. |
|
|approaches |`{approach};{approach}[;{approach} ...]` |Keep waypoints on curb side. |
|
||||||
|
|exclude |`{class}[,{class}]` |Additive list of classes to avoid, order does not matter. |
|
||||||
|
|
||||||
Where the elements follow the following format:
|
Where the elements follow the following format:
|
||||||
|
|
||||||
@ -40,12 +41,13 @@ Where the elements follow the following format:
|
|||||||
|radius |`double >= 0` or `unlimited` (default) |
|
|radius |`double >= 0` or `unlimited` (default) |
|
||||||
|hint |Base64 `string` |
|
|hint |Base64 `string` |
|
||||||
|approach |`curb` or `unrestricted` (default) |
|
|approach |`curb` or `unrestricted` (default) |
|
||||||
|
|class |A class name determined by the profile or `none`. |
|
||||||
|
|
||||||
```
|
```
|
||||||
{option}={element};{element}[;{element} ... ]
|
{option}={element};{element}[;{element} ... ]
|
||||||
```
|
```
|
||||||
|
|
||||||
The number of elements must match exactly the number of locations. If you don't want to pass a value but instead use the default you can pass an empty `element`.
|
The number of elements must match exactly the number of locations (except for `generate_hints` and `exclude`). If you don't want to pass a value but instead use the default you can pass an empty `element`.
|
||||||
|
|
||||||
Example: 2nd location use the default value for `option`:
|
Example: 2nd location use the default value for `option`:
|
||||||
|
|
||||||
@ -59,6 +61,9 @@ Example: 2nd location use the default value for `option`:
|
|||||||
# Query on Berlin with three coordinates:
|
# Query on Berlin with three coordinates:
|
||||||
curl 'http://router.project-osrm.org/route/v1/driving/13.388860,52.517037;13.397634,52.529407;13.428555,52.523219?overview=false'
|
curl 'http://router.project-osrm.org/route/v1/driving/13.388860,52.517037;13.397634,52.529407;13.428555,52.523219?overview=false'
|
||||||
|
|
||||||
|
# Query on Berlin excluding the usage of motorways:
|
||||||
|
curl 'http://router.project-osrm.org/route/v1/driving/13.388860,52.517037;13.397634,52.529407?exclude=motorway'
|
||||||
|
|
||||||
# Using polyline:
|
# Using polyline:
|
||||||
curl 'http://router.project-osrm.org/route/v1/driving/polyline(ofp_Ik_vpAilAyu@te@g`E)?overview=false'
|
curl 'http://router.project-osrm.org/route/v1/driving/polyline(ofp_Ik_vpAilAyu@te@g`E)?overview=false'
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user