Tech Xpress

Create Google Maps Images using a Link

Here's a way to create images of locations from Google Maps. All that is needed is a url.

http://maps.google.com/maps/api/staticmap?
center=Brooklyn+Bridge,New+York,NY
&zoom=14
&size=400x400
&maptype=hybrid
&format=png
&sensor=false

Click here to view the image.

The above link will generate a png image of the Google Map location specified i.e Brooklyn Bridge. Wanna create a different image? It's not that difficult to understand; just replace the following in the url:

1. Replace the Brooklyn+Bridge,New+York,NY part to any thing else. Let's say Gateway+of+India.
2. Similarly, you can adjust the zoom, size of image to create, format (accepted values are jpg, png, png32, gif, jpg-baseline), maptype(accepted values are roadmap,satellite,terrain,hybrid).

This uses the Google Static Maps API. More info and options are provided here.
That's all. Enjoy!

Home
posted by Vijeesh Ravindran, Saturday, October 16, 2010
| link | 0 Comments |