I am quite new to Graphhopper. Recently I have been trying to implement my own spatial rules according to the documentation. Specifically I want to change the speed allowed on different types of roads for different countries.
I have created rules similar to [GermanySpatialRule], and extended [CountriesSpatialRuleFactory] to match the country code in question. I have also uncommented the line
spatial_rules.location in config.yml, pointing at core/files/spatialrules/countries.geo.json.
However when I test it, the rules do not appear to take effect, although I do get “Created the SpatialRuleLookup with the following rules:”, and then the list of my rules when I compile.
As a test, I tried to modify the existing spatial rules for Germany and Austria and here again I saw no change in the routing.
What am I missing?
Any help is appreciated!