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
In some usecases it would be useful to treat highway=construction as accessible roads.
For example, I could use map matching API to snap some older GPX track and get OSM informations. This would allow to maintain original GPX geometry without avoiding roads under construction.
By default highway=construction shouldn't be accessible but there should be an option to change that with custom profile.
Can you share the custom model you used? Please note that the custom model must be used on the server-side (otherwise it won't work here but also not for map matching)
Basically with a client-side model you are adding more statements to the existing list of the server-side model (priority and speed sections separately) and so you currently cannot "unblock" roads that are blocked via the server-side model. Furthermore map matching, isochrone and spt endpoints only work with server-side models.
Activity
karussell commentedon Jun 10, 2024
Would be adding CONSTRUCTION to RoadClass sufficient for your use case?
caspg commentedon Jun 10, 2024
@karussell I think it's not enough. I had to add
"construction"toallowedHighwayshere.But then
constructionways are included by default so they would have to be de-prioritized by default somehwere.karussell commentedon Jun 10, 2024
Did you try the custom model I suggested:
{ "priority":[ { "if": "road_class != CONSTRUCTION", "multiply_by": "bike_priority" }, { "if": "road_class == CONSTRUCTION", "multiply_by": "1" }, { "else_if": "!bike_access && (!backward_bike_access || roundabout)", "multiply_by": "0" }, { "else_if": "!bike_access && backward_bike_access", "multiply_by": "0.2" } ] }without the change to the source code in BikeCommonAccessParser.java?
caspg commentedon Jun 10, 2024
@karussell without changing
BikeCommonAccessParser.javait's not working.After adding changing BikeCommonAccessParser:
karussell commentedon Jun 10, 2024
Can you share the custom model you used? Please note that the custom model must be used on the server-side (otherwise it won't work here but also not for map matching)
caspg commentedon Jun 10, 2024
@karussell Your custom model worked server side! I need to read more about client vs server side models.
Open PR with adding
CONSTRUCTIONTORoadClass?karussell commentedon Jun 10, 2024
Basically with a client-side model you are adding more statements to the existing list of the server-side model (priority and speed sections separately) and so you currently cannot "unblock" roads that are blocked via the server-side model. Furthermore map matching, isochrone and spt endpoints only work with server-side models.
👍
caspg commentedon Jun 10, 2024
Thanks for the explanation. I'll prepare the PR shortly.