Answer the question
In order to leave comments, you need to log in
How can you create a path on a map using JavaScript?
Hello.
Tell me please.
There is a task: a user from point A flies / travels to point B. He wants to mark his point of flight / transfer on the map.
Question: Advise normal Maps API by means of which it is possible to implement similar.
Thank you.
Answer the question
In order to leave comments, you need to log in
The google maps api has the directions API . You can also find examples there . This thing integrates with Google Maps in a couple of lines, but it seems to be possible to use it separately. Supported types: DRIVING, BICYCLING, TRANSIT, WALKING, but not for air travel. But for them (air travel), I think it’s enough to describe a straight line (an arc, given that the earth is round), standard polylines are suitable for this.
I myself am looking for a service that qualitatively provides the opportunity to build a route from point A to point B, while I settled on the option I proposed, maybe I didn’t find anything else.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question