Reference for http://api.ruter.no/ReisRest/Trip/GetTrip/{TRIPID}?time={TIME}

Url: http://api.ruter.no/ReisRest/Trip/GetTrip/{TRIPID}?time={TIME}

HTTP Method: GET

This operation supports JSONP responses. The callback function can be specified using the "callback" Url query parameter.

Message direction Format Body
Request N/A The Request body is empty.
Response Xml Example,Schema
Response Json Example

The following is an example response Xml body:

<Trip xmlns="http://schemas.datacontract.org/2004/07/Topp2009">
  <ID>2147483647</ID>
  <ReisError>
    <Description>String content</Description>
    <ID>2147483647</ID>
  </ReisError>
  <Stops>
    <Stop>
      <District>String content</District>
      <ID>2147483647</ID>
      <Name>String content</Name>
      <Rank>2147483647</Rank>
      <ShortName>String content</ShortName>
      <Stops>
        <Stop>
          <District>String content</District>
          <ID>2147483647</ID>
          <Name>String content</Name>
          <Rank>2147483647</Rank>
          <ShortName>String content</ShortName>
          <Stops>
            <Stop i:nil="true" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" />
            <Stop i:nil="true" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" />
          </Stops>
          <Type>Stop</Type>
          <X>2147483647</X>
          <Y>2147483647</Y>
          <Zone>String content</Zone>
          <AlightingAllowed>true</AlightingAllowed>
          <ArrivalTime>1999-05-31T11:20:00</ArrivalTime>
          <BoardingAllowed>true</BoardingAllowed>
          <DepartureTime>1999-05-31T11:20:00</DepartureTime>
          <Deviations>
            <Deviation>
              <Header>String content</Header>
              <ID>2147483647</ID>
            </Deviation>
            <Deviation>
              <Header>String content</Header>
              <ID>2147483647</ID>
            </Deviation>
          </Deviations>
          <Lines>
            <Line>
              <LineID>2147483647</LineID>
              <LineName>String content</LineName>
              <Transportation>Walking</Transportation>
            </Line>
            <Line>
              <LineID>2147483647</LineID>
              <LineName>String content</LineName>
              <Transportation>Walking</Transportation>
            </Line>
          </Lines>
          <RealTimeStop>true</RealTimeStop>
          <StopPoints>
            <StopPoint>
              <ID>32767</ID>
              <Name>String content</Name>
              <X>2147483647</X>
              <Y>2147483647</Y>
            </StopPoint>
            <StopPoint>
              <ID>32767</ID>
              <Name>String content</Name>
              <X>2147483647</X>
              <Y>2147483647</Y>
            </StopPoint>
          </StopPoints>
          <WalkingDistance>2147483647</WalkingDistance>
        </Stop>
        <Stop>
          <District>String content</District>
          <ID>2147483647</ID>
          <Name>String content</Name>
          <Rank>2147483647</Rank>
          <ShortName>String content</ShortName>
          <Stops>
            <Stop i:nil="true" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" />
            <Stop i:nil="true" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" />
          </Stops>
          <Type>Stop</Type>
          <X>2147483647</X>
          <Y>2147483647</Y>
          <Zone>String content</Zone>
          <AlightingAllowed>true</AlightingAllowed>
          <ArrivalTime>1999-05-31T11:20:00</ArrivalTime>
          <BoardingAllowed>true</BoardingAllowed>
          <DepartureTime>1999-05-31T11:20:00</DepartureTime>
          <Deviations>
            <Deviation>
              <Header>String content</Header>
              <ID>2147483647</ID>
            </Deviation>
            <Deviation>
              <Header>String content</Header>
              <ID>2147483647</ID>
            </Deviation>
          </Deviations>
          <Lines>
            <Line>
              <LineID>2147483647</LineID>
              <LineName>String content</LineName>
              <Transportation>Walking</Transportation>
            </Line>
            <Line>
              <LineID>2147483647</LineID>
              <LineName>String content</LineName>
              <Transportation>Walking</Transportation>
            </Line>
          </Lines>
          <RealTimeStop>true</RealTimeStop>
          <StopPoints>
            <StopPoint>
              <ID>32767</ID>
              <Name>String content</Name>
              <X>2147483647</X>
              <Y>2147483647</Y>
            </StopPoint>
            <StopPoint>
              <ID>32767</ID>
              <Name>String content</Name>
              <X>2147483647</X>
              <Y>2147483647</Y>
            </StopPoint>
          </StopPoints>
          <WalkingDistance>2147483647</WalkingDistance>
        </Stop>
      </Stops>
      <Type>Stop</Type>
      <X>2147483647</X>
      <Y>2147483647</Y>
      <Zone>String content</Zone>
      <AlightingAllowed>true</AlightingAllowed>
      <ArrivalTime>1999-05-31T11:20:00</ArrivalTime>
      <BoardingAllowed>true</BoardingAllowed>
      <DepartureTime>1999-05-31T11:20:00</DepartureTime>
      <Deviations>
        <Deviation>
          <Header>String content</Header>
          <ID>2147483647</ID>
        </Deviation>
        <Deviation>
          <Header>String content</Header>
          <ID>2147483647</ID>
        </Deviation>
      </Deviations>
      <Lines>
        <Line>
          <LineID>2147483647</LineID>
          <LineName>String content</LineName>
          <Transportation>Walking</Transportation>
        </Line>
        <Line>
          <LineID>2147483647</LineID>
          <LineName>String content</LineName>
          <Transportation>Walking</Transportation>
        </Line>
      </Lines>
      <RealTimeStop>true</RealTimeStop>
      <StopPoints>
        <StopPoint>
          <ID>32767</ID>
          <Name>String content</Name>
          <X>2147483647</X>
          <Y>2147483647</Y>
        </StopPoint>
        <StopPoint>
          <ID>32767</ID>
          <Name>String content</Name>
          <X>2147483647</X>
          <Y>2147483647</Y>
        </StopPoint>
      </StopPoints>
      <WalkingDistance>2147483647</WalkingDistance>
    </Stop>
    <Stop>
      <District>String content</District>
      <ID>2147483647</ID>
      <Name>String content</Name>
      <Rank>2147483647</Rank>
      <ShortName>String content</ShortName>
      <Stops>
        <Stop>
          <District>String content</District>
          <ID>2147483647</ID>
          <Name>String content</Name>
          <Rank>2147483647</Rank>
          <ShortName>String content</ShortName>
          <Stops>
            <Stop i:nil="true" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" />
            <Stop i:nil="true" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" />
          </Stops>
          <Type>Stop</Type>
          <X>2147483647</X>
          <Y>2147483647</Y>
          <Zone>String content</Zone>
          <AlightingAllowed>true</AlightingAllowed>
          <ArrivalTime>1999-05-31T11:20:00</ArrivalTime>
          <BoardingAllowed>true</BoardingAllowed>
          <DepartureTime>1999-05-31T11:20:00</DepartureTime>
          <Deviations>
            <Deviation>
              <Header>String content</Header>
              <ID>2147483647</ID>
            </Deviation>
            <Deviation>
              <Header>String content</Header>
              <ID>2147483647</ID>
            </Deviation>
          </Deviations>
          <Lines>
            <Line>
              <LineID>2147483647</LineID>
              <LineName>String content</LineName>
              <Transportation>Walking</Transportation>
            </Line>
            <Line>
              <LineID>2147483647</LineID>
              <LineName>String content</LineName>
              <Transportation>Walking</Transportation>
            </Line>
          </Lines>
          <RealTimeStop>true</RealTimeStop>
          <StopPoints>
            <StopPoint>
              <ID>32767</ID>
              <Name>String content</Name>
              <X>2147483647</X>
              <Y>2147483647</Y>
            </StopPoint>
            <StopPoint>
              <ID>32767</ID>
              <Name>String content</Name>
              <X>2147483647</X>
              <Y>2147483647</Y>
            </StopPoint>
          </StopPoints>
          <WalkingDistance>2147483647</WalkingDistance>
        </Stop>
        <Stop>
          <District>String content</District>
          <ID>2147483647</ID>
          <Name>String content</Name>
          <Rank>2147483647</Rank>
          <ShortName>String content</ShortName>
          <Stops>
            <Stop i:nil="true" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" />
            <Stop i:nil="true" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" />
          </Stops>
          <Type>Stop</Type>
          <X>2147483647</X>
          <Y>2147483647</Y>
          <Zone>String content</Zone>
          <AlightingAllowed>true</AlightingAllowed>
          <ArrivalTime>1999-05-31T11:20:00</ArrivalTime>
          <BoardingAllowed>true</BoardingAllowed>
          <DepartureTime>1999-05-31T11:20:00</DepartureTime>
          <Deviations>
            <Deviation>
              <Header>String content</Header>
              <ID>2147483647</ID>
            </Deviation>
            <Deviation>
              <Header>String content</Header>
              <ID>2147483647</ID>
            </Deviation>
          </Deviations>
          <Lines>
            <Line>
              <LineID>2147483647</LineID>
              <LineName>String content</LineName>
              <Transportation>Walking</Transportation>
            </Line>
            <Line>
              <LineID>2147483647</LineID>
              <LineName>String content</LineName>
              <Transportation>Walking</Transportation>
            </Line>
          </Lines>
          <RealTimeStop>true</RealTimeStop>
          <StopPoints>
            <StopPoint>
              <ID>32767</ID>
              <Name>String content</Name>
              <X>2147483647</X>
              <Y>2147483647</Y>
            </StopPoint>
            <StopPoint>
              <ID>32767</ID>
              <Name>String content</Name>
              <X>2147483647</X>
              <Y>2147483647</Y>
            </StopPoint>
          </StopPoints>
          <WalkingDistance>2147483647</WalkingDistance>
        </Stop>
      </Stops>
      <Type>Stop</Type>
      <X>2147483647</X>
      <Y>2147483647</Y>
      <Zone>String content</Zone>
      <AlightingAllowed>true</AlightingAllowed>
      <ArrivalTime>1999-05-31T11:20:00</ArrivalTime>
      <BoardingAllowed>true</BoardingAllowed>
      <DepartureTime>1999-05-31T11:20:00</DepartureTime>
      <Deviations>
        <Deviation>
          <Header>String content</Header>
          <ID>2147483647</ID>
        </Deviation>
        <Deviation>
          <Header>String content</Header>
          <ID>2147483647</ID>
        </Deviation>
      </Deviations>
      <Lines>
        <Line>
          <LineID>2147483647</LineID>
          <LineName>String content</LineName>
          <Transportation>Walking</Transportation>
        </Line>
        <Line>
          <LineID>2147483647</LineID>
          <LineName>String content</LineName>
          <Transportation>Walking</Transportation>
        </Line>
      </Lines>
      <RealTimeStop>true</RealTimeStop>
      <StopPoints>
        <StopPoint>
          <ID>32767</ID>
          <Name>String content</Name>
          <X>2147483647</X>
          <Y>2147483647</Y>
        </StopPoint>
        <StopPoint>
          <ID>32767</ID>
          <Name>String content</Name>
          <X>2147483647</X>
          <Y>2147483647</Y>
        </StopPoint>
      </StopPoints>
      <WalkingDistance>2147483647</WalkingDistance>
    </Stop>
  </Stops>
