Skip to first unread message

Fernando Silveira

unread,
Jun 15, 2016, 8:03:00 AM6/15/16
to MIT App Inventor Forum
Hi guys,

I'm trying to develop a simple app to calculate distance and travel duration from point A to B.

I was looking on other posts here and many of them direct us to WHERE IS MY CAR app and/or to look for google APIs (https://developers.google.com/maps/documentation/directions/).

The fact is, I have lots of doubts...

1st of all) I didn't find the similar info that ActivityStarter will use in google API page, are they the same used in WHERE IS MY CAR APP?

Action =  android.intent.action.VIEW
ActivityClass = com.google.android.maps.MapsActivity
ActivityPackage =  com.google.android.apps.maps

2nd) Considering I'm able to set up the correct URL to activate Google API, how do I process its response? I mean, how do I extract from the response the info I need (distance and trip duration) ?

Hope you can help me here.

Regards,
Fernando




Taifun

unread,
Jun 15, 2016, 12:54:55 PM6/15/16
to MIT App Inventor Forum
see these threads https://groups.google.com/forum/#!searchin/mitappinventortest/Google$20Maps$20API$20distance and use the web component to access one of the Google Maps APIs
Taifun

Trying to push the limits of App Inventor! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun. 

Peep Prants

unread,
Jun 15, 2016, 2:24:02 PM6/15/16
to MIT App Inventor Forum
There is lot of similar app in app store. Do you think someting like this?

http://peep.prants.ee/distance/

Then use webview coponent only ;)

Fernando Silveira

unread,
Jun 15, 2016, 7:36:28 PM6/15/16
to MIT App Inventor Forum
That's exactly what I want to create using AI2. Where do I start?

ScottFerguson

unread,
Jun 15, 2016, 10:08:10 PM6/15/16
to mitappinv...@googlegroups.com
I have used the 'great circle formula' with lat,lon coordinates to calculate distance in a project here.
Upload the aia file for study.
Reply all
Reply to author
Forward
0 new messages