Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 1.03 KB

README.md

File metadata and controls

32 lines (23 loc) · 1.03 KB

parse2-kmz

This version is an update to the parse-kmz package where there was an error in the unzip package causing conflict when parsearing the geoJSON

Installation

Simplest way to install parse2-kmz is to use npm, just npm install parse2-kmz which will download parse-kmz and all dependencies.

Usage

const parseKMZ = require("parse2-kmz");
// KMZ To KML From URL
parseKMZ
  .toKML("http://iblogbox.github.io/js/gpx/sample/Tour_de_France.kmz")
  .then(console.log)
  .catch(console.error);

// KMZ To KML From File
parseKMZ.toKML("./file/kmx.kmz").then(console.log).catch(console.error);

// KMZ To JSON From URL
parseKMZ
  .toJson("http://iblogbox.github.io/js/gpx/sample/Tour_de_France.kmz")
  .then(console.log)
  .catch(console.error);

// KMZ To JSON From File
parseKMZ.toJson("./file/kmx.kmz").then(console.log).catch(console.error);

But if you know you really found a bug, feel free to open an issue instead.