</Trip>

The following is an example response Json body:

{
	"ID":2147483647,
	"ReisError":{
		"Description":"String content",
		"ID":2147483647
	},
	"Stops":[{
		"District":"String content",
		"ID":2147483647,
		"Name":"String content",
		"Rank":2147483647,
		"ShortName":"String content",
		"Stops":[{
			"District":"String content",
			"ID":2147483647,
			"Name":"String content",
			"Rank":2147483647,
			"ShortName":"String content",
			"Stops":[null],
			"Type":0,
			"X":2147483647,
			"Y":2147483647,
			"Zone":"String content",
			"AlightingAllowed":true,
			"ArrivalTime":"\/Date(928142400000+0200)\/",
			"BoardingAllowed":true,
			"DepartureTime":"\/Date(928142400000+0200)\/",
			"Deviations":[{
				"Header":"String content",
				"ID":2147483647
			}],
			"Lines":[{
				"LineID":2147483647,
				"LineName":"String content",
				"Transportation":0
			}],
			"RealTimeStop":true,
			"StopPoints":[{
				"ID":32767,
				"Name":"String content",
				"X":2147483647,
				"Y":2147483647
			}],
			"WalkingDistance":2147483647
		}],
		"Type":0,
		"X":2147483647,
		"Y":2147483647,
		"Zone":"String content",
		"AlightingAllowed":true,
		"ArrivalTime":"\/Date(928142400000+0200)\/",
		"BoardingAllowed":true,
		"DepartureTime":"\/Date(928142400000+0200)\/",
		"Deviations":[{
			"Header":"String content",
			"ID":2147483647
		}],
		"Lines":[{
			"LineID":2147483647,
			"LineName":"String content",
			"Transportation":0
		}],
		"RealTimeStop":true,
		"StopPoints":[{
			"ID":32767,
			"Name":"String content",
			"X":2147483647,
			"Y":2147483647
		}],
		"WalkingDistance":2147483647
	}]
}

