# 'Train only' Trip Planner API request

**URL:** <https://opendataforum.transport.nsw.gov.au/t/train-only-trip-planner-api-request/4953>\
**Category:** App development\
**Created:** [February 3, 2025, 1:24am UTC](https://opendataforum.transport.nsw.gov.au/t/train-only-trip-planner-api-request/4953 "2025-02-03T01:24:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rhackshaw](https://avatars.discourse-cdn.com/v4/letter/r/b5ac83/32.png) [@rhackshaw](https://opendataforum.transport.nsw.gov.au/u/rhackshaw)\
**Post date:** [February 3, 2025, 1:24am UTC](https://opendataforum.transport.nsw.gov.au/t/train-only-trip-planner-api-request/4953/1 "2025-02-03T01:24:05Z")

</div>

Looking at the TripPlannerAPI, I can see that there is a param that can be specified in a request called ‘_computeMonomodalTripBicycle_’ (page 36 under '4.3.12 Querying For Cycling Journeys  
') - which specifies that the trip should be planning for a **bike-only journey**.

I’m just wondering if there are similar parameters available that can filter a trip to be exclusive to only certain types of other transport?

e.g. Train-Only as ‘computeMonomodalTripTrain’, or avoid a certain type of transport e.g. buses.

---

<div class="post-metadata">

**Author:** ![andy.stewart](https://sea1.discourse-cdn.com/flex019/user_avatar/opendataforum.transport.nsw.gov.au/andy.stewart/32/486_2.png) [@andy.stewart](https://opendataforum.transport.nsw.gov.au/u/andy.stewart)\
**Post date:** [February 2, 2026, 10:09pm UTC](https://opendataforum.transport.nsw.gov.au/t/train-only-trip-planner-api-request/4953/2 "2026-02-02T22:09:13Z")

</div>

You can exclude specific transport types by adding this to the API call:

```auto
&excludedMeans=checkbox

```

Followed by a list of `exclMOT_2=1&exclMOT_4=1` etc etc to exclude specific transport types, using this list to work out what the numbers relate to:

exclMOT\_1 = Train  
exclMOT\_2 = Metro  
exclMOT\_4 = Light rail  
exclMOT\_5 = Bus  
exclMOT\_7 = Coach  
exclMOT\_9 = Ferry  
exclMOT\_11 = School bus

So, to exclude all transport types other than trains, you’d add this full string to your API call:  
`&excludedMeans=checkbox&exclMOT_2=1&exclMOT_4=1&exclMOT_5=1&exclMOT_7=1&exclMOT_9=1&exclMOT_11=1`

Good luck!  
Andy
