My Places, Custom POI, import

1,054 views
Skip to first unread message

mlitty

unread,
Feb 15, 2014, 12:59:06 PM2/15/14
to osm...@googlegroups.com
Google My Places to OsmAnd
I'm sure this is a common question, but I've not found any answer that works.

I have created a My Places map in Google maps and want to import the locations to OSMAnd to use offline on my nexus 7.  I did something like this for an overseas trip years ago but both softwares were in very different versions and I can't recall how I did it anyway.

We're going to a new town tomorrow.  I've marked several places that we want to visit while there.  How do I store the list and save it for offline use tomorrow in OsmAnd?  Ideally, I would love to be able to convert and import the .kml file from Google Maps into a kind of custom POI or Favorites file in OsmAnd.

mlitty

unread,
Feb 15, 2014, 3:32:22 PM2/15/14
to osm...@googlegroups.com
I think I've figured out a work around....  If anyone has a faster way, please advise.
Start by saving your Google My Places map to a kml file on your desktop.  I'll refer to it as myplaces.kml
1. Open OsmAnd, go to Favorites
2. Export Favorites
3. use a file browser on the device to locate /sdcard/osmand/favorites.gpx and create a copy called /sdcard/osmand/backup.favorites.gpx (better safe than angry)
4. Open /sdcard/osmand/favorites.gpx in a text editor on the device and save it to /sdcard/downloads (works around file not showing up in some desktop file transfer software)
5. download and use gpsbabel to convert your myplaces.kml   file to  myplaces.gpx file
6. connect your device to your desktop and copy the /sdcard/downloads/favorites.gpx to the desktop
7. use a text editor to open both favorites.gpx and myplaces.gpx (your Google Maps file).
8. in the myplaces.gpx file, to put your new places in a favorites "category" add the line 
<category>Your Category Name</category>
after every <name>Your Location Name</name> line
9. copy from the very first <wpt ...  to the very last </wpt> to get all of the waypoints.
10. go to the favorites.gpx file in the text editor and paste these in at the end of the file, after the last </wpt> tag and before the </gpx> tag.
11. save this new favorites.gpx file.
12. copy that new favorites.gpx file back to your device, into /sdcard/osmand/favorites.gpx
13. open OsmAnd, goto Favorites and click Import

Your locations should now be listed under Your Category Name.

Easy, right?  okay, not really, but it seems to work.

Harry van der Wolf

unread,
Feb 15, 2014, 4:14:07 PM2/15/14
to osmand
Hi,

The favorites.gpx file is just a backup. Osmand keeps it favorites internally in an sqlite db.

- Step 1, 2, 3 are good to save a copy.
- You need step 5 to convert your kml file.
- Now rename your converted kml file and call it favorites.gpx (yes, no mistake)
- Copy it into your /osmand folder
- Import the favorites.gpx and these POIs (myplaces) will be added to your favorites in the internal sqlite DB.

To be certain you can again export the now combined/merged favorites

Harry



--
You received this message because you are subscribed to the Google Groups "Osmand" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osmand+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Richard Goodwin

unread,
Feb 16, 2014, 7:26:09 AM2/16/14
to osm...@googlegroups.com
Harry's instructions work fine for KML files for importing them as favourites into Osmand.

For importing KML files as user_defined POIs, you might like to read the attached PDF, which I put together to document the process of importing various types of POI file into Osmand.

Unfortunately, it currently isn't possible to select just one 'type' of user_defined POI, which is a bit of a limitation bt, apart from that, importing POIs works very well.

Richard
Import Favourites How-To.pdf
Reply all
Reply to author
Forward
0 new messages