Skip to content

Match Service returning .0 node ids and miss node ids sometimes #7222

@Snakebyte1986

Description

@Snakebyte1986

I'm trying to use the OSRM match API to match 2 points (in my example it's more, but here these 2 points should be enough to describe the problem).

Here is my first API call:

http://router.project-osrm.org/match/v1/driving/11.477535847086955,48.749855543032595;11.476003042296412,48.74958324901701?steps=true&geometries=geojson&overview=full&annotations=true

This will return the following list of nodes - in the only leg/annotation object in the result:
[2354330292, 1757124316, 12048921950.0, 11630879020.0, 7166186928, 17200929, 7166186929, 11630879020.0, 8259716038, 1067415735]

Here are my questions to this:

  • What are these nodes ending with .0 about ? For example if i search for these nodes via simple osm (https://www.openstreetmap.org/node/11630879020.0) is simply not existing, if i cut the .0 it seems to point to a traffic light related node (which is fine).
  • If i check this one https://www.openstreetmap.org/node/12048921950 it seems to be any node on the comores really far away :D
  • Why is this 11630879020.0 repeating in there? It seems to be the traffic light in front of the crossing...i see no reason why it should repeat in a straight matching.

Here is my second API call:

http://router.project-osrm.org/match/v1/driving/11.472807405624849,48.74887167455827;11.471210070433614,48.74854135783585?steps=true&geometries=geojson&overview=full&annotations=true

Its just a few meters more ahead on the same street.

Again just one leg as a result with these nodes:
[3432945284, 10139453990.0, 3405335504, 414267420, 3405335064, 10139453990.0, 3446450866, 3442740736, 2117890512]

  • Again i get this node with .0 which if i cut the .0 is pointing to any other location really far away. This time at least in Germany.
    10139453990
  • And again two times?
  • I' really missing node number https://www.openstreetmap.org/node/10139453988 which seems to represent the traffic light here?

To sum it up:

  • What are these strange .0 nodes in the results ? Is this behaviour documented anywhere?
  • Why does one call include the traffic light nodes and the other does not ?
  • Why is it included 2 times in the first call?
  • What is this node id 10139453990.0 and why it is included in the result?

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