Falcosc / locus-addon-tasker

Locus Maps API useable as Tasker Plugin
GNU General Public License v3.0
9 stars 2 forks source link

Get waypoint details near by my position #6

Open homipc opened 5 years ago

homipc commented 5 years ago

From offered actions is more wanted "Start navigation to:" for me. But even more I'd like action: "warning on POI". I often use POI in different situations: 1) NAVIGATION: I need only some navigation command (not all navigation), where is important change direction etc. 2) BIKE AUDIO TRAINING: now Locus allows only time or distance warnings, but I need warning in the exact location. I set POI in this location and I obtain text to speach warning. 3) GEOCACHING etc. Thanks for this the exact location. Homi

Falcosc commented 5 years ago

Thank you for this idea. I would call it "get closest POI"

Navigation commands could be difficult because Locus API rely on requesting information, we have to check POI distance regularly. I could implement a "search the closest POI filtered by something" Then you could make the following POIs:

Tasker would look like this execute every 5 minutes:

But there is one small problem, if you travel 2000m in 5 minutes you may never get close to 1000m range:

If checks run at 11:00 and 11:05 you will never below 1000m and miss your tasker notification.

Would this help for your navigation and audio training?

Falcosc commented 5 years ago

@homipc would a solution based on "get POI near to current position" be good enough for you? Then I would like to implement something like this.

Falcosc commented 5 years ago

I did start to create a feature which finds point near to current location.

It will have radius and name filter. And to prevent duplicate notification it will have an option to exclude a list of point ids.

Falcosc commented 5 years ago

For NAVIGATION you can set up how many notifications will get calculated on a track https://docs.locusmap.eu/doku.php?id=manual:user_guide:functions:navigation:settings#advanced_settings. If medium does create to many commands and low not enough, then you need to look at POI Alert

For BIKE AUDIO TRAINING You can use POI Alert for your points: https://docs.locusmap.eu/doku.php?id=manual:user_guide:functions:poi_alert

GEOCACHING you can use POI Alert or try increasing notification frequency https://docs.locusmap.eu/doku.php?id=manual:user_guide:functions:guidance#target_notifications

@homipc Is there anything which could be improved there? It would be quite easy to get points near current location over api to do anything with them.