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, 15:46

KlausD94's gravatar image

KlausD94
212
accept rate: 0%

edited 09 Feb, 16:44

scai's gravatar image

scai ♦
29.3k17259411

Be the first one to answer this question!
toggle preview

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:

×124
×38

question asked: 09 Feb, 15:46

question was seen: 79 times

last updated: 09 Feb, 16:44

powered by OSQA