Skip to content

Invalid NodeIDs in Route Response #276

@wangyoucao577

Description

@wangyoucao577

With annotations=true parameter, we can get full nodes of each leg in route response. But some of the node IDs are invalid.

Here's a example:

  • Request against my deployment: GET /route/v1/driving/-122.006349,37.364336;-121.875654,37.313767?alternatives=3&annotations=true
  • Got some nodeIDs in response/routes/legs/annotations/nodes:49873171102,237301600001101,49939882102,49939887102,1008867724102,1008867725102,955126824102,9280805980001100,49939901102

The ID 9280805980001100 is incorrect. The correct value is 9280805980001101, which is correct in OSRM compiled data:

$ /osrm-build/osrm-files-extractor -alsologtostderr -f map.osrm.nbg_nodes -summary 1000000000 2>&1 | grep 92808059800011
I0410 06:24:26.269722      32 contents.go:59]     osm_node_ids[220188955] 9280805980001101        

It might be something wrong in unpack step, any may be caused by some IDs overflow: the problem seems only occurred on extermly long IDs.
Will investigate further.

Metadata

Metadata

Assignees

Labels

BugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions