I
I
Isaac Clark2012-08-19 17:44:14
JavaScript
Isaac Clark, 2012-08-19 17:44:14

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

5 answer(s)
A
Alexander, 2012-08-19
@seneast

Yandex Maps
Google Maps
Or through the Leaflet library

V
Vitaliy Petrychuk, 2012-08-19
@vermilion1

gmaps.js

K
KidsKilla, 2012-08-20
@KidsKilla

maps.rambler.ru/api/docs/geocoding#route

I
igrishaev, 2012-08-20
@igrishaev

openlayers

P
Pavel Tyslyatsky, 2012-08-21
@tbicr

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 question

Ask a Question

731 491 924 answers to any question