Open Dostonhack opened 1 year ago
By default LRM displays everything that's returned by the routing provider (OSM, Mapbox, etc.), so if only four waypoints are returned, then LRM can't do much about it.
If that's not what you mean, can you share some code so I could try to understand the question a bit better?
thank you for for the answer I have 4 markers that I need to make an alternative to line, similar to yandex
Hey, just wanted to let you know that I'm on vacation so replies might be a bit slower. I'll get back to this as soon as I can, though!
I believe you'll want a custom router or 4 instances of LRM though, from having a quick look. That is, every marker gets its own instance, essentially giving it alternatives as well
Okay, so just to confirm your situation looks like this:
Hi, Sorry, I see now your message, yes it is rigth
That is not currently something that lrm supports. You would have to set up 4 different routing machines with your start, end and marker coordinates as waypoints.
That said, I am happy to accept a pull request that adds an option to make alternatives depend on the closest intermediate waypoint
Hi there, I have 4 waypoints, I don't show alternatives and edit alteratives waypoints, pls help me
I have 4 markers that I need to make an alternative to line, similar to yandex
this is code
![image](https://user-images.githubusercontent.com/54597812/198937818-045fd669-ed6c-4957-9110-200db2b9b0e0.png)