Filters in Trip Planner API


#1

hello everyone,

I have been accessing trip planner API, I am not able to filter specific mode of transport for the trip planning request.

my request contains following parameters along with other parameters
exclMOT_1: ‘on’,
exclMOT_7: ‘on’,
exclMOT_5: ‘on’,
but response still contains the route options having BUS and trains.
do I missing something ?


#2

Does it work if you use the parameter value 1 rather than on? See: Filter params departure_mon


#3

if we use 1 instead of on then its giving same result. not working.


#4

Ah, you’ll need the excludedMeans=checkbox parameter as well.

You can also do the inverse. i.e. to get train services only, includedMeans=checkbox&inclMOT_1=1

@alejandro.felman something to add to the documentation / Swagger :slight_smile:


#5

that’s perfect. it’s working now.thanks a lot. you should update this on your documentation. :pray::pray:


#6

is there any other option for enable/disable of Opal enabled services only ?

there is no parameter that I found on API.


#7

Hi
Please try lineRestriction=403