osm-countries-bounds

Package for node.js which contain countries with bounds and bbox in geojson format


Licenses
MIT/ODC-By-1.0/SSPL-1.0
Install
npm install osm-countries-bounds@0.1.0

Documentation

osm-countries-bounds

Package for node.js which contain countries with bounds and bbox in geojson format

View bounds on map

Latest bounds as json

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