A geospacial microservice demo created with Spring Boot
Have docker and java 8+ installed
./run.sh
Once running hit http://localhost:8080/cities?latitude=43.45&longitude=-80.5&distance=150&unit=km with your chosen REST client or browser to play with the app.
- A DB with geospacial capabilities, I recommend PostGIS
- Create a blank DB (the app will handle everything else)
Open the application-local.properties file and change lines 21-23 so that you can connect to your database.
The quickest way to run this demo is to import it into the Spring Tool Suite and run it there. You can also run it via the command line if you dont like or don't use the Spring Tool Suite.
In either case make sure you set your profile to "local" in order for the proper properties file to be applied.
Once running hit http://localhost:8080/cities?latitude=43.45&longitude=-80.5&distance=150&unit=km with your chosen REST client or browser to play with the app.
Nothing here just yet :P
The geographic data used for this demo was sourced from the World City Database. Thank you for your work and free offering.