Fork me on GitHub

Plugin geocodes

Introduction

The purpose of this plug-in is to provide a service to:

- find a city or country label according to its INSEE code,

- search for countries or communes on their wording (minimum 3 first letters), to obtain their INSEE codes

Configuration

Usage

The data is accessible through two channels:

- a GeoCodesService java class

- a REST service (see swagger documentation, available with the swaggerui plugin) :

  • GET /rest/geocodes/api/v1/cities/{id}
  • GET /rest/geocodes/api/v1/cities/search/{str}
  • GET /rest/geocodes/api/v1/countries
  • GET /rest/geocodes/api/v1/countries/{id}
  • GET /rest/geocodes/api/v1/countries/search/{str}