Skip to content

Latest commit

 

History

History
37 lines (28 loc) · 1.57 KB

README.md

File metadata and controls

37 lines (28 loc) · 1.57 KB

CACHING GEOCODER SERVICE

Application provides caching proxy-service for Yandex Geocoder API.
It allows for converting address into geographic coordinates and vice-versa.

API servers:

GeocodeResponse JSON looks as follows:

{
     "query":      {
         "text": (text of your request),
         "queryType": (type of your request: COORDINATES or ADDRESS)
     },
     "coordinates": (found coordinates in form "latitude longitude"),
     "fullAddress": (found full address)
}

How to run the application

(you will need to have jdk, maven, docker and docker-compose installed and added to PATH)

  1. Open project root directory in terminal
  2. On Linux run "chmod 777 mvnw" to allow execution of mvnw
  3. Run "mvnw clean package -DskipTests" to compile application jar in "target" directory
  4. Run "docker-compose up -d" to run the Docker containers

4.5) If you want to compile the app yourself - you will need to get your own Yandex API key and insert it in application.properties

Exposed ports can be changed in Dockerfile and docker-compose.yml