Fork me on GitHub

Plugin library-geocodes

Introduction

The purpose of this library is to provide a service to call the plugin geocode

Configuration

For the configuration, in the context.xml file, it is necessary ton inject the httpTransport bean. You have also to fill the properties : APIM gateway url, AM token url, and credentials unless you use a direct access. There is also a mock that can be used for test. An example can be found in the context file of the plugin geocodesclient : https://github.com/lutece-platform/lutece-tech-plugin-geocodesclient/blob/master/webapp/WEB-INF/conf/plugins/geocodesclient_context.xml

Warning, the version 1.0.1 and before of the library use the date format yyyy-MM-DD and the V1 api of the plugin geocode which also use this date format. From version 1.0.2, the date format is yyyy-MM-dd and the api version of the plugin geocodes is V2.

Usage

The local service GeoCodeService can be used to request on the cities and countries