Code Monkey home page Code Monkey logo

fr-bounding-boxes's Introduction

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

fr-bounding-boxes's People

Contributors

jdesboeufs avatar

Stargazers

Victor avatar Éloi Rivard avatar Thomas Gratier avatar

Watchers

Thomas Parisot avatar Thomas Gratier avatar James Cloos avatar Thibaud Dauce avatar Pierre Pezziardi avatar  avatar Alexis avatar Geoffrey Aldebert avatar Flo avatar Jordan Guedj avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.