Questions tagged [leaflet-routing-machine]

Leaflet Routing Machine is an easy, flexible and extensible way to add routing to a Leaflet map. Using the default is just a few lines of code to add fully functional routing, but you can still customize almost every aspect of the user interface and interactions.

84 questions
0
votes
0 answers

Leaflet Routing Machine Value not Show

I want get total value KM using the leaflet routing machine. I want show the value to the html table, but when I try to retrieve the value from the routing machine. I did not get the results i using ajax to get value from server and leaflet routing…
taufik
  • 249
  • 2
  • 8
0
votes
0 answers

Leaflet-routing-machine does not detect new roads/nodes/ways created via JavaOpenStreetMap editor

My goal is to takes real-world map/streets and create custom roads, apply a way to navigate through my own roads along with existing streets in the world After creating a new street, i exported the osm file, brought it to Maperitive to generate the…
0
votes
1 answer

Leaflet Routing API: retrieve the legs data

I use the Leaflet Routing API, connected to Mapbox, to display a route with several waypoints. Now, I have to retrieve the distance and the time between these waypoints for some calculations... I see that the api.mapbox.com/directions API (called…
Didier68
  • 1,027
  • 12
  • 26
0
votes
1 answer

Leaflet routing machine usage limits

I am wanting to find out if there are any usage limits for the leaflet routing machine library. In particular what's the maximum number of waypoints that can be supplied as part of routing requests and are there any limits to how many requests can…
0
votes
1 answer

Leaflet routing machine not giving the optimal route (by far)

I have issues when trying to show a route on my leaflet map: L.Routing.control({ router: L.Routing.mapbox(''), profile:"mapbox/driving", addWaypoints:false, waypointMode:'snap', routeWhileDragging: true, show:false, …
Gerohi
  • 1
  • 4
0
votes
1 answer

What response does leaflet routing machine expect from a custom OSRM router?

I have OSRM (node-osrm) set up locally and it produces correct results for routes on the server. However, when I request routes from it via leaflet routing machine I get the following error in the browser: leaflet-routing-machine.js:2605 Routing…
Tomás Metcalfe
  • 163
  • 1
  • 4
0
votes
0 answers

Leaflet-Routing-Machine Route goes back to previous position and comes back to at the end of every change

I'm using Leaflet-Routing-Machine on ReactJS project. I've routes on the map. Problem occurs when the position of map changes or during zoom in / zoom out. When I start dragging the map to change position, there is no issue, but when I stop the…
Ali Zeynalov
  • 2,867
  • 8
  • 30
  • 54
-1
votes
1 answer

How do I implement routing using vue-leaflet?

Basically what I'm coding is a E-Bike Sharing website, a JSON with a bunch of charging station all throughout NYC was given to me, my goal is to have a map where I can input 2 addresses or coordinates (start and end position) , the website will have…
-1
votes
1 answer

verify if marker is inside from route

my name is João, and I'm using the leaflet.js to do my project of the conclusion course at the University of Campinas - Brazil. The problem to solve is: the marker needs to stay inside from route, if not, need to return a false. Can someone help me?…
1 2 3 4 5
6