How to add a Google map to your web page

As Google continues its steady progress towards domination of all things Internet-based, a clutch of useful tools is filtering down to Web designers.

As Google continues its steady progress towards domination of all things Internet-based, a clutch of useful tools is filtering down to Web designers. One such service is a beta version of Google Maps' programming interface.

While many of us use Google Maps to find locations or to browse satellite imagery, it's an open secret that you can also add those maps to your own site.

This is one of the many projects that makes use of a Google application programming interface (API) to provide services to websites. Web designers can modify the map to display certain information; it's possible that their mashup could even be loaded on to Google Maps.

As with Google's other APIs, this is free to use - with certain restrictions. If you want to use a map commercially or on a private website, sign up for a 30-day trial of Google Maps Enterprise. Enterprise allows maps to be viewed behind a firewall or with a paid-for subscription login; it also provides extra features such as customer relations and marketing support.

With the free version, users can localise a map and modify it to respond to zooms and pans to find other places. Information windows can be added to provide visitors with updates, or markers and route lines can indicate positions or directions.

With some further research you could soon be performing such advanced functions as geocoding, adding a Google-powered local search engine, creating custom controls and adding driving instructions to your website. For the time being, however, if all you want is a simple map with straightforward instructions, you can achieve this in half an hour or so.

Step 1

1. To get started using Google Maps, you'll need to sign up for an API key. This key is valid for a single directory on your server; you can use it to embed a Google Map on any page at that domain, with no limit on the number of page views per day.

google map api key

Step 2

2. Before you can get this key, you'll need to log into your existing Google Account (or create one). Once logged in, click 'Sign up for a Google Maps API key'. Enter your domain name and click 'Generate API key'. This will create the key along with some code that can be pasted into a hypertext markup language (HTML) file.

google account

Join the newsletter!

Or

Sign up to gain exclusive access to email subscriptions, event invitations, competitions, giveaways, and much more.

Membership is free, and your security and privacy remain protected. View our privacy policy before signing up.

Error: Please check your email address.
Keep up with the latest tech news, reviews and previews by subscribing to the Good Gear Guide newsletter.

Jason Whittaker

PC Advisor (UK)
Show Comments

Brand Post

Bitdefender 2019

Bitdefender solutions stop attacks before they even begin! Get cybersecurity that 500 MILLION users already have and trust.

Most Popular Reviews

Latest Articles

Resources

PCW Evaluation Team

Luke Hill

MSI GT75 TITAN

I need power and lots of it. As a Front End Web developer anything less just won’t cut it which is why the MSI GT75 is an outstanding laptop for me. It’s a sleek and futuristic looking, high quality, beast that has a touch of sci-fi flare about it.

Emily Tyson

MSI GE63 Raider

If you’re looking to invest in your next work horse laptop for work or home use, you can’t go wrong with the MSI GE63.

Laura Johnston

MSI GS65 Stealth Thin

If you can afford the price tag, it is well worth the money. It out performs any other laptop I have tried for gaming, and the transportable design and incredible display also make it ideal for work.

Andrew Teoh

Brother MFC-L9570CDW Multifunction Printer

Touch screen visibility and operation was great and easy to navigate. Each menu and sub-menu was in an understandable order and category

Louise Coady

Brother MFC-L9570CDW Multifunction Printer

The printer was convenient, produced clear and vibrant images and was very easy to use

Edwina Hargreaves

WD My Cloud Home

I would recommend this device for families and small businesses who want one safe place to store all their important digital content and a way to easily share it with friends, family, business partners, or customers.

Featured Content

Latest Jobs

Don’t have an account? Sign up here

Don't have an account? Sign up now

Forgot password?