osmandapp / OsmAnd

OsmAnd
https://osmand.net
Other
4.6k stars 1.01k forks source link

POI Gas Station Widget #18007

Open Sonwon1 opened 1 year ago

Sonwon1 commented 1 year ago

Description

POI Gas Station Widget that would show the distance to the next 1 or 2 gas stations within 1-2 kilometers of the route.

Describe the solution you'd like

POI Gas Station Widget that would show the distance to the next 1 or 2 gas stations within 1-2 kilometers of the route. This widget would go on the left or right panel. Sometimes a gas station is no longer there which is why 2 would be useful.

Would it be to slow to be useful?

Describe alternatives you've considered

Show POI along route does not show the distance to the next gas station without digging into the menus.

mikehgentry commented 1 year ago

It would perhaps be more useful to generalise this (bike tourers for example care more about pubs or toilets than they do about petrol stations...)

So maybe make a widget that shows distance to next visible POI along the route (with a configurable tolerance for deviation). There could be a second widget showing distance to second next, or perhaps an alternative mode for the same widget when you tap it, to help decide how urgent a stop is. You could then handle which POIs you're interested in through quick actions.

Or if that seems too convoluted, maybe just make which POI it points to configurable in the options.

I think it'd also be useful to have an option to show the distance to the nearest (/second nearest) POI irrespective of direction [edit: I imagine that'd be way too expensive to constantly calculate routes for, so it'd have to be straight line measurement, but I could still see it being useful]

17563 is related

smajser commented 1 month ago

It would be good to have option to select all stations or preferred gas stations.

Sonwon1 commented 1 month ago

Also being able to tap on widget and then offer to route you there.

DmitryAlexei commented 1 month ago

The issue might be resolved by adding Quick Action with a custom POI search

mikehgentry commented 1 month ago

That works for visualising it, but the request is for a widget displaying distance along the route. As far as I know that'd be a completely new feature (it's possible to find how far along the route a point is by scrubbing the graph back and forth in 'analyse on map', but it's awkward).

smajser commented 1 month ago

The issue might be resolved by adding Quick Action with a custom POI search

I have created Quick Action for Filling stations, but how can I select, for example, only OMV gas stations to be shown with quick action?

DmitryAlexei commented 1 month ago

You can create custom POI search for Filling stations OMV (for more information see https://download.osmand.net/docs/user/search/search-poi#custom-poi-search). After that, create a single action Quick Action that shows / hides these POIs