GIScience / ors-map-client

Openrouteservice API web SPA client using VueJS, Vuetify and Vue2Leaflet
http://maps.openrouteservice.org
Apache License 2.0
105 stars 31 forks source link

Let user add a via point #384

Open mrkhan opened 1 year ago

mrkhan commented 1 year ago

Heal client Steps to reproduce:

  1. Add start point and destination point
  2. Right-click on other place on map
  3. click "Add Stop here" gives an error message "When using alternative routes option it is not possible to define route stops"
TheGreatRefrigerator commented 1 year ago

That's a ors backend issue. You can't use alternative routes with waypoints.

{"error":{"code":2011,"message":"Parameter 'alternative_routes' is incompatible with parameter '(number of waypoints > 2)'."},"info":{"engine":{"build_date":"2023-07-09T01:31:50Z","version":"7.1.0"},"timestamp":1689071156894}}
TheGreatRefrigerator commented 1 year ago

Is this needed or nice to have?

mrkhan commented 1 year ago

Its needed. Planning to change alternative_routes to 1 if new stops points are added