# Restricting Trip Planner modes

**URL:** https://opendataforum.transport.nsw.gov.au/t/restricting-trip-planner-modes/1943
**Category:** Real-time Public Transport
**Created:** [February 25, 2020, 6:50am UTC](https://opendataforum.transport.nsw.gov.au/t/restricting-trip-planner-modes/1943 "2020-02-25T06:50:45Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![phelum](https://avatars.discourse-cdn.com/v4/letter/p/67e7ee/32.png) [@phelum](https://opendataforum.transport.nsw.gov.au/u/phelum)
#### Post date: [February 25, 2020, 6:50am UTC](https://opendataforum.transport.nsw.gov.au/t/restricting-trip-planner-modes/1943/1 "2020-02-25T06:50:45Z")

</div>

Hi,  
I’d like to restrict the travel modes available to Trip Planner for a specific request but I can’t find any documentation describing the necessary parameter. I’ve found a forum post dated Nov 2017 where Vic says the documentation has been updated to include relevant details. But I’ve been through the V3.1 Trip Planner APIs document and can’t find any reference.

Does anyone know how I can restrict the acceptable travel modes ?

Thanks,  
Steven

---

<div class="post-metadata">

### Author: ![jxeeno](https://sea1.discourse-cdn.com/flex019/user_avatar/opendataforum.transport.nsw.gov.au/jxeeno/32/210_2.png) [@jxeeno](https://opendataforum.transport.nsw.gov.au/u/jxeeno)
#### Post date: [February 26, 2020, 2:05am UTC](https://opendataforum.transport.nsw.gov.au/t/restricting-trip-planner-modes/1943/2 "2020-02-26T02:05:41Z")

</div>

The params are in the API explorer ([https://opendata.transport.nsw.gov.au/node/601/exploreapi#!/default/tfnsw\_trip\_request2](https://opendata.transport.nsw.gov.au/node/601/exploreapi#!/default/tfnsw_trip_request2)), but here’s a summary:

> [@Filter params departure\_mon](https://opendataforum.transport.nsw.gov.au/t/filter-params-departure-mon/1063/3):
>
> departure\_mon can work on a mode-exclusion basis. By default, it returns all means/modes of transport. You can then specify modes to exclude using the exclMOT\_\<MOTId\>=1 parameter. The MOTIds are: 1 = Trains 4 = tram 5 = bus 7 = coach 9 = ferry (and I think 11 = school bus but I’d double check) For example, if you wanted to exclude everything except bus, you’d do: &exclMOT\_1=1&exclMOT\_4=1&exclMOT\_7=1&exclMOT\_9=1&exclMOT\_11=1 Hope that makes sense slight_smile

The only thing new to note is metro is MOTId = 2

---

<div class="post-metadata">

### Author: ![phelum](https://avatars.discourse-cdn.com/v4/letter/p/67e7ee/32.png) [@phelum](https://opendataforum.transport.nsw.gov.au/u/phelum)
#### Post date: [February 26, 2020, 6:16am UTC](https://opendataforum.transport.nsw.gov.au/t/restricting-trip-planner-modes/1943/3 "2020-02-26T06:16:34Z")

</div>

Hi jxeeno,

Thanks for your reply and the links. Very helpful as always.

Cheers,  
Steven
