Closed aoles closed 5 years ago
On top of this, for a given way only the first matching OSM toll tag is being processed. For example, if there is already toll=no
than a more specific toll:hgv=yes
might not be picked up, such as here: https://maps.openrouteservice.org/directions?n1=50.030584&n2=19.821138&n3=15&a=50.034209,19.815044,50.025704,19.823112&b=4a&c=0&f5=2&k1=en-US&k2=km
At the moment in order to pick up hgv-specific tolls with
avoid: tollways
one has to additionally specifyvehicle_type
in options. Apart from the fact that this behavior us not documented, this is unpractical because currently the result doesn't depend on the particular value ofvehicle_type
anyway (even though it potentially could...).Consider changing the logic such that results from
TollwayExtractor
depend onprofile
rather thanvehicle_type
.