-
as a command line tool:
$ npm install -g geojsontoosm $ geojsontoosm file.geojson > file.osm
-
as a nodejs library:
$ npm install geojsontoosm var geojsontoosm = require('geojsontoosm'); geojsontoosm(geojson_data);
-
included a browser: Install browserify globally, probably need sudo:
$ npm install -g browserify create the js file for the browser: $ browserify node_modules/geojsontoosm/index.js -d --s geos > dist/pizza.js Now include pizza in your project <script src="dist/pizza.js" charset="utf-8"></script> And you can call with geos() in your project: var xml = geos(JSON.parse(json)); or as text var xml = geos(json);
forked from tyrasd/geojsontoosm
-
Notifications
You must be signed in to change notification settings - Fork 0
Convert GeoJSON to OSM XML
License
gplv2/geojsontoosm
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Convert GeoJSON to OSM XML
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- JavaScript 100.0%