This question came up yesterday in the Webinar, we will be looking at this topic more in the next lesson, Location Services, but in the meantime here is a code snippet.
If you have a latitude and longitude, perhaps pulled from a database, you can use the following code which will launch google maps or display the map in a browser.
Code: Select all
on mouseUp
put "55.953969" into tLatitude
put "-3.198784" into tLongitude
## Construct the URL
put "http://maps.google.com/maps?q=" & tLatitude & comma & tLongitude into tURL
launch url tURL
end mouseUp
I hope that helps.
Kind regards
Elanor