The following is the response Xml Schema:

<xs:schema xmlns:tns="http://schemas.datacontract.org/2004/07/Topp2009" elementFormDefault="qualified" targetNamespace="http://schemas.datacontract.org/2004/07/Topp2009" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:complexType name="Street">
    <xs:complexContent mixed="false">
      <xs:extension base="tns:Place">
        <xs:sequence>
          <xs:element minOccurs="0" name="Houses" nillable="true" type="tns:ArrayOfHouse" />
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:element name="Street" nillable="true" type="tns:Street" />
  <xs:complexType name="Place">
    <xs:sequence>
      <xs:element minOccurs="0" name="District" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ID" type="xs:int" />
      <xs:element minOccurs="0" name="Name" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Rank" type="xs:int" />
      <xs:element minOccurs="0" name="ShortName" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Stops" nillable="true" type="tns:ArrayOfStop" />
      <xs:element minOccurs="0" name="Type" type="tns:PlaceType" />
      <xs:element minOccurs="0" name="X" type="xs:int" />
      <xs:element minOccurs="0" name="Y" type="xs:int" />
      <xs:element minOccurs="0" name="Zone" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="Place" nillable="true" type="tns:Place" />
  <xs:complexType name="ArrayOfStop">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="Stop" nillable="true" type="tns:Stop" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfStop" nillable="true" type="tns:ArrayOfStop" />
  <xs:complexType name="Stop">
    <xs:complexContent mixed="false">
      <xs:extension base="tns:Place">
        <xs:sequence>
          <xs:element minOccurs="0" name="AlightingAllowed" type="xs:boolean" />
          <xs:element minOccurs="0" name="ArrivalTime" nillable="true" type="xs:dateTime" />
          <xs:element minOccurs="0" name="BoardingAllowed" type="xs:boolean" />
          <xs:element minOccurs="0" name="DepartureTime" nillable="true" type="xs:dateTime" />
          <xs:element minOccurs="0" name="Deviations" nillable="true" type="tns:ArrayOfDeviation" />
          <xs:element minOccurs="0" name="Lines" nillable="true" type="tns:ArrayOfLine" />
          <xs:element minOccurs="0" name="RealTimeStop" type="xs:boolean" />
          <xs:element minOccurs="0" name="StopPoints" nillable="true" type="tns:ArrayOfStopPoint" />
          <xs:element minOccurs="0" name="WalkingDistance" type="xs:int" />
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:element name="Stop" nillable="true" type="tns:Stop" />
  <xs:complexType name="ArrayOfDeviation">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="Deviation" nillable="true" type="tns:Deviation" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfDeviation" nillable="true" type="tns:ArrayOfDeviation" />
  <xs:complexType name="Deviation">
    <xs:sequence>
      <xs:element minOccurs="0" name="Header" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ID" type="xs:int" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="Deviation" nillable="true" type="tns:Deviation" />
  <xs:complexType name="ArrayOfLine">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="Line" nillable="true" type="tns:Line" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfLine" nillable="true" type="tns:ArrayOfLine" />
  <xs:complexType name="Line">
    <xs:sequence>
      <xs:element minOccurs="0" name="LineID" type="xs:int" />
      <xs:element minOccurs="0" name="LineName" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Transportation" type="tns:TransportationType" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="Line" nillable="true" type="tns:Line" />
  <xs:simpleType name="TransportationType">
    <xs:restriction base="xs:string">
      <xs:enumeration value="Walking" />
      <xs:enumeration value="AirportBus" />
      <xs:enumeration value="Bus" />
      <xs:enumeration value="Dummy" />
      <xs:enumeration value="AirportTrain" />
      <xs:enumeration value="Boat" />
      <xs:enumeration value="Train" />
      <xs:enumeration value="Tram" />
      <xs:enumeration value="Metro" />
    </xs:restriction>
  </xs:simpleType>
  <xs:element name="TransportationType" nillable="true" type="tns:TransportationType" />
  <xs:complexType name="ArrayOfStopPoint">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="StopPoint" nillable="true" type="tns:StopPoint" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfStopPoint" nillable="true" type="tns:ArrayOfStopPoint" />
  <xs:complexType name="StopPoint">
    <xs:sequence>
      <xs:element minOccurs="0" name="ID" type="xs:short" />
      <xs:element minOccurs="0" name="Name" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="X" type="xs:int" />
      <xs:element minOccurs="0" name="Y" type="xs:int" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="StopPoint" nillable="true" type="tns:StopPoint" />
  <xs:simpleType name="PlaceType">
    <xs:restriction base="xs:string">
      <xs:enumeration value="Stop" />
      <xs:enumeration value="Area" />
      <xs:enumeration value="POI" />
      <xs:enumeration value="Street" />
    </xs:restriction>
  </xs:simpleType>
  <xs:element name="PlaceType" nillable="true" type="tns:PlaceType" />
  <xs:complexType name="ArrayOfHouse">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="House" nillable="true" type="tns:House" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfHouse" nillable="true" type="tns:ArrayOfHouse" />
  <xs:complexType name="House">
    <xs:sequence>
      <xs:element minOccurs="0" name="Name" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="X" type="xs:int" />
      <xs:element minOccurs="0" name="Y" type="xs:int" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="House" nillable="true" type="tns:House" />
  <xs:complexType name="Trip">
    <xs:sequence>
      <xs:element minOccurs="0" name="ID" type="xs:int" />
      <xs:element minOccurs="0" name="ReisError" nillable="true" type="tns:ReisError" />
      <xs:element minOccurs="0" name="Stops" nillable="true" type="tns:ArrayOfStop" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="Trip" nillable="true" type="tns:Trip" />
  <xs:complexType name="ReisError">
    <xs:sequence>
      <xs:element minOccurs="0" name="Description" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ID" type="xs:int" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ReisError" nillable="true" type="tns:ReisError" />
