E
E
exaller2016-02-26 15:51:44
Google Maps
exaller, 2016-02-26 15:51:44

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

2 answer(s)
J
Justin Bieber, 2016-02-26
@JustinBieber

https://www.youtube.com/watch?v=b7omKe6Bgo8

F
freeExec, 2016-02-29
@freeExec

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 question

Ask a Question

731 491 924 answers to any question