Collecting info from navi app ?

Post your questions and help other users.

Moderator: Martin

Post Reply
Tordenfod
Posts: 31
Joined: 18 Sep 2014 15:20

Collecting info from navi app ?

Post by Tordenfod » 17 Aug 2017 13:31

I have a flow that reply to SMS when driving in my car. Pretty simple one, if Bluetooth radio connected reply to all incoming SMS .. "I'm driving if urgent please ring - i Can talk on handsfree "

Is it somehow possible to collect the remaining time to destination from my navi APP ( any one will do- Waze, maps, Nokia - you name it) so I could add a time stamp on the auto reply saying when I'm able to text again ...and maybe even the destination ( for a whitelist)

User avatar
Desmanto
Posts: 2696
Joined: 21 Jul 2017 17:50

Re: Collecting info from navi app ?

Post by Desmanto » 17 Aug 2017 16:22

You can take a look at mbirth's flow. He uses google direction API to calculate the delay, but can be use to calculate the ETA from your current location.

Just change the location to your current location, invoke the API to your destination. Parse the ETA, then you reply with "xx minutes to destination". You have to choose the destination first before started driving
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

Post Reply