Jump to content

Create route with UniMap


artem_niko

Recommended Posts

Good afternoon!

I need to solve the following problem.
There is a map, it doesn't matter, Yandex maps or Google maps, on which I need to set a marker by the name of the city first at point A, and then put a marker at point B and get the distance between these points in kilometers, as well as information on the number of days, how many it will take days to overcome the constructed route by car.

How can this be done using the UniMap component?

Link to comment
Share on other sites

On 11/28/2020 at 9:50 AM, Артем said:

Good afternoon!

I need to solve the following problem.
There is a map, it doesn't matter, Yandex maps or Google maps, on which I need to set a marker by the name of the city first at point A, and then put a marker at point B and get the distance between these points in kilometers, as well as information on the number of days, how many it will take days to overcome the constructed route by car.

How can this be done using the UniMap component?

Hi, We are not using google map or yandex map directly. We are using Leaflet.js.

Leaflet is a map display library, not a data API, not a routing library.

1- To able to use route, you need to use a plugin. like leaflet-routing-machine

2- we may use L.GeoSearch plugin.

 

Link to comment
Share on other sites

7 hours ago, Hayri ASLAN said:

Hi, We are not using google map or yandex map directly. We are using Leaflet.js.

Leaflet is a map display library, not a data API, not a routing library.

1- To able to use route, you need to use a plugin. like leaflet-routing-machine

2- we may use L.GeoSearch plugin.

 

Can you give me example, how to use this L.GeoSearch plugin or link on example?

Link to comment
Share on other sites

  • 3 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...