GithubHelp home page GithubHelp logo

esgn / api-adresse-premium Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 23 KB

API REST minimale pour diffusion simple du produit IGN Adresse Premium

License: GNU General Public License v3.0

Python 11.22% Dockerfile 5.48% Go 67.20% Shell 16.11%

api-adresse-premium's Introduction

api-adresse-premium

API REST minimale pour diffusion simple du produit IGN Adresse Premium : https://geoservices.ign.fr/ressources_documentaires/Espace_documentaire/BASES_VECTORIELLES/ADRESSE_PREMIUM/DC_ADRESSE_PREMIUM_3-0.pdf

Préalables

  1. Changer le mot de passe par défaut de la base (password) dans le fichier docker-compose.yml
  2. Adapter les options de configuration de PostgreSQL dans le fichier docker-compose.yml si nécessaire

Déploiement

  1. Téléchargement du produit Adresse Premium

    python3 download-dataset.py

  2. Lancement des containers

    docker-compose up -d

  3. Import des données en base (opération longue pouvant être lancée dans un screen par exemple)

    docker exec -ti adr-premium-postgis /bin/bash /tmp/scripts/import-data.sh

Utilisation

Les résultats sont fournis au format GeoJSON.

  • (GET) /adr-parc/{id} : Récupération d'un lien adresse-parcelle par identifiant (ADR_PARC[0-9]+)
  • (GET) /adr-parc/findByAdrId?id= : Recherche de liens adresse-parcelle par identifiant d'adresse IGN (ADRNIVX_[0-9]+)
  • (GET) /adr-bati/{id} : Récupération d'un lien adresse-batiment par identifiant (ADR_BATI[0-9]+)
  • (GET) /adr-bati/findByAdrId?id= : Recherche de liens adresse-batiment par identifiant d'adresse IGN (ADRNIVX_[0-9]+)
  • (GET) /bati-parc/{id} : Récupération d'un lien batiment-parcelle par identifiant (BAT_PARC[0-9]+)
  • (GET) /bati-parc/findByBatId?id= : Recherche de liens batiment-parcelle par identifiant de batiment IGN (BATIMENT[0-9]+)
  • (GET) /bati-parc/findByParcId?id= : Recherche de liens batiment-parcelle par identifiant de parcelle

Arrêt du service

  • Sans suppression des données en base : docker-compose down
  • Avec suppression des données en base : docker-compose down -v

api-adresse-premium's People

Contributors

esgn avatar

Stargazers

 avatar

Watchers

 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.