Skip to first unread message

marcelo gamarra

unread,
Apr 13, 2018, 6:45:49 PM4/13/18
to MIT App Inventor Forum
hola quisiera saber si es posible que realizar una aplicación que pueda marcar en un mapa el recorrido que va haciendo la persona en tiempo real, utilizando el telefono es para que pa persona piueda orientarse fijandose en su celular a donde esta y cuanto le falta para llegar al destino.
gracias

SteveJG

unread,
Apr 13, 2018, 9:19:49 PM4/13/18
to MIT App Inventor Forum
This is possible but complex.

To display the current location, use either the Google Map API and the AI2 LocationSensor   

 or use the new MIT Map component and post the geocoordinate sresults to a CloudDB .  The app can display a map  in real time on both devices.  This solution requires the developer compile the app and  the person waiting for the device to arrive having the same app.

or  send an eMail or a Text message with the coordinates or a link to a Google Static map.

Getting the information to indicate "how much longer to get to the target." is more difficult.  It too can be done elegantly using the Map component and using the Google Directions API.  It can be done less elegantly by calculating the straight line distance from the device to the target and assuming an average travel speed to estimate the arrival time.

That was easy.  What is not easy is coding the app.  So, the answer to your question is YES.  You will need advanced App Inventor programming skills to do this.

There is no tutorial showing how to do this.  I mentioned several ways to accomplish this task; there are other ways using a FusionTable and a FusionTable Map or simply using the Google Directions API and / or Google Distance API with a Web component and parsing the resulting directions JSON.  App Inventor is flexible.

Regards,
Steve
Reply all
Reply to author
Forward
0 new messages