I have a flow that sends an sms "on my way" to my spouse when I leave work.
Is there a way to make Automagic read the ETA (estimated time of arrival) from Google Maps? Then I could put that into the SMS too.
Get ETA from Google Maps? - for sending an sms
Moderator: Martin
Re: Get ETA from Google Maps? - for sending an sms
Hi,
There's no built-in feature to get this information easily. You could try to read the value from the screen with action Control UI.
Regards,
Martin
There's no built-in feature to get this information easily. You could try to read the value from the screen with action Control UI.
Regards,
Martin
Re: Get ETA from Google Maps? - for sending an sms
Thank you Martin for the quick reply.
I wonder if other users have thought of this already so I don't have to reinvent it
I wonder if other users have thought of this already so I don't have to reinvent it
Re: Get ETA from Google Maps? - for sending an sms
You could query Google's Directions API like I did here: http://automagic4android.com/forum/view ... f=3&t=5773
BlackBerry KEY2, Android 8.1.0
Re: Get ETA from Google Maps? - for sending an sms
Thank you mbirth, this was extremely helpful!!
I've modified your code to my purpose and will post it here when it's complete.
I thought I saw in the API documentation that car directions does not take live traffic into consideration, which is a major drawback during rush hour, but now I can't find that note again.
At any rate, I can use this to get a pessimistic duration for the trip home, which I will integrate into an SMS to my wife along the lines of,
"I'm leaving work now, ETA 26 mins."
Automagic is wonderful <3
I've modified your code to my purpose and will post it here when it's complete.
I thought I saw in the API documentation that car directions does not take live traffic into consideration, which is a major drawback during rush hour, but now I can't find that note again.
At any rate, I can use this to get a pessimistic duration for the trip home, which I will integrate into an SMS to my wife along the lines of,
"I'm leaving work now, ETA 26 mins."
Automagic is wonderful <3
Re: Get ETA from Google Maps? - for sending an sms
Or you could just use the amazing ETA functionality already built into Maps.
https://www.blog.google/products/maps/s ... ogle-maps/
https://www.blog.google/products/maps/s ... ogle-maps/
Re: Get ETA from Google Maps? - for sending an sms
Sure thing, except I don't want to use Maps manually, I want to automatically get the ETA into a variable to use in an SMS. Don't see a way to do that.