This is an API using Spring Boot, integration with Camel and Maven for compiling and building the application. It provides a REST service that is created with Camel REST DSL, using the Geocoder component and documented with Swagger.
After the Spring Boot application is started, you can open the following URL in your web browser to access the REST endpoint and request the address for "Amsterdam": http://localhost:8080/camel/find/?address=Amsterdam
The REST endpoint from the command line:
$ curl http://localhost:8080/camel/find/?address=Amsterdam
{"results" : [{"formattedAddress" : "Amsterdam, Netherlands", "location" :{"lat" : 52.3702157, "lng" : 4.895167900000001 } } ] }The Swagger documentation is at: http://localhost:8080/camel/api-doc and can be retrieved with the following command:
$ curl http://localhost:8080/camel/api-doc