Magidoc

fuzzyTrip
Query

Finds a trip matching the given parameters. This query type is useful if the id of a trip is not known, but other details uniquely identifying the trip are available from some source (e.g. MQTT vehicle positions).

Arguments

#

date

Non-null

Departure date of the trip, format: YYYY-MM-DD

direction = -1

Direction of the trip, possible values: 0, 1 or -1. -1 indicates that the direction is irrelevant, i.e. in case the route has trips only in one direction. See field directionId of Pattern.

route

Non-null

id of the route

time

Non-null

Departure time of the trip, format: seconds since midnight of the departure date

Response

#

Returns Trip .

Example

#

    
  

3

    
  

3

    
  

3