Industry guru Dave Taylor offers free tech support on a wide variety of technical and business topics, including HTML, Apple iPhone, online advertising, Cascading Style Sheets, Web design, management, Unix, Linux, search engine optimization, online dating, Mac OS X, shell script programming and Microsoft Windows.

How do I import a KML data file into Google Maps?

We hired a company to produce a Google Maps data file so we could produce a custom map of all our business office locations across the United States and they supplied us with a XML data file. I have no idea what to do next. Help!


Dave's Answer:

I'm surprised that they haven't offered you even rudimentary directions, but it's okay, I've got your geoback. :-) First off, though, I hope that it's actually a KML map file that's written in XML compliant language rather than an XML file, per se. KML is "Keyhole Markup Language" and it's named after the company that created the geographic specific language.

Anyway, you probably don't care about that!

Your first step is to go to Google Maps and make sure you're logged in to your Google account. if you don't have one, create one. How to tell? On the top right it'll either say "Sign in" or it'll show your email address if you are logged in.

Once you are logged in properly, you'll see the following:

google maps my maps

Click on "My Maps" and you'll see a list of maps you've already created (if any) and the all-important "Create new map" link:

google maps create new map

Choose that (no surprise!) and it'll give you an area where you can name your map, add a description and, when you're ready, an "Import" link:

google maps create new map title

When you choose to import a Google Maps data file, it'll give you the option of specifying the map's location online with a URL or finding one that you want to upload from your computer:

google maps import kml data file

Click on "Choose file" and it'll pop up a standard choose file dialog window (this is on a Mac, but a Windows PC works the same):

google maps import kml data choose file

Once I've picked the file I want to upload (a file that ends with ".kml") I click on "Choose" and now I'm back to the Google Maps dialog window again, but this time the file name shows up:

google maps import kml data file chosen

That's good. Click on "Upload from File" and, depending on how big the file is, it'll complete in a few seconds or a minute or more, with the next action being it displaying you a map with all the data points plotted:

google map with data points

On the left side underneath the fields where you can enter a title and description for the map it now shows a list of the imported data points with any descriptive material included in the KML file:

google map custom data points

Last step. Find the "Done" button and click it and you have a public custom Google Maps file with all the information easily accessible:

google map custom my maps

I hope that gives you all the information you need to get this working!

In a different set of blog entries I'll explain how to turn addresses into Latitude/Longitude information, then you can pour that manually into a KML file, as I'll also explain. Stay tuned for that!



Help others find this article at Del.icio.us, Digg, Netscape, Reddit, and Stumble Upon    

Subscribe!

Never miss another useful Q&A article again! Subscribe to AskDaveTaylor with Google Reader.

Comments

Hey Dave, thanks for the easy step by step, it is just what I was looking for.

Posted by: John Everett at July 18, 2009 6:49 AM

this is great, but, how do i import to a gmap, bulk addresses that have no longitude or latitude, but only the plain mailing address ??
Thanks Dave

Posted by: adolfo at January 27, 2010 4:12 PM

Thanks M8! Very usefull!

Posted by: pegazoo at January 29, 2010 6:34 PM

Adolfo, check this article out:

http://www.askdavetaylor.com/how_to_convert_map_street_addresses_latitude_longitude.html

Hope it helps you out!

Posted by: Dave Taylor at January 29, 2010 9:38 PM

I have something to say, now that you mention it, but ...
Starbucks coffee cup I do have a lot to say, and questions of my own for that matter, but first I'd like to say thank you for all your efforts on this Web site by buying you a cup of coffee!

I do have a comment, now that you mention it!











Remember personal info?


Please note that I will never send you any unsolicited email. Ever.

While I'm at it, please note that by submitting a question or comment you're agreeing to my terms of service, which are: you relinquish any subsequent rights of ownership to your material by submitting it on this site.








Ask Dave Taylor: The iPhone App: Advertisement



Follow me on Twitter @DaveTaylor

Search
Find just the answers you seek from among our 2300+ free tech support articles by using our Lijit search engine.


Help!





Subscribe to
Ask Dave Taylor!

Add to Google Reader
Add to My Yahoo!
Subscribe in NewsGator Online

RDF   XML

Free Updates!
Sign up and get free weekly updates and special offers on books, seminars, workshops and more.


Recent Entries
Book Links
© 2002 - 2010 by Dave Taylor. All Rights Reserved.

Note: This web site is for the purpose of disseminating information for educational purposes, free of charge, for the benefit of all visitors. We take great care to provide quality information. However, we do not guarantee, and accept no legal liability whatsoever arising from or connected to, the accuracy, reliability, currency or completeness of any material contained on this web site or on any linked site.

[whiteboard marker tray]
"Ask Dave Taylor®" is a registered trademark of Intuitive Systems, LLC.