You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 1, 2021. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 1, 2021. It is now read-only.
What is the reason for this match? Is there a way for me as a user to improve the input?
Is it possible that the map matching algorithm respects bearing?
green line = matched track
points = input track
grey lines = OSM highways
Hm, after cloning the latest build I get the following error:
$ ./map-matching.sh action=match gpx=test.gpx
Exception in thread "main" java.lang.NullPointerException
at com.graphhopper.GraphHopper.getFirstVehicle(GraphHopper.java:128)
at com.graphhopper.GraphHopper.init(GraphHopper.java:602)
at com.graphhopper.matching.MapMatchingMain.start(MapMatchingMain.java:56)
at com.graphhopper.matching.MapMatchingMain.main(MapMatchingMain.java:39)
Okay. Then you fetch graphhopper this via the snapshot repo. (which is currently rebuild only every 8 hours or so). You'll have to get it and install it or what 2 hours (will be build at 11 German time again I think)
I can't find anything in the documentation about integration or unit tests. Maybe you can reference me to documents on how to do that. Else we can also leave this issue for now.
No problem, an example of a unit test you can find in the source. I tried it with the pbf file you mentioned and can now reproduce it. Will investigate.
The reason is that the highway (Yunus Emre) is slightly better for the path finding algorithm (e.g. 60kph vs. 30kph). Still here the shorter street should be significantly preferred as there are many GPX points which are also close. This will be fixed.
(There was a mechanism to prefer edges with many GPX points before but due to other problems I removed it at that time. Will investigate it next week.)
Activity
karussell commentedon Feb 18, 2015
If you change the separatedSearchDistance (to a higher value or something) is this fixed?
ustroetz commentedon Feb 18, 2015
No this did not fix it.
The GPX file I try to match is the below. I try to match it to the Istanbul Metro Extract.
karussell commentedon Feb 18, 2015
Hmmh, I'll have a look in the next days
ustroetz commentedon Feb 18, 2015
Thanks!
karussell commentedon Feb 27, 2015
Hmmh, I cannot reproduce this with a car profile. Which profile did you use?
ustroetz commentedon Feb 27, 2015
Where can I set the profile? I guess I used the default profile.
karussell commentedon Feb 27, 2015
Hmmh, okay, the default was 'car'. (There is a new command line option 'vehicle=car', the old would have been too hidden via a config.properties)
ustroetz commentedon Feb 27, 2015
I'll give it a try again on Monday with the latest build and let you know my results.
Also we should add this parameter to the readme.
karussell commentedon Feb 27, 2015
Its already there ;)
ustroetz commentedon Mar 2, 2015
Hm, after cloning the latest build I get the following error:
karussell commentedon Mar 2, 2015
That is a GraphHopper issue. I'll fix.
karussell commentedon Mar 2, 2015
Would you update the graphhopper and map-matching repo?
ustroetz commentedon Mar 2, 2015
I have the latest map-matching repo. Though I am not using the graphhopper repo. It least I am not aware of it.
karussell commentedon Mar 2, 2015
Okay. Then you fetch graphhopper this via the snapshot repo. (which is currently rebuild only every 8 hours or so). You'll have to get it and install it or what 2 hours (will be build at 11 German time again I think)
2 remaining items
ustroetz commentedon Mar 2, 2015
Still get the same error. Probable because I have the wron GrapHopper version. It says:
Where can I set which GrapHopper it should use/fetch?
karussell commentedon Mar 2, 2015
you clone the GraphHopper repo and install it locally:
mvn clean install -DskipTests=true(this will copy a jar into ~/.m2/repository/...)ustroetz commentedon Mar 2, 2015
Okay, got it to work. However still matches like before. I used the car profile.
Here the full log:
karussell commentedon Mar 3, 2015
Can you create an integration or even better unit test for it? Maybe we use different PBF files
ustroetz commentedon Mar 3, 2015
I am using this PBF file: https://s3.amazonaws.com/metro-extracts.mapzen.com/istanbul_turkey.osm.pbf
I will look into integration or unit test tomorrow morning.
ustroetz commentedon Mar 4, 2015
I can't find anything in the documentation about integration or unit tests. Maybe you can reference me to documents on how to do that. Else we can also leave this issue for now.
karussell commentedon Mar 4, 2015
No problem, an example of a unit test you can find in the source. I tried it with the pbf file you mentioned and can now reproduce it. Will investigate.
karussell commentedon Mar 4, 2015
The reason is that the highway (Yunus Emre) is slightly better for the path finding algorithm (e.g. 60kph vs. 30kph). Still here the shorter street should be significantly preferred as there are many GPX points which are also close. This will be fixed.
karussell commentedon Mar 4, 2015
(There was a mechanism to prefer edges with many GPX points before but due to other problems I removed it at that time. Will investigate it next week.)
ustroetz commentedon Mar 4, 2015
👍 Sounds great!
initial trial to fix #13
karussell commentedon Oct 12, 2016
Merged branch with a fix https://github.com/graphhopper/map-matching/compare/issue_13
minor unit test for #13