Open
GraphQL
Scalars
Scalars are the primitive leaf values of a response, such as String, Int, Boolean, or custom scalars. They resolve to concrete data rather than further fields. Learn more
StringThe
String scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.IDThe
ID scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as "4") or integer (such as 4) input value will be accepted as an ID.IntThe
Int scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.BooleanThe
Boolean scalar type represents true or false.FloatThe
Float scalar type represents signed double-precision fractional values as specified by IEEE 754.CoordinatesList of coordinates like: [[60.89, 11.12], [62.56, 12.10]]
CostA cost value, normally a value of 1 is equivalent to riding transit for 1 second, but it might not depending on the use-case. Format: 3665 = DT1h1m5s = 1h1m5s
DateLocal date using the ISO 8601 format:
YYYY-MM-DD. Example: 2020-05-17.DateTimeDateTime format accepting ISO 8601 dates with time zone offset.
Format:
YYYY-MM-DD'T'hh:mm[:ss](Z|±01:00)
Example: 2017-04-23T18:25:43+02:00 or 2017-04-23T16:25:43ZDoubleFunctionA double function
f(t) is used to calculate a value based on a variable (t). The variable can
be the duration/time or cost for a leg or section of a path/itinerary. The function
f(t) = a + bt has a constant (a) and a coefficient (b) that will be used in OTP to compute
f(t).
Format: a + b t. Example: 30m + 2.0 t. The constant a accept both whole numbers and
duration input format like: 60 = 60s = 1m and 3791 = 1h3m11s. b must be a positive
decimal number between 0.0 and 100.0.DurationDuration in a lenient ISO-8601 duration format. Example P2DT2H12M40S, 2d2h12m40s or 1h
LocalTimeTime using the format: HH:mm:SS. Example: 18:25:SS
LongA 64-bit signed integer
TimeTime using the format:
HH:MM:SS. Example: 18:25:43Did you find what you were looking for?