Goodnight. There is a project on Spring Boot.
The challenge was to connect Google Maps , namely, you need its functional routes between point A and B. ( Directions API ). I need to transfer the coordinates that I have and build a route between two coordinates.
I managed to connect the map, I embedded in the html code JS, API Key . The map is not as beautiful and functional as Google’s map itself, but that’s not important.
I turned on the mode with the search for routes, I had to include the places API and it seems to build routes, but many but.
Firstly, I had a task to implement it through Java. They have a library for Java, but I do not understand the essence of the work. It is clear that I have to transfer the coordinates to the query string, then send a POST request to Google server, get an answer with a distance, an array of points and draw a route on the map, but the Google documentation is stingy with this, but I don’t have much experience. Maybe someone will tell in which direction to move. In Google there is almost no information for Java, mainly for Android. Through Postman I started, I send the request, I get the answer. The question is how to draw it onto the map using the Google library.