Skip to content

Retrieval of Nearest locations rather than node ID #7029

Open
@muteebali

Description

@muteebali

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions