They say a picture is worth a thousand words. Adding a static map to your posts can make a world of difference. Your posts not only look good, but are informative and effective as well. Whether you are giving out directions or simply just showing off where in the world you were at one point, you can add great value and effectiveness to your posts. The good news is, adding Google Maps is not so difficult.
The Google Static Maps API
Required Parameters: Center, zoom, size and sensor. Examples.
center=101+Market+Street+San+Francisco (enter address or latitude, longitude) zoom=14 (from levels 1 to 20) size=480x300 (map size in pixels) sensor=false (use default 'false' unless using GPS locator)
Maptype: Roadmap, Satellite, Terrain or Hybrid. Marker: See below. Paths: See below.
Putting It All Together
We can string it all together using ampersand (&).
Finally, to add an image to your post, just add an HTML img tag. Example:
<img src=”http://maps.google.com/maps/api/staticmap?center=101+Market+Street+San+Francisco&zoom=14&zoom=14&size=480×300&maptype=roadmap&sensor=false” alt=”San Francisco” />
There are other options that can be added such as Markers and Paths, but are a bit more involved. You can check out the rest from the Google Static API V2 Developer Guide.