1. Computing

How to Add a Google Map to Your Web Page

By , About.com Guide

2 of 5

Convert Your Address to Coordinates
Google Maps

Google Maps

Screen shot by J Kyrnin - Map image courtesy Google

If you want to add Google Maps to your web pages, you need to have more than just an address for your map location. You need to have the latitude and longitude coordiates. You can get these with a standard GPS, but the easiest way to convert your address to coordinates is to use Google Maps itself.

  1. Change the highlighted part of this URL to your company address. It's best if you replace all spaces with a plus (+) character, but should work with spaces too:
    (remove the » and put the URL all on one line)
    http://maps.google.com/maps/geo?q=620+8th+Avenue,+New+York,+NY+10018,+USA »
    &output=csv&oe=utf8&sensor=false
  2. Paste the entire URL into a browser.

This will generate a code that looks something like this:

200,8,40.7562008,-73.9903784

The first number, 200, says that the address is good. The second number, 8, indicates how accurate the address is. The last two numbers, 40.7562008 and -73.9903784, are the latitude and longitude of this address. Those are the numbers you need.

©2013 About.com. All rights reserved.