<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<application xmlns="http://wadl.dev.java.net/2009/02" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://wadl.dev.java.net/2009/02 wadl.xsd">
  <resources base="https://api.resrobot.se/v2.1/">
    <resource path="trip">
      <method name="GET">
        <request>
          <param name="accessId" required="true" style="query" type="xsd:string">
            <doc><![CDATA[Access ID for identifying the requesting client. String not longer than 128.]]></doc>
          </param>
          <param name="aid" required="false" style="query" type="xsd:string">
            <doc><![CDATA[Access ID that overrides the security value from the configuration. String not longer than 64.]]></doc>
          </param>
          <param name="requestId" required="false" style="query" type="xsd:string">
            <doc><![CDATA[Request ID for identifying the request. String not longer than 2048.]]></doc>
          </param>
          <param name="format" required="false" style="query" type="xsd:string">
            <doc><![CDATA[Requested response format. If not set, the Accept-Header is used. If both are missing application/xml is used]]></doc>
          </param>
          <param name="jsonpCallback" required="false" style="query" type="xsd:string">
            <doc><![CDATA[Requests the JSON response data is wrapped into a JavaScript function with that name. String not longer than 1024.]]></doc>
          </param>
          <param default="sv" name="lang" required="false" style="query" type="xsd:string">
            <doc><![CDATA[The language of the journey planer. String not longer than 5.]]></doc>
          </param>
          <param name="originId" required="false" style="query" type="xsd:string">
            <doc><![CDATA[Specifies the station/stop ID of the origin for the trip.
Such ID can be retrieved from the location.name or location.nearbystops services. String not longer than 512.]]></doc>
          </param>
          <param name="originExtId" required="false" style="query" type="xsd:string">
            <doc><![CDATA[Deprecated. Please use `originId` as it supports external IDs.

Specifies the external station/stop ID of the origin for the trip.
Such ID can be retrieved from the location.name or location.nearbystops services. String not longer than 512.]]></doc>
          </param>
          <param name="originCoordLat" required="false" style="query" type="xsd:string">
            <doc><![CDATA[Latitude of station/stop coordinate of the trip’s origin. The coordinate can be retrieved from the location.name or location.nearbystops services.]]></doc>
          </param>
          <param name="originCoordLong" required="false" style="query" type="xsd:string">
            <doc><![CDATA[Longitude of station/stop coordinate of the trip’s origin. The coordinate can be retrieved from the location.name or location.nearbystops services.]]></doc>
          </param>
          <param name="originCoordName" required="false" style="query" type="xsd:string">
            <doc><![CDATA[Name of the trip's origin if coordinate cannot be resolved to an address or poi. String not longer than 512.]]></doc>
          </param>
          <param name="originCoordType" required="false" style="query" type="xsd:string">
            <doc><![CDATA[Type of the trip's origin if coordinate cannot be resolved to an address or poi.]]></doc>
          </param>
          <param name="destId" required="false" style="query" type="xsd:string">
            <doc><![CDATA[Specifies the station/stop ID of the destination for the trip.
Such ID can be retrieved from the location.name or location.nearbystops services. String not longer than 512.]]></doc>
          </param>
          <param name="destExtId" required="false" style="query" type="xsd:string">
            <doc><![CDATA[Deprecated. Please use `destId` as it supports external IDs.

Specifies the external station/stop ID of the destination for the trip.
Such ID can be retrieved from the location.name or location.nearbystops services. String not longer than 512.]]></doc>
          </param>
          <param name="destCoordLat" required="false" style="query" type="xsd:string">
            <doc><![CDATA[Latitude of station/stop coordinate of the trip’s destination. The coordinate can be retrieved from the location.name or location.nearbystops services.]]></doc>
          </param>
          <param name="destCoordLong" required="false" style="query" type="xsd:string">
            <doc><![CDATA[Longitude of station/stop coordinate of the trip’s destination. The coordinate can be retrieved from the location.name or location.nearbystops services.]]></doc>
          </param>
          <param name="destCoordName" required="false" style="query" type="xsd:string">
            <doc><![CDATA[Name of the trip's destination if coordinate cannot be resolved to an address or poi. String not longer than 512.]]></doc>
          </param>
          <param name="destCoordType" required="false" style="query" type="xsd:string">
            <doc><![CDATA[Type of the trip's destination if coordinate cannot be resolved to an address or poi.]]></doc>
          </param>
          <param name="via" required="false" style="query" type="xsd:string">
            <doc><![CDATA[Complex structure to provide multiple via points separated by semicolon. String not longer than 8096.]]></doc>
          </param>
          <param name="viaId" required="false" style="query" type="xsd:string">
            <doc><![CDATA[ID of a station/stop used as a via for the trip. Specifying a via station forces the trip search to look for trips which must pass through this station.
Such IDs can be retrieved from the location.name or location.nearbystops services. String not longer than 512.]]></doc>
          </param>
          <param default="0" name="viaWaitTime" required="false" style="query" type="xsd:int">
            <doc><![CDATA[Defines the waiting time spent at via station in minutes. Minimum of 0.]]></doc>
          </param>
          <param name="avoid" required="false" style="query" type="xsd:string">
            <doc><![CDATA[Complex structure to provide multiple points to be avoided separated by semicolon. String not longer than 8096.]]></doc>
          </param>
          <param name="avoidId" required="false" style="query" type="xsd:string">
            <doc><![CDATA[ID of a station/stop to be avoided as transfer stop for the trip.
Such IDs can be retrieved from the location.name or location.nearbystops services. String not longer than 512.]]></doc>
          </param>
          <param name="viaGis" required="false" style="query" type="xsd:string">
            <doc><![CDATA[Complex structure to provide multiple GIS via locations separated by semicolon. String not longer than 8096.]]></doc>
          </param>
          <param default="100" name="changeTimePercent" required="false" style="query" type="xsd:int">
            <doc><![CDATA[Configures the walking speed when changing from one leg of the journey to the next one. It extends the time required for changes by a specified percentage.
A value of 200 doubles the change time as initially calculated by the system. Minimum of 0.]]></doc>
          </param>
          <param name="minChangeTime" required="false" style="query" type="xsd:int">
            <doc><![CDATA[Minimum change time at stop in minutes. Minimum of 0.]]></doc>
          </param>
          <param name="maxChangeTime" required="false" style="query" type="xsd:int">
            <doc><![CDATA[Maximum change time at stop in minutes. Minimum of 0.]]></doc>
          </param>
          <param name="addChangeTime" required="false" style="query" type="xsd:int">
            <doc><![CDATA[This amount of minutes is added to the change time at each stop. Minimum of 0.]]></doc>
          </param>
          <param name="maxChange" required="false" style="query" type="xsd:int">
            <doc><![CDATA[Maximum number of changes. Range: 0-11]]></doc>
          </param>
          <param name="date" required="false" style="query" type="xsd:string">
            <doc><![CDATA[Sets the start date for which the departures shall be retrieved. Represented in the format YYYY-MM-DD.]]></doc>
          </param>
          <param name="time" required="false" style="query" type="xsd:string">
            <doc><![CDATA[Sets the start time for which the departures shall be retrieved. Represented in the format hh:mm[:ss] in 24h nomenclature. Seconds will be ignored for requests.]]></doc>
          </param>
          <param default="false" name="searchForArrival" required="false" style="query" type="xsd:int">
            <doc><![CDATA[If set, the date and time parameters specify the arrival time for the trip search instead of the departure time.]]></doc>
          </param>
          <param default="5" name="numF" required="false" style="query" type="xsd:int">
            <doc><![CDATA[Minimum number of trips after or before the search time, depending on search direction. Sum of numF and numB has to be less or equal 6. The maximum value depends on the actual configuration.

Please see the section below about the search algorithm for more details. Range: 1-6]]></doc>
          </param>
          <param default="0" name="numB" required="false" style="query" type="xsd:int">
            <doc><![CDATA[Minimum number of trips before or after the search time, depending on search direction. Sum of numF and numB has to be less or equal 6. The maximum value depends on the actual configuration.

Please see the section below about the search algorithm for more details. Range: 0-5]]></doc>
          </param>
          <param name="context" required="false" style="query" type="xsd:string">
            <doc><![CDATA[Defines the starting point for the scroll back or forth operation. Use the scrB value from a previous result to scroll backwards in time and use the scrF value to scroll forth. String not longer than 8096.]]></doc>
          </param>
          <param default="false" name="poly" required="false" style="query" type="xsd:int">
            <doc><![CDATA[Enables/disables the calculation of the polyline for each leg of the trip except any GIS route.]]></doc>
          </param>
          <param default="N" name="polyEnc" required="false" style="query" type="xsd:string">
            <doc><![CDATA[Defines encoding of the returned polyline. Possible values are N (no encoding / compression), DLT (delta to the previous coordinate), GPA (Google encoded polyline format) defaults to N. Not all option might be available in your installation.]]></doc>
          </param>
          <param default="false" name="passlist" required="false" style="query" type="xsd:int">
            <doc><![CDATA[Enables/disables the return of the passlist for each leg of the trip.]]></doc>
          </param>
          <param name="products" required="false" style="query" type="xsd:int">
            <doc><![CDATA[Decimal value defining the product classes to be included in the search. It represents a bitmask combining bit number of a product as defined in the HAFAS raw data. Values are retrievable by <<service_datainfo,Data Information service>>. Minimum of 0.]]></doc>
          </param>
          <param name="operators" required="false" style="query" type="xsd:string">
            <doc><![CDATA[Only trips provided by the given operators are part of the result. To filter multiple operators, separate the codes by comma.
If the operator should not be part of the trip, negate it by putting ! in front of it. String not longer than 1024.]]></doc>
          </param>
          <param name="categories" required="false" style="query" type="xsd:string">
            <doc><![CDATA[Only trips provided by the given categories are part of the result. To filter multiple categories, separate the codes by comma.
If the category should not be part of the trip, negate it by putting ! in front of it. String not longer than 1024.]]></doc>
          </param>
          <param name="categoryFlags" required="false" style="query" type="xsd:string">
            <doc><![CDATA[Only trips matching the given category flags are part of the result. To filter multiple category flags, separate the codes by comma. String not longer than 1024.]]></doc>
          </param>
          <param name="attributes" required="false" style="query" type="xsd:string">
            <doc><![CDATA[Filter trips by one or more attribute codes of a journey. Multiple attribute codes are separated by comma. If the attribute should not be part of the be trip, negate it by putting ! in front of it. String not longer than 1024.]]></doc>
          </param>
          <param name="sattributes" required="false" style="query" type="xsd:string">
            <doc><![CDATA[Filter trips by one or more station attribute codes of a journey. Multiple attribute codes are separated by comma. If the attribute should not be part of the be trip, negate it by putting ! in front of it. String not longer than 1024.]]></doc>
          </param>
          <param name="fattributes" required="false" style="query" type="xsd:string">
            <doc><![CDATA[Filter trips by one or more footway attribute codes of a journey. Multiple attribute codes are separated by comma. If the attribute should not be part of the be trip, negate it by putting ! in front of it. String not longer than 1024.]]></doc>
          </param>
          <param name="lines" required="false" style="query" type="xsd:string">
            <doc><![CDATA[Only journeys running the given line are part of the result. To filter multiple lines, separate the codes by comma. If the line should not be part of the be trip, negate it by putting ! in front of it. String not longer than 1024.]]></doc>
          </param>
          <param name="lineids" required="false" style="query" type="xsd:string">
            <doc><![CDATA[Only journeys running the given line (identified by its line ID) are part of the result. To filter multiple lines, separate the line IDs by comma. If the line should not be part of the be trip, negate it by putting ! in front of it. String not longer than 1024.]]></doc>
          </param>
          <param name="avoidPaths" required="false" style="query" type="xsd:string">
            <doc><![CDATA[Only path not having the given properties will be part of the result. String not longer than 512.]]></doc>
          </param>
          <param name="originWalk" required="false" style="query" type="xsd:string">
            <doc><![CDATA[Enables/disables using footpaths in the beginning of a trip when searching from an address. String not longer than 1024.]]></doc>
          </param>
          <param name="originBike" required="false" style="query" type="xsd:string">
            <doc><![CDATA[Enables/disables using bike routes in the beginning of a trip when searching from an address. String not longer than 1024.]]></doc>
          </param>
          <param name="originCar" required="false" style="query" type="xsd:string">
            <doc><![CDATA[Enables/disables using car in the beginning of a trip when searching from an address. String not longer than 1024.]]></doc>
          </param>
          <param name="originTaxi" required="false" style="query" type="xsd:string">
            <doc><![CDATA[Enables/disables using taxi rides in the beginning of a trip when searching from an address. String not longer than 1024.]]></doc>
          </param>
          <param name="originPark" required="false" style="query" type="xsd:string">
            <doc><![CDATA[Enables/disables using Park and Ride in the beginning of a trip when searching from an address String not longer than 1024.]]></doc>
          </param>
          <param name="originMeta" required="false" style="query" type="xsd:string">
            <doc><![CDATA[Enables using one or more predefined individual transport meta profile at the beginning of a trip. The profiles are defined in the HAFAS installation. String not longer than 512.]]></doc>
          </param>
          <param name="destWalk" required="false" style="query" type="xsd:string">
            <doc><![CDATA[Enables/disables using footpaths at the end of a trip when searching to an address. String not longer than 1024.]]></doc>
          </param>
          <param name="destBike" required="false" style="query" type="xsd:string">
            <doc><![CDATA[Enables/disables using bike routes at the end of a trip when searching to an address. String not longer than 1024.]]></doc>
          </param>
          <param name="destCar" required="false" style="query" type="xsd:string">
            <doc><![CDATA[Enables/disables using car routes at the end of a trip when searching to an address. String not longer than 1024.]]></doc>
          </param>
          <param name="destTaxi" required="false" style="query" type="xsd:string">
            <doc><![CDATA[Enables/disables using taxi rides at the end of a trip when searching to an address. String not longer than 1024.]]></doc>
          </param>
          <param name="destPark" required="false" style="query" type="xsd:string">
            <doc><![CDATA[Enables/disables using Park and Ride at the end of a trip when searching to an address. String not longer than 1024.]]></doc>
          </param>
          <param name="destMeta" required="false" style="query" type="xsd:string">
            <doc><![CDATA[Enables using one or more predefined individual transport meta profile at the end of a trip. The profiles are defined in the HAFAS installation. String not longer than 512.]]></doc>
          </param>
          <param name="totalWalk" required="false" style="query" type="xsd:string">
            <doc><![CDATA[Enables/disables using footpaths for the whole trip. String not longer than 1024.]]></doc>
          </param>
          <param name="totalBike" required="false" style="query" type="xsd:string">
            <doc><![CDATA[Enables/disables using bike routes for the whole trip. String not longer than 1024.]]></doc>
          </param>
          <param name="totalCar" required="false" style="query" type="xsd:string">
            <doc><![CDATA[Enables/disables using car routes for the whole trip. String not longer than 1024.]]></doc>
          </param>
          <param name="totalTaxi" required="false" style="query" type="xsd:string">
            <doc><![CDATA[Enables/disables using taxi rides for the whole trip. String not longer than 1024.]]></doc>
          </param>
          <param name="totalMeta" required="false" style="query" type="xsd:string">
            <doc><![CDATA[Enables using one or more predefined individual transport meta profile for a trip. The profiles are defined in the HAFAS installation. String not longer than 512.]]></doc>
          </param>
          <param name="gisProducts" required="false" style="query" type="xsd:string">
            <doc><![CDATA[Filter on GIS product, e.g. specific sharing provider. Currently, only exclusion of certain providers is available by adding ! in front of the provider meta code. Available codes are customer sprecific. String not longer than 8096.]]></doc>
          </param>
          <param default="false" name="includeIv" required="false" style="query" type="xsd:int">
            <doc><![CDATA[Enables/disables search for individual transport routes.]]></doc>
          </param>
          <param default="false" name="ivOnly" required="false" style="query" type="xsd:int">
            <doc><![CDATA[Enables/disables search for individual transport routes only.]]></doc>
          </param>
          <param default="true" name="includeDrt" required="false" style="query" type="xsd:int">
            <doc><![CDATA[Enables/disables search for DRT routes.]]></doc>
          </param>
          <param name="mobilityProfile" required="false" style="query" type="xsd:string">
            <doc><![CDATA[Use a predefined filter by its name. The filters are defined in the HAFAS installation. If the filter should be negated, put a ! in front of its name. String not longer than 512.]]></doc>
          </param>
          <param default="false" name="bikeCarriage" required="false" style="query" type="xsd:int">
            <doc><![CDATA[Enables/disables search for trips explicit allowing bike carriage.]]></doc>
          </param>
          <param name="bikeCarriageType" required="false" style="query" type="xsd:string">
            <doc><![CDATA[Filter for a specific bike carriage type. Allowed types are SINGLEBIKES, SMALLGROUPS and LARGEGROUPS. May be not available in any installation.]]></doc>
          </param>
          <param default="false" name="sleepingCar" required="false" style="query" type="xsd:int">
            <doc><![CDATA[Enables/disables search for trips having sleeping car.]]></doc>
          </param>
          <param default="false" name="couchetteCoach" required="false" style="query" type="xsd:int">
            <doc><![CDATA[Enables/disables search for trips having couchette coach.]]></doc>
          </param>
          <param default="false" name="showPassingPoints" required="false" style="query" type="xsd:int">
            <doc><![CDATA[Enables/disables the return of stops having no alighting and boarding in its passlist for each leg of the trip. Needs passlist enabled.]]></doc>
          </param>
          <param default="false" name="baim" required="false" style="query" type="xsd:int">
            <doc><![CDATA[Enables/disables BAIM search and response.]]></doc>
          </param>
          <param default="false" name="eco" required="false" style="query" type="xsd:int">
            <doc><![CDATA[Only supported if legacy environmental calculator is used.

Deprecated. Enables/disables eco value calculation.]]></doc>
          </param>
          <param default="false" name="ecoCmp" required="false" style="query" type="xsd:int">
            <doc><![CDATA[Only supported if legacy environmental calculator is used.

Deprecated. Enables/disables eco comparison.]]></doc>
          </param>
          <param name="ecoParams" required="false" style="query" type="xsd:string">
            <doc><![CDATA[Provide additional eco parameters. String not longer than 1024.]]></doc>
          </param>
          <param name="rtMode" required="false" style="query" type="xsd:string">
            <doc><![CDATA[Set the realtime mode to be used.]]></doc>
          </param>
          <param default="false" name="unsharp" required="false" style="query" type="xsd:int">
            <doc><![CDATA[Enables/disables unsharp search mode.]]></doc>
          </param>
          <param name="trainFilter" required="false" style="query" type="xsd:string">
            <doc><![CDATA[Filters a trip search for a certain train. String not longer than 1024.]]></doc>
          </param>
          <param default="false" name="economic" required="false" style="query" type="xsd:int">
            <doc><![CDATA[Enables/disables economic search mode.]]></doc>
          </param>
          <param default="true" name="allowFootpathEquivalences" required="false" style="query" type="xsd:int">
            <doc><![CDATA[If the walk is disabled or a maximum walk distance of 0 is set and all other gis modalities are disabled HAFAS is allowed to use start/destination equivalences that are connected by a data foot path.]]></doc>
          </param>
          <param name="groupFilter" required="false" style="query" type="xsd:string">
            <doc><![CDATA[Use a predefined group filter to query for certain modes. String not longer than 512.]]></doc>
          </param>
          <param name="blockingList" required="false" style="query" type="xsd:string">
            <doc><![CDATA[Defines a section of a route of a journey not to be used within the trip search. String not longer than 32768.]]></doc>
          </param>
          <param name="blockedEdges" required="false" style="query" type="xsd:string">
            <doc><![CDATA[List of edges within the public transport network that should be excluded from the result. String not longer than 32768.]]></doc>
          </param>
          <param default="false" name="trainComposition" required="false" style="query" type="xsd:int">
            <doc><![CDATA[Enables/disables train composition data.]]></doc>
          </param>
          <param default="false" name="includeEarlier" required="false" style="query" type="xsd:int">
            <doc><![CDATA[Disables search optimization in relation of duration.]]></doc>
          </param>
          <param default="false" name="withICTAlternatives" required="false" style="query" type="xsd:int">
            <doc><![CDATA[Enables/disables the search for alternatives with individualized change times (ICT).]]></doc>
          </param>
          <param name="tariff" required="false" style="query" type="xsd:int">
            <doc><![CDATA[Enables/disables the output of tariff data. The default is configurable via provisioning.]]></doc>
          </param>
          <param name="trafficMessages" required="false" style="query" type="xsd:int">
            <doc><![CDATA[Enables/disables the output of traffic messages. The default is configurable via provisioning.]]></doc>
          </param>
          <param name="travellerProfileData" required="false" style="query" type="xsd:string">
            <doc><![CDATA[Traveller profile data. Structure depends on set up. String not longer than 32768.]]></doc>
          </param>
          <param default="true" name="withFreq" required="false" style="query" type="xsd:int">
            <doc><![CDATA[Enables/disables the calculation of frequency information.]]></doc>
          </param>
          <param default="false" name="withJourneyBoundaryPoints" required="false" style="query" type="xsd:int">
            <doc><![CDATA[Enables/disables the return of journey boundary stops at public transport legs.]]></doc>
          </param>
        </request>
        <response>
          <representation xmlns:proxy="http://hacon.de/hafas/proxy/hafas-proxy" element="proxy:TripList"/>
        </response>
      </method>
    </resource>
  </resources>
</application>
