perliedman / leaflet-routing-machine

Control for routing in Leaflet
https://www.liedman.net/leaflet-routing-machine/
Other
1.08k stars 350 forks source link

Limited WayPoints (Mapbox api) #491

Closed Johnstands closed 5 years ago

Johnstands commented 5 years ago

I notice that there is a limit as to how many waypoints can be used. {"message":"Too many coordinates; maximum number of coordinates is 25.","code":"InvalidInput"}

perliedman commented 5 years ago

Yes, that is a limitation in Mapbox's API, and nothing Leaflet Routing Machine can change.

Having said that, if you find yourself needing more than 25 waypoints, maybe you should consider using the match service instead.