Intermodal Routing API Developer's Guide

Fare

Fare type contains information about a single fare needed for one or more sections of this connection.

Table 1. Fare Type Attributes
Attribute Always Included Type Description
name Yes String Name of the fare.
currency Yes String Local currency of the price compliant to ISO 4217.
price Yes RPrice Price of the fare.
Note: If the fare type is range this attribute includes minimum and maximum price separated with the minus ('-') sign.
sec_ids Yes IDREFS Whitespace-separated list of section ids of a Connection covered by the given Fare.
estimated - Boolean Attribute value is 1 if the fare price is estimated, 0 if it's an exact value.

The default is 0.

type - FareTypes Type of fare represented by this object. The client application is responsible to correctly visualize the fare model to the user. Since the supported fare types can be extended in the future, we recommend to hide the fare information when you encounter a fare type unknown to you.

See FareTypes for more details.

The default is value.

reason - FareReason Reason for the cost described in this Fare element.

The default is ride.

Table 2. Fare Type Elements
Element Always Included Type Description
Link - List of Link Specifies a link to a web resource.