Hi, Trying to map match coordinates to a road that is part of a test track (classified as raceway, se screenshot from josm below) but I get no snaps from GH (v5.3) at all. I have tried looking at the profiles and encoders to find where these are filtered out but no luck. I am loading GH with a standard car profile. But I only get this error:
Sequence is broken for submitted track at time step 0. observation:Observation{point=57.7702467,12.7439825}, 0 candidates: [].
Likely the raceways are not connected to the main road network, so they are filtered out by GraphHopper. Use prepare.min_network_size: 0 in your config.yml file to make sure all such âsubnetworksâ are kept.
When I tried this with the default prepare.min_network_size: 200 I could see that the raceway track we disabled (not hoverable) in the MVT layer. Then I set it to 0 as you proposed, but still the track was disabled.
highway=raceway is probably not supported either. Which profile and which vehicle are you using? For example if you use âcarâ I think you need to add raceway to the defaultSpeedMap in CarFlagEncoder (for 5.3)
This did solve it, although the document is a bit outdated. Instead of injecting an EncodingManager I wrote a small FlagEncoderFactory and injected that.
Yes either create a new one or modify the existing one. Modifying the existing one will probably never really hurt, because I expect the raceways to be disconnected from the remaining network anyway.
config-example.yml only uses a single profile with the default car for which raceways are not accessible. If you do want to do it like this you need to add "raceway" to the list of highwayValues in CarAccessParser.java:
To modify the speed as well you need to edit CarAverageSpeedParser.java accordingly, otherwise it will be 10km/h (the default for highway types that arenât listed explicitly there).