0.1.0 • Published 4 years ago
osm-countries-bounds v0.1.0
osm-countries-bounds
Package for node.js which contain countries with bounds and bbox in geojson format
Usage
Install
npm i osm-countries-bounds --save
Use
import {getBoundsOfCountryByIsoAlpha2Code, getBoundsOfCountries} from 'osm-countries-bounds'
console.log(getBoundsOfCountryByIsoAlpha2Code('RU'))
console.log(getBoundsOfCountries())
Update
Which action download poly data from nominatium and great list.json file
npm run update-list
After it you can check result
npm run test
# manual check result
npm run server
# and open test/polygons-on-map.html in browser