App Inventor and embedded HTML/JavaScript


Get coordinates for any Location on Google Maps back to App Inventor

It was asked in the App Inventor Forum, is there a capability in AppInventor to get co-ordinates for any location clicked on Google Maps and pass that back to the application? App Inventor together with embedded HTML/JavaScript can do that!

The example uses the Google Maps API V3. For your own app, first obtain an API key. Then use your API key for your queries to the Google Maps API inside the embedded HTML/Javascript document.

I used one of the map icons from Nicolas Mollet as marker , you can easily adjust that.

The tools extension offers the method PathToAssets which always returns the correct path to the assets.

App Inventor Blocks


For questions about App Inventor,
please ask in the App Inventor community.Thank you.

Screenshots

Questions and Answers

Q1: I don't understand how it can take the selected position (with this app) to my 'blocks' as an argument of Latitude and Longitude??
A: In the example the selected coordinates are displayed in the title of the app. See the screenshot below how to get lat and long.

Btw. I recommend you to do the MIT tutorials first to learn the basics of App Inventor.

Download

You can test with the apk file, which is available for download here: Download apk file

Buy the source code for App Inventor


You can buy the source code of this project.
With your payment you accept the terms and conditions below.

Payment options

1. Paypal

Please transfer 12 USD via Paypal
to Pura Vida Apps

2. Bitcoin

After having received your payment I will be happy to send the download link to you. Please let me know your Google account! I usually will send the download link not later than 24 hours after having received your payment.

Thank you! Taifun

Terms and Conditions

Back to top of page ...


Home | Snippets | Tutorials | Extensions | Links | Search | Privacy Policy | Contact