Project-OSRM / osrm-backend

Open Source Routing Machine - C++ backend
http://map.project-osrm.org
BSD 2-Clause "Simplified" License
6.42k stars 3.4k forks source link

Retrieval of Nearest locations rather than node ID #7029

Open muteebali opened 2 months ago

muteebali commented 2 months ago

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?