Answer the question
In order to leave comments, you need to log in
How to get an array of points along the constructed route?
Let's take this example:
https://developers.google.com/maps/documentation/j...
We need to save this route to the database as an array of coordinates.
But the catch is that you need to store the entire route, and not in the form of 2 points: the beginning of the route and the end.
Does anyone have any ideas how this can be implemented?
Answer the question
In order to leave comments, you need to log in
The idea is to move away from proprietary data and providers that only allow you to look, and move towards open data and software where you can touch.
Yes, I'm talking about OpenStrretMap and services based on it. The wiki page of the project contains the most popular routers. Somewhere you can even save the route in GPX (GraphHopper for example), but in any case, API routers return the coordinates of the route. Unpack them and save them in whatever format you need.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question