cyang-kth / fmm

Fast map matching, an open source framework in C++
https://fmm-wiki.github.io/
Apache License 2.0
884 stars 211 forks source link

The returned matching result is null #139

Closed visile closed 3 years ago

visile commented 3 years ago

Hello, I'm sorry to disturb you again.Because my own road network is more detailed than that downloaded by OSM, I want to use my own road network for matching. I've followed what you said, and the points is clearly on the road but the result of map matching with my own road network is null or strange.

  1. ID field should be different for two reverse edge in the road attribute table. 2.Source target fields should be replaced for the reversed one. If one is source 1 target 2, the other one should be source 2, target 1 in the road attribute table. 3.The geometry of the feature should be reversed for the feature. One is LineString(1 1, 0 0, 1 2) the other one should be LineString(1 2, 0 0, 1 1) Can I send you the data and have a look at it for me? Thank you very much.
cyang-kth commented 3 years ago

You can send me a link with the road network and a single trajectory that cannot be matched.

visile commented 3 years ago

I have sent the road network data and track data to your mailbox(cyang@kth.se). I wonder if you can receive them.

cyang-kth commented 3 years ago

I did not receive it. Maybe you can share it with a link of Google drive or Onedrive.

visile commented 3 years ago

mapmatching_test.zip You can download it here.Thank a lot.

cyang-kth commented 3 years ago

@visile

The topology of your network seems to be wrong.

image

The trajectory moves upward but the edges are downward directed. You need to prepare a network with correct topology.

image

visile commented 3 years ago

oh!I think it's OK to have the edge of repetition and the starting and ending points. Is the establishment and visualization of the network topology in QGIS?

cyang-kth commented 3 years ago

The visualization is in QGIS but the creation of topology you need to refer to PostGIS or libraries in Python.