Take the 2-minute tour ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

I have hundreds of locations starred in Google Maps. I'd like to export the list of them so that I can import them into other software, like Google Earth or map applications on my Android phone. Is there any way to do this other than manually clicking on them one-by-one?

If there's no official way, is there a workaround? Google Maps for Android can access the starred locations, so maybe there's a way to rip them out of its database files? Maybe some other software that can access it?

This is very similar, but I am asking about Starred locations, they aren't in My Maps.

They recently changed it so that starred locations are listed along with other locations under "My Places", but I still don't see a way to export.

enter image description here

share|improve this question
1  
Currently there is no way to export Starred items in one batch. –  Dmitry Selitskiy Jun 23 '11 at 6:27
    
@Dmitry: Is there a way to export them one by one? I could write a Python script to automate it? –  endolith Jun 23 '11 at 15:47
1  
I cannot find a reliable way to do them individually either –  Dmitry Selitskiy Jun 23 '11 at 22:17
    
They all appear in Google Bookmarks, but only as URLs with cid numbers like https://maps.google.com/?cid=4350987349087335054, and they're mixed in with all other bookmarks, but maybe a script could step through and follow each link and extract the name and coordinates? –  endolith Oct 14 '12 at 4:41
    
@endolith: And the coordinates do appear in the page's source 3 times: ...,overlays:{sxcar:true,markers:[{id:'A',cid:'4350987349087335054',latlng:{lat‌​:40.729879,lng:-73.991094}... –  endolith Oct 14 '12 at 4:59
add comment

6 Answers

It's a bit hard, but a workaround that seems to do the trick:

  1. Go to Google Maps - My places: http://maps.google.at/maps/myplaces

  2. CREATE NEW MAP, name its title "Starred Items to export", set it to [x] Unlisted, Done

  3. Click on My places again to get back to the places list, select Starred

  4. For each starred item do the following:

    • Click on the starred item, the balloon on the map appears.
    • Click the balloon's "Save to map" link, select the map "Starred Items to export", then Save

  5. Click on My places again to get back to the places list, select Maps

  6. Click on the map "Starred items to export", click the KML link

  7. Download the KML file. Done.

share|improve this answer
    
Yikes. Could it be automated, I wonder? The "Save to map" is not a normal link <span jstcache="0" class="actbar-text">Save to map</span> –  endolith Aug 1 '11 at 15:02
    
I am afraid you'd have to develop something with code.google.com/apis/maps –  oleschri Aug 2 '11 at 8:40
    
The KML link doesn't appear immediately, but after some refreshes it works. I'm not sure the API can access it –  endolith Oct 14 '12 at 4:47
add comment

Easiest process was to go to Google Bookmarks, copy each of the starred items, and paste it to a note or Word doc. Log out of the Google account and log into the new Google account. Go to Google Maps. Paste each link from your doc into Google maps one by one and star each item as you go. Took me 5 minutes to do the 20 or so that I had. Very easy.

share|improve this answer
    
I have hundreds of starred locations, so anything that requires manual copypasting is no good. :) –  endolith Dec 10 '12 at 16:33
add comment
up vote 4 down vote accepted

Well, after discovering that the starred locations are also mirrored on Google Bookmarks, I wrote a Python script to scrape the coordinates and generate a KML file:

Export Google Maps starred locations

  1. Go to Google Bookmarks: https://www.google.com/bookmarks/
  2. On the bottom left, click "Export bookmarks": https://www.google.com/bookmarks/bookmarks.html?hl=en
  3. After downloading the html file, run this script on it to generate a KML.

It's hacky and doesn't read all of them correctly, but the ones it fails on tend to be ones that don't even open correctly if you click on the link in Google Bookmarks.

share|improve this answer
1  
Very nice! Tried this on a file that has Umlauts in it, where it does not work. Example: UnicodeEncodeError: 'ascii' codec can't encode character u'\xdf' in position 29: ordinal not in range(128) My Python is non-existent, but if you could make your script work with this bookmarks file it would be awesome. –  myhd Dec 13 '12 at 12:37
    
@myhd: Oops. I will try to fix it. –  endolith Dec 13 '12 at 17:48
    
@myhd: sorry I didn't fix this. it works fine for me. maybe it's just a difference in your terminal character set, and you can fix it just by removing all the print statements? stackoverflow.com/q/5695421/125507 –  endolith Apr 17 '13 at 15:11
add comment

I figured out a way to export your starred locations.

  1. Go to your account settings
  2. Click on the section titled "Data Tools"
  3. Click Select data to download
  4. "Create an Archive"
  5. Check "Bookmarks"
  6. "Create Archive"

Download and you're done! You'll get an HTML file with all the locations as addresses that are linked to the Google Maps.

share|improve this answer
    
that's what I did in my answer, and wrote a python script to grab the locations and convert it back into KML –  endolith yesterday
add comment

Google's Data Liberation Front site has info how to move your data in and out of Google products.

Check if this documentation on importing and exporting map data using KML can help you out.

share|improve this answer
    
Sorry, that doesn't help –  endolith Jul 30 '11 at 4:04
add comment

Export all the bookmarks... Log out of the account.

Log into the account you want to add these book marks to.

Click on the GoogleBookmarks.html

Now click on each bookmark listed. Google will take you to the that page. Click on the Star. Click back.

Do this for each.

Enjoy

share|improve this answer
    
Sorry, but can you provide screenshots and more details so that the asker can better understand? Thank you! –  Hydra Apr 17 '13 at 15:01
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.