Using Google Maps API

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
Fitz
Posts: 7
Joined: Tue Jan 19, 2016 8:15 pm

Using Google Maps API

Post 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.
Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am

Re: Using Google Maps API

Post by Dixie »

Code: Select all

put "http://maps.googleapis.com/maps/api/js?key=YOUR_KEY" into tURL 
Fitz
Posts: 7
Joined: Tue Jan 19, 2016 8:15 pm

Re: Using Google Maps API

Post by Fitz »

Thanks Dixie, that works great.
Post Reply