valhalla / valhalla/valhalla

Returned matched.edge_index are all zeros

Open
#3,478 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
6.2k
Forks
981
Avg merge
2d 14h
Merged PRs (30d)
14

Description

I'm currently using Valhalla 3.1.4 to map-match the gps data, but the **matched.edge_index** only returned zeros for almost all the points except the last point(which returns the final edge_index)

An example request to generate the bug:
[example.csv](https://github.com/valhalla/valhalla/files/7783499/example.csv)
"use_timestamps": True,
"begin_time": begin_time_str,
"durations": durations,
"shape": shape,
"costing": "auto",
"shape_match": "map_snap"

Matched results:
In csv:
[matched_result.csv](https://github.com/valhalla/valhalla/files/7783502/matched_result.csv)
In json:
...
[{'distance_from_trace_point': 2.668,
'edge_index': 0,
'type': 'matched',
'time': 214,
'distance_along_edge': 0.354,
'lat': 13.663338,
'lon': 100.503022},
{'distance_from_trace_point': 2.668,
'edge_index': 0,
'type': 'interpolated',
'time': 214,
'distance_along_edge': 0.354,
'lat': 13.663338,
'lon': 100.503022},
{'distance_from_trace_point': 3.175,
'edge_index': 0,
'type': 'matched',
'time': 225,
'distance_along_edge': 0.562,
'lat': 13.662288,
'lon': 100.50258},
{'distance_from_trace_point': 3.175,
'edge_index': 0,
'type': 'interpolated',
'time': 225,
'distance_along_edge': 0.562,
'lat': 13.662288,
'lon': 100.50258},
{'distance_from_trace_point': 6.381,
'edge_index': 34,
'type': 'matched',
'time': 234,
'distance_along_edge': 0.225,
'lat': 13.661333,
'lon': 100.502142}]

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.