Display region, route or location with Google Static Maps

Unlike a regular Google Map that requires JavaScript to fetch the tiles that make up a map, Google Static Maps returns a single map image, is faster to load and does not need JavaScript. To get started, you can use the Static Maps Wizard or use the Static Maps API to customize the map with markers, lines & shaded areas to highlight a location, route or region. Like Google Charts, Google Static Maps API accepts inputs to generate a map through querystring values.


The following URL shows the location of the British Library in Hyderabad as a map image -
http://maps.google.com/maps/api/staticmap?center=17.407256,78.472274
&zoom=16
&markers=17.407256,78.472274
&path=color:0x0000FF80|weight:5|17.42340,78.45685
&size=300x300
&sensor=false

The URL parameters like maptype (optional), center, zoom, markers, path, size, format (optional), sensor are all well-documented.

I learnt about this tool from Christian Heilmann's interesting article on Geo Location. Christian Heilmann is a Web Developer Evangelist working for the Yahoo Developer Network and author of The Developer Evangelist handbook.

Comments

Popular posts from this blog

Maven Crash Course - Learn Power Query, Power Pivot & DAX in 15 Minutes

"Data Prep & Exploratory Data Analysis" course by Maven Analytics

Oracle Cloud Infrastructure 2024 Generative AI Professional Course & Certification Exam (1Z0-1127-24)