Page 1 of 1

Using Google Maps API

Posted: Tue Jan 19, 2016 8:31 pm
by Fitz
Hello, i am fairly new to Livecode. I have been trying for while to implement a Google Map within my application, that i can do. However i m not sure where to put my API key.

My code is:
~put "//maps.googleapis/maps/api/geocode/json?address="&tMessage&"&sensor=false" into tURL

put url tURL into leGeoCode~

Usually i would put the api key after json?... however when i do this i get an error.

Any help would be greatly appreciated.

Re: Using Google Maps API

Posted: Wed Jan 20, 2016 12:31 am
by Dixie

Code: Select all

put "http://maps.googleapis.com/maps/api/js?key=YOUR_KEY" into tURL 

Re: Using Google Maps API

Posted: Wed Jan 20, 2016 1:11 pm
by Fitz
Thanks Dixie, that works great.