NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

I'm new to OSRM and I need to clarify the following output. Given the following "nearest/v1/driving/79.862839,6.916330?number=5"" Please explain why 2 nodeIDs are given? If so how can a nodeID be 0 in the second array element below.

 {
    "distance": 16.449379,
    "hint": "hVIAgP___38IAAAAWgAAAAcAAAAAAAAACAAAAFoAAAAHAAAAAAAAADAAAADpm8IEaIlpADecwgTqiGkAAQCvA_-mldo=",
    "location": [
        79.862761,
        6.916456
    ],
    "name": " ",
    "nodes": [
        1346377747,
        4009185293
    ]
},
{
    "distance": 20.219594,
    "hint": "hVIAgP___38HAAAABwAAAAAAAABaAAAABwAAAAcAAAAAAAAAWgAAADAAAACOm8IEMIlpADecwgTqiGkAAACvA_-mldo=",
    "location": [
        79.86267,
        6.9164
    ],
    "name": "Srimath Anagarika Dharmapala Mawatha",
    "nodes": [
        0,
        1346377747
    ]
},

Also is there any possibility to get the distance between two nodes if NodeIDs are provided?

asked 09 Feb '18, 15:46

KlausD94's gravatar image

KlausD94
21334
accept rate: 0%

edited 09 Feb '18, 16:44

scai's gravatar image

scai ♦
33.3k21309459

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×205
×85

question asked: 09 Feb '18, 15:46

question was seen: 906 times

last updated: 09 Feb '18, 16:44

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum