Application provides caching proxy-service for Yandex Geocoder API.
It allows for converting address into geographic coordinates and vice-versa.
-
url: https://localhost/geocode?addressOrCoordinates={your-response-address-or-coordinates}
method: GET
response: application/json (GeocodeResponse.class) -
url: https://localhost/actuator
method: GET
response: application/json (available actuator URIs)
{
"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)
}
(you will need to have jdk, maven, docker and docker-compose installed and added to PATH)
- Open project root directory in terminal
- On Linux run "chmod 777 mvnw" to allow execution of mvnw
- Run "mvnw clean package -DskipTests" to compile application jar in "target" directory
- 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