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

Avoid ferries by default #388

Closed redfrexx closed 11 months ago

redfrexx commented 11 months ago

The clients suggests routes which include taking a ferry, e.g. when going from altstadt to Neuenheimer Feld. Since the user cannot choose to avoid ferries in the frontend of the HEAL ORS client, it would be better to avoid ferries by default when querying the routes. Adding the following parameter to the request should work:

{"options": "avoid_features": ["ferries"]}
mrkhan commented 11 months ago

need following changes in ors-map-filters.js file

name: 'avoid_features',
value: ['ferries'],

Since this file is a part of git-ignore, this change will not be visible in repo