Project-OSRM / osrm-backend

Open Source Routing Machine - C++ backend
http://map.project-osrm.org
BSD 2-Clause "Simplified" License
6.43k stars 3.41k forks source link

Planning through living streets #6188

Open Yogurt4 opened 2 years ago

Yogurt4 commented 2 years ago

I'm not sure about global rules but here (Hungary) a living street can be used only for destination access (in addition to the implicit 20 km/h speed limit). It's regulated by the traffic rules [Kresz]. However, OSRM is planning through living street zones.

Example #1, OSRM instance of FOSSGIS running at openstreetmap.org Example #2, OSRM instance run at project-osrm.org

Google Maps and Waze plan a legal route.

datendelphin commented 2 years ago

Hi @Yogurt4 Thank you for the report. That would be a data error in the underlying OpenStreetMap data. These roads are mapped permitting through traffic (normal residential roads, not restricted living srteets).

vasony commented 2 years ago

Hi @datendelphin

In the example #2 above the router gives two alternative routes:

mjjbell commented 2 years ago

It looks like highway=living_street has nation-specific meaning that OSRM does not consider. In Hungary, this includes what would be supported by the access=destination tag to prevent through traffic.

There is support in OSRM for location-specific data during the extraction phase via the Lua profiles. However, I'm not familiar enough with the code to know how much work would is required to translate the living street definitions to restriction and access primitives that OSRM understands.

datendelphin commented 2 years ago

Yes, would be nice if osrm could handle that on a country basis. But to the mappers: The safe way is to map access restrictions: vehicle=destination or motor_vehicle=destination. There have also been lots of discussions about default access for paths and tracks. There the conclusion is similar: it varies a lot across the planet, so the safe thing to do is tag it explicitly. Is there something that would hinder you from tagging access on those streets?

Yogurt4 commented 2 years ago

I disagree with mapping motor_vehicle=destination.

First of all, this restriction comes from the traffic rules. It's implicit, yes. Just as the implicit speed limits, or just as the rule that you're allowed to use a motorway only with vehicles capable to go with at least 60 km/h, e.g., not with bicycles or mopeds - and no one tags motorways with bicycle=no. And no one needs to tag oneway=yes on motorways either.

And a practical objection: One would have to continuously maintain this tagging for all the living streets in the country.

I know the exact rules change by country. For example, the speed limit on living streets is 20 km/h in Hungary, Austria, etc.. However, in Germany, it's only 7 km/h.

github-actions[bot] commented 4 months ago

This issue seems to be stale. It will be closed in 30 days if no further activity occurs.

Yogurt4 commented 4 months ago

Well, dumb bot, you may close this issue. As it seems, no one wants to bother with country-specific rules.

Yogurt4 commented 4 months ago

Why did the issue got closed for pressing Shift+Enter for a line break?