Add documentation about OSM node ids in nearest service response
This commit is contained in:
parent
0fc8b6289c
commit
c61acaf8be
@ -14,6 +14,8 @@
|
|||||||
- `OSRM` object accepts a new option `memory_file` that stores the memory in a file on disk.
|
- `OSRM` object accepts a new option `memory_file` that stores the memory in a file on disk.
|
||||||
- Internals
|
- Internals
|
||||||
- CHANGED #4845: Updated segregated intersection identification
|
- CHANGED #4845: Updated segregated intersection identification
|
||||||
|
- Documentation:
|
||||||
|
- ADDED: Add documentation about OSM node ids in nearest service response [#4436](https://github.com/Project-OSRM/osrm-backend/pull/4436)
|
||||||
|
|
||||||
|
|
||||||
# 5.16.0
|
# 5.16.0
|
||||||
|
13
docs/http.md
13
docs/http.md
@ -120,6 +120,7 @@ In addition to the [general options](#general-options) the following options are
|
|||||||
- `code` if the request was successful `Ok` otherwise see the service dependent and general status codes.
|
- `code` if the request was successful `Ok` otherwise see the service dependent and general status codes.
|
||||||
- `waypoints` array of `Waypoint` objects sorted by distance to the input coordinate. Each object has at least the following additional properties:
|
- `waypoints` array of `Waypoint` objects sorted by distance to the input coordinate. Each object has at least the following additional properties:
|
||||||
- `distance`: Distance in meters to the supplied input coordinate.
|
- `distance`: Distance in meters to the supplied input coordinate.
|
||||||
|
- `nodes`: Array of OpenStreetMap node ids.
|
||||||
|
|
||||||
#### Example Requests
|
#### Example Requests
|
||||||
|
|
||||||
@ -134,6 +135,10 @@ curl 'http://router.project-osrm.org/nearest/v1/driving/13.388860,52.517037?numb
|
|||||||
{
|
{
|
||||||
"waypoints" : [
|
"waypoints" : [
|
||||||
{
|
{
|
||||||
|
"nodes": [
|
||||||
|
2264199819,
|
||||||
|
0
|
||||||
|
],
|
||||||
"hint" : "KSoKADRYroqUBAEAEAAAABkAAAAGAAAAAAAAABhnCQCLtwAA_0vMAKlYIQM8TMwArVghAwEAAQH1a66g",
|
"hint" : "KSoKADRYroqUBAEAEAAAABkAAAAGAAAAAAAAABhnCQCLtwAA_0vMAKlYIQM8TMwArVghAwEAAQH1a66g",
|
||||||
"distance" : 4.152629,
|
"distance" : 4.152629,
|
||||||
"name" : "Friedrichstraße",
|
"name" : "Friedrichstraße",
|
||||||
@ -143,6 +148,10 @@ curl 'http://router.project-osrm.org/nearest/v1/driving/13.388860,52.517037?numb
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"nodes": [
|
||||||
|
2045820592,
|
||||||
|
0
|
||||||
|
],
|
||||||
"hint" : "KSoKADRYroqUBAEABgAAAAAAAAAAAAAAKQAAABhnCQCLtwAA7kvMAAxZIQM8TMwArVghAwAAAQH1a66g",
|
"hint" : "KSoKADRYroqUBAEABgAAAAAAAAAAAAAAKQAAABhnCQCLtwAA7kvMAAxZIQM8TMwArVghAwAAAQH1a66g",
|
||||||
"distance" : 11.811961,
|
"distance" : 11.811961,
|
||||||
"name" : "Friedrichstraße",
|
"name" : "Friedrichstraße",
|
||||||
@ -152,6 +161,10 @@ curl 'http://router.project-osrm.org/nearest/v1/driving/13.388860,52.517037?numb
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"nodes": [
|
||||||
|
0,
|
||||||
|
21487242
|
||||||
|
],
|
||||||
"hint" : "KioKgDbbDgCUBAEAAAAAABoAAAAAAAAAPAAAABlnCQCLtwAA50vMADJZIQM8TMwArVghAwAAAQH1a66g",
|
"hint" : "KioKgDbbDgCUBAEAAAAAABoAAAAAAAAAPAAAABlnCQCLtwAA50vMADJZIQM8TMwArVghAwAAAQH1a66g",
|
||||||
"distance" : 15.872438,
|
"distance" : 15.872438,
|
||||||
"name" : "Friedrichstraße",
|
"name" : "Friedrichstraße",
|
||||||
|
Loading…
Reference in New Issue
Block a user