We publish frequent updates to our documentation, and translation of this page may still be in progress. For the most current information, please visit the English documentation. If there's a problem with translations on this page, please let us know.

KML Tracks - .kml, .kmz

OsmAnd can import or convert KML location information

В этой статье

In GoogleEarth (GE) you can add you own Placemarks on the map and collect them into a folder. From GE you can save the folder in KML format. When you have a different format you can use QGIS or other opensource software to convert to KML format. Maybe you can convert it directly to OSM. You may use any format containing your POIs, if you are able to convert it to OSM format. You can format KML to GPX here.

Native support

OsmAnd doesn't support KML natively but OsmAnd can import some of them. During import process file will be transformed into GPX and later will be treated as OsmAnd GPX.

Converting KML (or Other Formats) into the OSM Format

To perform this task we need to use gpsbabel. It is very useful to convert waypoints, tracks, and routes between popular GPS receivers and mapping programs. The syntax is very simple, and GPS Babel has an interface to create the syntax for you:

$ gpsbabel -i kml -f my_places.kml -o osm,tagnd="tourism:museum",​created_by -F my_places.osm

The generated file looks like this:

<?xml version='1.0' encoding='UTF-8'?>
<osm version='0.5' generator='GPSBabel-1.4.0'>
  <node id='-1' visible='true' lat='41.890121' lon='12.492265'>
    <tag k='name' v='place01'/>
    <tag k='note' v='place01'/>
    <tag k='tourism' v='museum'/>
  </node>
  <node id='-2' visible='true' lat='41.892241' lon='12.489031'>>
    <tag k='name' v='place02'/>
    <tag k='note' v='place02'/>
    <tag k='tourism' v='museum'/>
  </node>
</osm>

All points inside the KML file are converted into OSM points, assigning them some properties like tourism category and museum type. The created_by= option with missing value means that the properties will be ignored. If your POI belongs to different categories, I suggest you create multiple OSM files and create OsmAnd OBF files and merge them together later with OsmAndMapCreator, or create multiple OBF files.

Converting OSM Format into OBF Format

Now you are ready to perform the final step. The conversion will be done using OsmAndMapCreator. Download, unzip and run this program.

  • Deselect all choices except Build POI Index as shown:
  • Select the work dir (File/Specify working directory…)
  • Load my_places.osm (File/Select osm file…)

If all is right you'll find My_places.obf into your workdir folder. Simply upload this file into your devices OsmAnd tracks folder.

Did this doc help you?

Privacy policy

Help us make these docs great!

All OsmAnd docs are open source. See something that's wrong or unclear? Submit a pull request.

Make a contribution

Or, learn how to contribute.

Все еще нужна помощь?

Join OsmAnd community Поддержка