osrm-backend icon indicating copy to clipboard operation
osrm-backend copied to clipboard

Retrieval of Nearest locations rather than node ID

Open muteebali opened this issue 1 year ago • 0 comments

Feature

The nearest API service computes the nearest node IDs and snap locations based on a provided location. The OSRM API should include a feature that returns both the nearest locations, along with the corresponding node IDs and snap-in locations.

Nearest API Call

{ "code": "Ok", "waypoints": [ { "hint": "hM4bgP___384AAAAOgAAABEAAAAAAAAAP3F9QpEJoz-9bJVBAAAAADgAAAA6AAAAEQAAAAAAAABTCgEAaxzOAFQRIgN0HM4ATBEiAwEA3w4cClna", "nodes": [ 30690709, 1841273491 ], "distance": 1.07925309, "name": "Falkenberger Chaussee", "location": [ 13.507691, 52.564308 ] } ] }

Is there any possibility to add corresponding locations of eac node ID in the response?

muteebali avatar Sep 04 '24 13:09 muteebali