</xs:schema>

Additional response Xml Schemas:

<xs:schema xmlns:tns="http://schemas.microsoft.com/2003/10/Serialization/" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://schemas.microsoft.com/2003/10/Serialization/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="anyType" nillable="true" type="xs:anyType" />
  <xs:element name="anyURI" nillable="true" type="xs:anyURI" />
  <xs:element name="base64Binary" nillable="true" type="xs:base64Binary" />
  <xs:element name="boolean" nillable="true" type="xs:boolean" />
  <xs:element name="byte" nillable="true" type="xs:byte" />
  <xs:element name="dateTime" nillable="true" type="xs:dateTime" />
  <xs:element name="decimal" nillable="true" type="xs:decimal" />
  <xs:element name="double" nillable="true" type="xs:double" />
  <xs:element name="float" nillable="true" type="xs:float" />
  <xs:element name="int" nillable="true" type="xs:int" />
  <xs:element name="long" nillable="true" type="xs:long" />
  <xs:element name="QName" nillable="true" type="xs:QName" />
  <xs:element name="short" nillable="true" type="xs:short" />
  <xs:element name="string" nillable="true" type="xs:string" />
  <xs:element name="unsignedByte" nillable="true" type="xs:unsignedByte" />
  <xs:element name="unsignedInt" nillable="true" type="xs:unsignedInt" />
  <xs:element name="unsignedLong" nillable="true" type="xs:unsignedLong" />
  <xs:element name="unsignedShort" nillable="true" type="xs:unsignedShort" />
  <xs:element name="char" nillable="true" type="tns:char" />
  <xs:simpleType name="char">
    <xs:restriction base="xs:int" />
  </xs:simpleType>
  <xs:element name="duration" nillable="true" type="tns:duration" />
  <xs:simpleType name="duration">
    <xs:restriction base="xs:duration">
      <xs:pattern value="\-?P(\d*D)?(T(\d*H)?(\d*M)?(\d*(\.\d*)?S)?)?" />
      <xs:minInclusive value="-P10675199DT2H48M5.4775808S" />
      <xs:maxInclusive value="P10675199DT2H48M5.4775807S" />
    </xs:restriction>
  </xs:simpleType>
  <xs:element name="guid" nillable="true" type="tns:guid" />
  <xs:simpleType name="guid">
    <xs:restriction base="xs:string">
      <xs:pattern value="[\da-fA-F]{8}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{12}" />
    </xs:restriction>
  </xs:simpleType>
  <xs:attribute name="FactoryType" type="xs:QName" />
  <xs:attribute name="Id" type="xs:ID" />
  <xs:attribute name="Ref" type="xs:IDREF" />
</xs:schema>

<tns:schema targetNamespace="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://www.w3.org/2001/XMLSchema">
  <tns:element name="schema">
    <tns:complexType />
  </tns:element>
</tns:schema>