An Easy Way To Embed Google Maps
Written by Kay Ewbank   
Friday, 14 March 2014

Google Maps Embed API lets you generate HTML snippets that make it easier to embed Google Maps in your websites.

Writing about the new API on the Google Geo Developers blog, Ben Greenwood and Ken Hoetmer point out that while an increasing number of sites are using maps:

“We know that many sites require multiple maps, and repeatedly generating them can be a challenge.“

To overcome this, the Embed API means you can embed maps, and customize the location and appearance of the map using URL parameters.

All requests to the Embed API must include a free API key as the value of a key parameter. This key lets developers monitor their application's Maps API usage, and also gives Google similar oversight of their websites and applications.

The parameters let you specify the map mode for a place, directions, search or view. Optional parameters also let you specify what the center of the map should be, either as latitude and longitude, or a place name or address string (such as Champ+de+Mars,Paris,France). You can set the initial zoom level, and choose between a roadmap and satellite image. Other parameters specify the language and region.

 

embedmap

(click to enlarge)

 

The blog post says that over the coming weeks, Google will be updating existing classic Google Maps embeds to the new format. While the Google Maps Embed API is free and without limits, the new API does include on-map advertising.

 

More Information

Google Maps Embed API

Related Articles

Getting started with Google Maps

Inside the KML Placemark

Google Gets Hot

Google Maps API for Android Updated

Google Maps - The Alternative iOS Mapping SDK

 

To be informed about new articles on I Programmer, install the I Programmer Toolbar, subscribe to the RSS feed, follow us on, Twitter, Facebook, Google+ or Linkedin,  or sign up for our weekly newsletter.

 

espbook

 

Comments




or email your comment to: comments@i-programmer.info

Banner


JavaZone - The Conference We Missed
25/10/2024

Amongst the many Java related conferences, this one flew under the radar. A real shame because it had many great sessions.
JavaZone might not be that famous internationally, but it still is the bi [ ... ]



Remembering Thomas Kurtz, Co-creator of BASIC
15/11/2024

Thomas Eugene Kurtz, the co-founder of the BASIC programming language, has died at the age of 96. BASIC, which was developed for the purpose of education, popularized computer programming making it ac [ ... ]


More News

Last Updated ( Tuesday, 18 March 2014 )