Showing posts with label map. Show all posts
Showing posts with label map. Show all posts

Tuesday, May 31, 2011

Using Google Map API.


     Google code is the Google's official developer site. Featuring APIs, developer tools and technical resources. google code. If you visit APIs & Tools you will see a lot of APIs which can be useful for web development, in other words for web applications. From this post I'm going to show how to use a well known google API called Google Map API. There are lot of categories under Map API Family.

1. Click on Map API.

2. Then click on Static Maps API



3. Now you will see a page which contains all the information to use this API.

4. If you feel it is too hard, just use this link.



5. You can give different values to center, zoom, size. (you can give the city name as center value.)
ex:
http://maps.google.com/maps/api/staticmap?center=Tokyo&zoom=12&size=300x300&maptype=roadmap&sensor=false

6. You can also change map type by changing maptype value to roadmap, satellite, terrain and hybrid.

7. For further changes, always go through the Map API info page which I have mentioned above.

Ok, this is a simple registration form which I have created by using php and javascript. I have added Google Map API link to generate maps. Check this out.

http://shankcode.appspot.com/samplereg.php

PS: There can be many bugs in that registration form.