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

Do you need help with your App Inventor project?

I can help you: for one hour I charge 25 USD.
Please contact me at info [at] puravidaapps [dot] com for details!
For questions about App Inventor, please use the App Inventor forum. Thank you.


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.


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 10 USD via Paypal
to Pura Vida Apps

2. Bitcoin

After having received your payment I will be happy to send the source code to you.
Thank you! Taifun

Please check your spam folder in case you did not receive the example!
I usually will send the project not later than 24 hours after having received your payment.


Terms and Conditions

Back to top of page ...

Home | Snippets | Tutorials | Extensions | News | Forums | Links | Search | Contact