organicmaps / organicmaps

🍃 Organic Maps is a free Android & iOS offline maps app for travelers, tourists, hikers, and cyclists. It uses crowd-sourced OpenStreetMap data and is developed with love by MapsWithMe (MapsMe) founders and our community. No ads, no tracking, no data collection, no crapware. Please donate to support the development!
https://organicmaps.app
Apache License 2.0
10.07k stars 964 forks source link

Consider pedestrian part of route in Car navigation mode #2915

Open AntonM030481 opened 2 years ago

AntonM030481 commented 2 years ago

Sometimes user is routed to the wrong side of target building (this applies to pedestrian routing too now). There are 3.000.000 entrances in OSM which can help to solve this problem.

Currently in Car navigation you are routed to the closest point (P) to the center of target object (C). And then there is a "virtual jump" from P to C. This jump is limited to not pass through any obstacle.

There are some large objects (e.g. supermarkets) which are marked with entrances or have pedestrian road right to it border (virtual entrance). It will be great to guide user to travel by car and finish his route by foot.

E.g. 53.9059044, 27.4402135 image

AntonM030481 commented 2 years ago

Most likely it's too difficult to solve this problem. But a lot of small changes together or separately can be done:

  1. Highlight entrances for selected building (currently all entrances are visible at 2 highest zooms only).
  2. When bookmark entrance inherit it's traits from the building (name, category).
  3. Target of driving navigation should be entrance if any (not center of the building).
  4. Show pedestrian part of route (even without any optimization - just to let user an idea what to expect).
  5. Consider entrances in pedestrian routing. #2705
RedAuburn commented 2 years ago

Also see https://github.com/organicmaps/organicmaps/issues/1866

biodranik commented 2 years ago

The entrance is not usually your main target as a driver. You need parking.

AntonM030481 commented 2 years ago

For sure I usually need parking place. But in most of cases info about available parking options is incomplete. It's really difficult to identify ALL available parking options. This is great task but it's it's very difficult to make results not misleading.

If I select some building as my target in 99% I will need to go inside. It does not matter if my primary routing method is by foot, car, or public transport.

Naive approach is to go as close as possible to the center by primary routing method. But if we know that there are specific entrances for this building, why to ignore them?

The basic use case is: User select building as target. There are 2 roads close to it. 1st road in front of building (close to the entrance). 2nd one from back side (no entrance there). User should be routed to the 1st one. Last mile from 2nd road can be really long (sometimes it's not possible just walk around the target building).