Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/grinat/osm-countries-bounds
Package for node.js which contain countries with bounds and bbox in geojson format
https://github.com/grinat/osm-countries-bounds
Last synced: about 2 months ago
JSON representation
Package for node.js which contain countries with bounds and bbox in geojson format
- Host: GitHub
- URL: https://github.com/grinat/osm-countries-bounds
- Owner: grinat
- Created: 2020-02-07T09:26:54.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-30T19:37:57.000Z (about 2 years ago)
- Last Synced: 2024-11-08T02:11:46.222Z (2 months ago)
- Language: TypeScript
- Homepage: https://grinat.github.io/osm-countries-bounds/test/polygons-on-map.html
- Size: 1.27 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# osm-countries-bounds
Package for node.js which contain countries with bounds and bbox in geojson format[View bounds on map](https://grinat.github.io/osm-countries-bounds/test/polygons-on-map.html)
[Latest bounds as json](https://unpkg.com/osm-countries-bounds/lib/list.json)
## Usage
Install
```bash
npm i osm-countries-bounds --save
```Use
```typescript
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
```bash
npm run update-list
```
After it you can check result
```bash
npm run test# manual check result
npm run server
# and open test/polygons-on-map.html in browser
```