convert-geo
converting multi-format to geojson.
Install
npm install convert-geo
Support
- kml
- topojson
- gpx
- csv
- tsv
- osm xml
convert to geojson :).
example
For converting kml, topojson, gpx, osm xml format is quite simple
var cv_geojson = ; ;
for csv, tsv you will need to pass an options in the object. For telling the converter, which field is latitude, which field is longitude
var cv_geojson = ; ;
Reference:
- https://github.com/mapbox/togeojson
- https://github.com/mapbox/csv2geojson
- https://github.com/mbostock/topojson
License
MIT @chilijung