Launch Week Day 2: Introducing Reports: An Extensible Reporting Framework for Socket Data.Learn More
Socket
Book a DemoSign in
Socket

@etalab/fr-bounding-boxes

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@etalab/fr-bounding-boxes

Bounding boxes for French administrative levels

latest
Source
npmnpm
Version
0.1.3
Version published
Maintainers
2
Created
Source

fr-bounding-boxes

npm version XO code style

Bounding boxes for French administrative levels

Rectangles englobants des contours administratifs français

Données

4 niveaux administratifs sont disponibles :

  • Communes
  • EPCI
  • Départements
  • Régions

Exemple :

{
  "name": "Saint-Élie",
  "id": "fr:commune:97358",
  "bbox": [-53.4329,3.9045,-52.7887,5.0660]
}

Les identifiants utilisés sont des geoids.

Accéder aux données

Via unpkg

curl -L https://unpkg.com/@etalab/fr-bounding-boxes@latest/dist/communes.json

curl -L https://unpkg.com/@etalab/fr-bounding-boxes@latest/dist/epci.json

curl -L https://unpkg.com/@etalab/fr-bounding-boxes@latest/dist/departements.json

curl -L https://unpkg.com/@etalab/fr-bounding-boxes@latest/dist/regions.json

Via npm ou yarn

npm install @etalab/fr-bounding-boxes
// Minimal import
const communes = require('@etalab/fr-bounding-boxes/communes')

// Regular way
const {communes} = require('@etalab/fr-bounding-boxes')

NB : Les données se trouvent dans le dossier dist.

Construction des données

Les rectangles englobants sont construits à partir de données ADMIN EXPRESS produites par l'IGN.

yarn && yarn build

Licences

Licence applicable aux données

Licence ouverte 2.0

Licence applicable au code

MIT

FAQs

Package last updated on 12 Sep 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts