Filtering out a specific itinerary from the regional itinerary list with OpenTripPl serviceFrequently Asked Question
Get ready to master the art of filtering out a specific itinerary from the list of itineraries from OpenTripPlanner! Our experts have got you covered with the most frequently asked questions and their answers.
How can I filter out an itinerary based on a specific mode of transportation?
To filter out an itinerary based on a specific mode of transportation, you can use the `transportMode` parameter in your OpenTripPlanner query. For example, if you want to filter out itineraries that include walking, you can add `transportMode=WALK` to your query.
Can I filter out itineraries based on the number of transfers?
Yes, you can filter out itineraries based on the number of transfers using the `maxTransfers` parameter. For example, if you want to filter out itineraries with more than 2 transfers, you can add `maxTransfers=2` to your query.
How do I filter out itineraries based on the travel time?
You can filter out itineraries based on the travel time using the `maxDuration` parameter. For example, if you want to filter out itineraries that take more than 1 hour, you can add `maxDuration=3600` to your query.
Can I filter out itineraries based on the cost?
Unfortunately, OpenTripPlanner does not provide a built-in way to filter out itineraries based on the cost. However, you can use third-party services or develop a custom solution to estimate the cost of each itinerary and filter them out based on your budget.
How do I filter out itineraries that include a specific route or agency?
You can filter out itineraries that include a specific route or agency using the `route` and `agency` parameters respectively. For example, if you want to filter out itineraries that include route 123, you can add `route=123` to your query.