Reference for http://api.ruter.no/ReisRest/RealTime/GetAllDepartures/{STRSTOPID}

Url: http://api.ruter.no/ReisRest/RealTime/GetAllDepartures/{STRSTOPID}

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:

<ArrayOfMonitoredStopVisit xmlns="http://schemas.datacontract.org/2004/07/Topp2009">
  <MonitoredStopVisit>
    <AimedArrivalTime>1999-05-31T11:20:00</AimedArrivalTime>
    <AimedDepartureTime>1999-05-31T11:20:00</AimedDepartureTime>
    <ArrivalBoardingActivity>String content</ArrivalBoardingActivity>
    <BlockRef>String content</BlockRef>
    <Delay>String content</Delay>
    <DepartureBoardingActivity>String content</DepartureBoardingActivity>
    <DeparturePlatformName>String content</DeparturePlatformName>
    <DestinationDisplay>String content</DestinationDisplay>
    <DestinationName>String content</DestinationName>
    <DestinationRef>2147483647</DestinationRef>
    <DirectionName>String content</DirectionName>
    <DirectionRef>String content</DirectionRef>
    <ExpectedArrivalTime>1999-05-31T11:20:00</ExpectedArrivalTime>
    <ExpectedDepartureTime>1999-05-31T11:20:00</ExpectedDepartureTime>
    <Extensions>
      <Deviations>
        <Deviation>
          <Header>String content</Header>
          <ID>2147483647</ID>
        </Deviation>
        <Deviation>
          <Header>String content</Header>
          <ID>2147483647</ID>
        </Deviation>
      </Deviations>
      <OccupancyData>
        <OccupancyAvailable>true</OccupancyAvailable>
        <OccupancyPercentage>2147483647</OccupancyPercentage>
      </OccupancyData>
    </Extensions>
    <FramedVehicleJourneyRef>
      <DataFrameRef>String content</DataFrameRef>
      <DatedVehicleJourneyRef>String content</DatedVehicleJourneyRef>
    </FramedVehicleJourneyRef>
    <InCongestion>true</InCongestion>
    <LineRef>String content</LineRef>
    <Monitored>true</Monitored>
    <OperatorRef>String content</OperatorRef>
    <OriginName>String content</OriginName>
    <OriginRef>String content</OriginRef>
    <PublishedLineName>String content</PublishedLineName>
    <StopVisitNote>String content</StopVisitNote>
    <TrainBlockPart>
      <NumberOfBlockParts>2147483647</NumberOfBlockParts>
    </TrainBlockPart>
    <VehicleAtStop>true</VehicleAtStop>
    <VehicleFeatureRef>String content</VehicleFeatureRef>
    <VehicleJourneyName>String content</VehicleJourneyName>
    <VehicleMode i:nil="true" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" />
    <VehicleRef>String content</VehicleRef>
    <ViaName1>String content</ViaName1>
    <VisitNumber>2147483647</VisitNumber>
  </MonitoredStopVisit>
  <MonitoredStopVisit>
    <AimedArrivalTime>1999-05-31T11:20:00</AimedArrivalTime>
    <AimedDepartureTime>1999-05-31T11:20:00</AimedDepartureTime>
    <ArrivalBoardingActivity>String content</ArrivalBoardingActivity>
    <BlockRef>String content</BlockRef>
    <Delay>String content</Delay>
    <DepartureBoardingActivity>String content</DepartureBoardingActivity>
    <DeparturePlatformName>String content</DeparturePlatformName>
    <DestinationDisplay>String content</DestinationDisplay>
    <DestinationName>String content</DestinationName>
    <DestinationRef>2147483647</DestinationRef>
    <DirectionName>String content</DirectionName>
    <DirectionRef>String content</DirectionRef>
    <ExpectedArrivalTime>1999-05-31T11:20:00</ExpectedArrivalTime>
    <ExpectedDepartureTime>1999-05-31T11:20:00</ExpectedDepartureTime>
    <Extensions>
      <Deviations>
        <Deviation>
          <Header>String content</Header>
          <ID>2147483647</ID>
        </Deviation>
        <Deviation>
          <Header>String content</Header>
          <ID>2147483647</ID>
        </Deviation>
      </Deviations>
      <OccupancyData>
        <OccupancyAvailable>true</OccupancyAvailable>
        <OccupancyPercentage>2147483647</OccupancyPercentage>
      </OccupancyData>
    </Extensions>
    <FramedVehicleJourneyRef>
      <DataFrameRef>String content</DataFrameRef>
      <DatedVehicleJourneyRef>String content</DatedVehicleJourneyRef>
    </FramedVehicleJourneyRef>
    <InCongestion>true</InCongestion>
    <LineRef>String content</LineRef>
    <Monitored>true</Monitored>
    <OperatorRef>String content</OperatorRef>
    <OriginName>String content</OriginName>
    <OriginRef>String content</OriginRef>
    <PublishedLineName>String content</PublishedLineName>
    <StopVisitNote>String content</StopVisitNote>
    <TrainBlockPart>
      <NumberOfBlockParts>2147483647</NumberOfBlockParts>
    </TrainBlockPart>
    <VehicleAtStop>true</VehicleAtStop>
    <VehicleFeatureRef>String content</VehicleFeatureRef>
    <VehicleJourneyName>String content</VehicleJourneyName>
    <VehicleMode i:nil="true" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" />
    <VehicleRef>String content</VehicleRef>
    <ViaName1>String content</ViaName1>
    <VisitNumber>2147483647</VisitNumber>
  </MonitoredStopVisit>
</ArrayOfMonitoredStopVisit>

