Manages charging points through geolocation positions
On your command line, run
./mvnw clean package && java -jar target/chargers-0.0.1-SNAPSHOT.jar
- To create a charging point use
PUT /chargers/{id}
{
"zipCode": "12207",
"latitude": "1.23",
"longitude": "2.33"
}
Expected response code is 200 OK.
-
To fetch a charging point by id, use
GET /chargers/{id}
-
To fetch charging points by zip code, use
GET /search/zip-code/{zipCode}
-
To fetch charging points inside a perimeter, use
GET /search/circle/?latitude={latitude}&longitude={longitude}&radiusInKm={radiusInKm}
This application was built using standard Spring Boot framework with embedded mongo database. To make it production-ready, please configure a real mongo database instance. In case of any questions or trouble running the service, please contact me.