Skip to first unread message

Lee Byeonggyu

unread,
Jun 5, 2017, 8:33:52 AM6/5/17
to mitappinv...@googlegroups.com
Hello I'm Appinventor starter. I'm planning to make an app that shows location of arduino device. I've been made app that shows longitude and latitude of the arduino via bluetooth(HC-06) and GPS module with MIT Appinventor 2. However, I want to show location with Google map with these GPS data. Please tell me how to make this....

SteveJG

unread,
Jun 5, 2017, 8:54:25 AM6/5/17
to mitappinv...@googlegroups.com
Developers can plot multiple locations using a Google Static Map.  Plot the arduino geocoordinates using a red pin and the Android's location using a blue pin or whatever way you want.

Use a Google Static Map to display multiple locations.  The Google documentation is here https://developers.google.com/maps/documentation/static-maps/intro#quick_example   

With App Inventor you can create something like this AI recreation of the Google example.

The Static Maps API provides a simple way to label the locations, however you are restricted to using a single character for the label.  This link should help you calculate  distance from a location to another location https://groups.google.com/forum/#!searchin/mitappinventortest/distance%7Csort:date/mitappinventortest/enbXUwsOXwE/L7cNcTV4HwAJ 

You could also use a 'simple' Google map ...have you done these tutorials?
You might also want to look at these MIT tutorials that show how to use the LocationSensor, learn how gps works and put it all on a map.

Android, Where's My Car? for App Inventor 2

You parked somewhere near the stadium, but when the concert ends you don't have a clue where the car is. Fortunately you haven't lost your Android phone that never forgets anything, and you remember you have the hot new app, Android, Where's My Car?. With this app, you click a button when you park your car, and the Android uses its location sensor to record the car's GPS coordinates and address. Later, when you reopen the app, it shows you a map from where you are to the remembered location-- problem solved! With this tutorial you'll be able to download a created app and then study the annotated blocks below to better understand the app and App Inventor programming in general. This app covers: GPS, TinyDB, and using Activity Starter to open a map.

Advanced
Map It: Displaying Locations on a Google Map

This tutorial shows how you can develop an app that allows you to record list of addresses and view the address on the Google Maps. It will also show you how view your current location on the Google Map.

Advanced
Exploring with Location Sensor in AI2

The location sensor object is used to communicate with the global positioning satellite receiver (GPS) in your phone/tablet. When the LocationSensor communicates with the built-in GPS receiver, the GPS can determine the location of your device.  The sensor can also work with network/wifi location services.  Finding a location using the network uses very different techniques to determine a location. Location means, the device's present latitude and longitude or it can mean your street address.




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