The following is an example response Json body:

[{
	"AimedArrivalTime":"\/Date(928142400000+0200)\/",
	"AimedDepartureTime":"\/Date(928142400000+0200)\/",
	"ArrivalBoardingActivity":"String content",
	"BlockRef":"String content",
	"Delay":"String content",
	"DepartureBoardingActivity":"String content",
	"DeparturePlatformName":"String content",
	"DestinationDisplay":"String content",
	"DestinationName":"String content",
	"DestinationRef":2147483647,
	"DirectionName":"String content",
	"DirectionRef":"String content",
	"ExpectedArrivalTime":"\/Date(928142400000+0200)\/",
	"ExpectedDepartureTime":"\/Date(928142400000+0200)\/",
	"Extensions":{
		"Deviations":[{
			"Header":"String content",
			"ID":2147483647
		}],
		"OccupancyData":{
			"OccupancyAvailable":true,
			"OccupancyPercentage":2147483647
		}
	},
	"FramedVehicleJourneyRef":{
		"DataFrameRef":"String content",
		"DatedVehicleJourneyRef":"String content"
	},
	"InCongestion":true,
	"LineRef":"String content",
	"Monitored":true,
	"OperatorRef":"String content",
	"OriginName":"String content",
	"OriginRef":"String content",
	"PublishedLineName":"String content",
	"StopVisitNote":"String content",
	"TrainBlockPart":{
		"NumberOfBlockParts":2147483647
	},
	"VehicleAtStop":true,
	"VehicleFeatureRef":"String content",
	"VehicleJourneyName":"String content",
	"VehicleMode":null,
	"VehicleRef":"String content",
	"ViaName1":"String content",
	"VisitNumber":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="ArrayOfMonitoredStopVisit">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="MonitoredStopVisit" nillable="true" type="tns:MonitoredStopVisit" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfMonitoredStopVisit" nillable="true" type="tns:ArrayOfMonitoredStopVisit" />
  <xs:complexType name="MonitoredStopVisit">
    <xs:complexContent mixed="false">
      <xs:extension base="tns:MonitoredStopVisitBase">
        <xs:sequence>
          <xs:element minOccurs="0" name="AimedArrivalTime" type="xs:dateTime" />
          <xs:element minOccurs="0" name="AimedDepartureTime" type="xs:dateTime" />
          <xs:element minOccurs="0" name="ArrivalBoardingActivity" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="BlockRef" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="Delay" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="DepartureBoardingActivity" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="DeparturePlatformName" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="DestinationDisplay" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="DestinationName" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="DestinationRef" type="xs:int" />
          <xs:element minOccurs="0" name="DirectionName" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="DirectionRef" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="ExpectedArrivalTime" type="xs:dateTime" />
          <xs:element minOccurs="0" name="ExpectedDepartureTime" type="xs:dateTime" />
          <xs:element minOccurs="0" name="Extensions" nillable="true" type="tns:Extensions" />
          <xs:element minOccurs="0" name="FramedVehicleJourneyRef" nillable="true" type="tns:FramedVehicleJourneyType" />
          <xs:element minOccurs="0" name="InCongestion" type="xs:boolean" />
          <xs:element minOccurs="0" name="LineRef" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="Monitored" type="xs:boolean" />
          <xs:element minOccurs="0" name="OperatorRef" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="OriginName" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="OriginRef" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="PublishedLineName" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="StopVisitNote" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="TrainBlockPart" nillable="true" type="tns:TrainBlockPartType" />
          <xs:element minOccurs="0" name="VehicleAtStop" type="xs:boolean" />
          <xs:element minOccurs="0" name="VehicleFeatureRef" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="VehicleJourneyName" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="VehicleMode" type="tns:VehicleModeEnum" />
          <xs:element minOccurs="0" name="VehicleRef" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="ViaName1" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="VisitNumber" type="xs:int" />
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:element name="MonitoredStopVisit" nillable="true" type="tns:MonitoredStopVisit" />
  <xs:complexType name="MonitoredStopVisitBase">
    <xs:sequence />
  </xs:complexType>
  <xs:element name="MonitoredStopVisitBase" nillable="true" type="tns:MonitoredStopVisitBase" />
  <xs:complexType name="Extensions">
    <xs:sequence>
      <xs:element minOccurs="0" name="Deviations" nillable="true" type="tns:ArrayOfDeviation" />
      <xs:element minOccurs="0" name="OccupancyData" nillable="true" type="tns:OccupancyData" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="Extensions" nillable="true" type="tns:Extensions" />
  <xs:complexType name="OccupancyData">
    <xs:sequence>
      <xs:element minOccurs="0" name="OccupancyAvailable" type="xs:boolean" />
      <xs:element minOccurs="0" name="OccupancyPercentage" type="xs:int" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="OccupancyData" nillable="true" type="tns:OccupancyData" />
  <xs:complexType name="FramedVehicleJourneyType">
    <xs:sequence>
      <xs:element minOccurs="0" name="DataFrameRef" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="DatedVehicleJourneyRef" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="FramedVehicleJourneyType" nillable="true" type="tns:FramedVehicleJourneyType" />
  <xs:complexType name="TrainBlockPartType">
    <xs:sequence>
      <xs:element minOccurs="0" name="NumberOfBlockParts" type="xs:int" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="TrainBlockPartType" nillable="true" type="tns:TrainBlockPartType" />
  <xs:simpleType name="VehicleModeEnum">
    <xs:restriction base="xs:string" />
  </xs:simpleType>
  <xs:element name="VehicleModeEnum" nillable="true" type="tns:VehicleModeEnum" />
</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>