1.0.2 • Published 8 years ago

kml2ov2 v1.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
8 years ago

kml2ov2

Convert Google KML file to Tomtom ov2 POI format

Support convert KML exported form https://www.google.com/maps/d/ to Tomtom Mydrive .ov2 POI format

Command line usage

npm install kml2ov2 -g
kml2ov2 --in input_path.kml.xml [--out output_path]

Library usage

npm install kml2ov2
const kml2ov2 = require('kml2ov2');

/**
 * @typedef {OV2} OV2
 * @property name Name of the layer
 * @property content Content buffer of ov2 file
 */
/**
 * Convert KML to OV2
 *
 * @param json JSON representation of KML
 * @return {OV2[]} ov2 files
 */
var ov2BufferArray = kml2ov2(json);