Prakash’s Blog

Innovation Explored

Prakash’s Blog header image 2

Google Map for your site in three Simple Steps

December 22nd, 2005 · No Comments

Yesterday i did small test and utilized the API provided by Google Maps, to display the town i live, very very easy. Google Developer API Provides all the information you need to utilize their web service.

1.Sign up for a Google Maps API key and register your site.
2.Copy a Example Code from API Documentation , get latitude & longitude of your address or use yahoo webservice to get geocode.
3.Copy the example code above in your home page ,Google Map will only work in a Live Site
Change this line “map.centerAndZoom(new GPoint(your-long,your-lat), 4)” and the key
“http://maps.google.com/maps?file=api&v=1&key=yourkeygiven-by-google” , this can be found in the first line of javascript code in the above example and also change your size of google map height and width here “div id=”map” style=”width: 200px; height: 200px” div

Let me know if this works for you. In the next post i will try to compare Yahoo and Google Map
tag:

Tags: Other

0 responses so far ↓

  • There are no comments yet...Kick things off by filling out the form below.

Leave a Comment