<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSPY v2004 rel. 4 U (http://www.xmlspy.com) by nick knowles (kizoom) -->
<!-- Copyright (C) 2004 RTIG -->
<!-- 
    RTIG-XML Bus & Tram Real Time Information Schema
    Example of synchronous response to request for stop status information. 
         
    This document shows examples tagged in conformance to the schema     
        
       
    This is a response to the single pull (one shot) request 
    in sample_stop_status_request.xml, providing very specific data about a stop in London
        
    Request was for the next 3 departure/arrivals of the 521 bus at Holborn Circus heading for Waterloo.
    The results are also constrained to buses leaving in the next 10 minutes.
       
    History
       2004 Oct 10 Created  
-->
<rt:PTStatusRealTimeDelivery xmlns:trdxml="http://www.rtigxml.org.uk/schema/trident-xml" xmlns:trd="http://www.trident.org/schema/trident" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:rt="http://www.rtigxml.org.uk/schema/trident-rt" xmlns:rtig="http://www.rtigxml.org.uk/schema/trident-rtig" xsi:schemaLocation=" http://www.rtigxml.org.uk/schema/trident-rtig ../rtig_reference.xsd">
    <rt:StopStatusRealTimeDelivery version="1.2c">
        <trd:objectId>TFL:RESPONSESTOPSTATUSRT:98432</trd:objectId>
        <trd:creationTime>2002-08-15T09:12:41+01:00</trd:creationTime>
        <rt:StopPointRef>
            <rtig:NaptanStopNumber>49008000</rtig:NaptanStopNumber>
            <rt:Label>Holborn Circus</rt:Label>
        </rt:StopPointRef>
        <!-- This is a delayed bus coming from Archway and terminating at Waterloo Station. It is not stopping after Holborn Circus. -->
        <rt:VehicleAtStopRealTime>
            <trd:objectId>TFL:VEHICLEATSTOPRT:64823</trd:objectId>
            <trd:creationTime>2002-08-15T09:12:41+01:00</trd:creationTime>
            <rt:Status>DELAYED</rt:Status>
            <rt:PlatformIdentifier>G</rt:PlatformIdentifier>
            <rt:TimeTableArrivalTime>2002-08-15T09:07:00+01:00</rt:TimeTableArrivalTime>
            <rt:TimeTableDepartureTime>2002-08-15T09:10:00+01:00</rt:TimeTableDepartureTime>
            <rt:ExpectedArrivalTime>2002-08-15T09:19:00+01:00</rt:ExpectedArrivalTime>
            <rt:ExpectedDepartureTime>2002-08-15T09:22:00+01:00</rt:ExpectedDepartureTime>
            <rt:VehicleJourneyRealTime>
                <rt:VehicleRef>
                    <rtig:RtigVehicleIdentifier>4523</rtig:RtigVehicleIdentifier>
                    <rt:Label>Bendy bus registration number KB02 GNW</rt:Label>
                </rt:VehicleRef>
                <rt:OperatorRef>
                    <rtig:UkBusOperatorCode>Metro</rtig:UkBusOperatorCode>
                    <rt:Label>Metro Line</rt:Label>
                </rt:OperatorRef>
                <rt:JourneyPatternRealTime>
                    <rt:LineRef>
                        <rtig:PublishedLineName>521</rtig:PublishedLineName>
                    </rt:LineRef>
                    <rt:Direction>Waterloo</rt:Direction>
                    <rt:Origin>
                        <rt:StopPointRef>
                            <rtig:NaptanStopNumber>49002001</rtig:NaptanStopNumber>
                            <rt:Label>Archway</rt:Label>
                        </rt:StopPointRef>
                        <rt:TimeTableDepartureTime>2002-08-15T08:45:00+01:00</rt:TimeTableDepartureTime>
                    </rt:Origin>
                    <rt:Via priority="1">
                        <rt:JourneyPlaceRef>
                            <rt:Label>Holborn</rt:Label>
                        </rt:JourneyPlaceRef>
                    </rt:Via>
                    <rt:Destination>
                        <rt:StopPointRef>
                            <rtig:NaptanStopNumber>49002002</rtig:NaptanStopNumber>
                            <rt:Label>Waterloo Station</rt:Label>
                        </rt:StopPointRef>
                        <rt:TimeTableArrivalTime>2002-08-15T09:30:00+01:00</rt:TimeTableArrivalTime>
                    </rt:Destination>
                    <!--PreviousJourneyPatternRealTime element does not exist, so the previous journey pattern is not known. -->
                    <rt:OnwardJourneyPatternRealTime>
                        <!--OnwardJourneyPatternRealTime element exists, but only contains the destination stop, so this bus has no intermediate stops between Holborn Circus and Waterloo Station. -->
                        <rt:StopPointRealTime>
                            <rt:StopPointRef>
                                <rtig:NaptanStopNumber>49002002</rtig:NaptanStopNumber>
                                <rt:Label>Waterloo Station</rt:Label>
                            </rt:StopPointRef>
                            <rt:TimeTableArrivalTime>2002-08-15T09:30:00+01:00</rt:TimeTableArrivalTime>
                        </rt:StopPointRealTime>
                    </rt:OnwardJourneyPatternRealTime>
                </rt:JourneyPatternRealTime>
            </rt:VehicleJourneyRealTime>
        </rt:VehicleAtStopRealTime>
        <!-- This entry illustrates unknown previous and onward calling patterns. -->
        <rt:VehicleAtStopRealTime>
            <trd:objectId>TFL:VEHICLEATSTOPRT:64824</trd:objectId>
            <trd:creationTime>2002-08-15T09:12:41+01:00</trd:creationTime>
            <rt:Status>ON_TIME</rt:Status>
            <rt:PlatformIdentifier>G</rt:PlatformIdentifier>
            <rt:TimeTableArrivalTime>2002-08-15T09:12:00+01:00</rt:TimeTableArrivalTime>
            <rt:TimeTableDepartureTime>2002-08-15T09:14:00+01:00</rt:TimeTableDepartureTime>
            <rt:VehicleJourneyRealTime>
                <rt:VehicleRef>
                    <rtig:RtigVehicleIdentifier>4524</rtig:RtigVehicleIdentifier>
                    <rt:Label>Bendy bus registration number KB02 JDF</rt:Label>
                </rt:VehicleRef>
                <rt:OperatorRef>
                    <rtig:UkBusOperatorCode>Metro</rtig:UkBusOperatorCode>
                    <rt:Label>Metro Line</rt:Label>
                </rt:OperatorRef>
                <rt:JourneyPatternRealTime>
                    <rt:LineRef>
                        <rtig:PublishedLineName>521</rtig:PublishedLineName>
                    </rt:LineRef>
                    <!-- The direction here is not the same as the destination - it is more general -->
                    <rt:Direction>Waterloo</rt:Direction>
                    <rt:Origin>
                        <rt:StopPointRef>
                            <rtig:NaptanStopNumber>49002001</rtig:NaptanStopNumber>
                            <rt:Label>Archway</rt:Label>
                        </rt:StopPointRef>
                        <rt:TimeTableDepartureTime>2002-08-15T08:52:00+01:00</rt:TimeTableDepartureTime>
                    </rt:Origin>
                    <rt:Destination>
                        <rt:StopPointRef>
                            <rtig:NaptanStopNumber>49002002</rtig:NaptanStopNumber>
                            <rt:Label>Waterloo Station</rt:Label>
                        </rt:StopPointRef>
                        <rt:TimeTableDepartureTime>2002-08-15T09:32:00+01:00</rt:TimeTableDepartureTime>
                    </rt:Destination>
                    <!--PreviousJourneyPatternRealTime element does not exist, so the previous journey pattern is not known. -->
                    <!--OnwardJourneyPatternRealTime element does not exist, so the onward journey pattern is not known. -->
                </rt:JourneyPatternRealTime>
            </rt:VehicleJourneyRealTime>
        </rt:VehicleAtStopRealTime>
        <!-- This bus has a fully-qualified onward calling pattern. It originates at Holborn Circus. -->
        <rt:VehicleAtStopRealTime>
            <trd:objectId>TFL:VEHICLEATSTOPRT:64825</trd:objectId>
            <trd:creationTime>2002-08-15T09:12:41+01:00</trd:creationTime>
            <rt:Status>ON_TIME</rt:Status>
            <!-- Note - where an element content is not known, it is not included.  In this case, this is an originating service with no TimeTableArrivalTime -->
            <rt:TimeTableDepartureTime>2002-08-15T09:16:00+01:00</rt:TimeTableDepartureTime>
            <rt:ExpectedDepartureTime>2002-08-15T09:16:00+01:00</rt:ExpectedDepartureTime>
            <rt:VehicleJourneyRealTime>
                <rt:VehicleRef>
                    <rtig:RtigVehicleIdentifier>4524</rtig:RtigVehicleIdentifier>
                    <rt:Label>Bendy bus registration number KB02 DIH</rt:Label>
                </rt:VehicleRef>
                <rt:OperatorRef>
                    <rtig:UkBusOperatorCode>Metro</rtig:UkBusOperatorCode>
                    <rt:Label>Metro Line</rt:Label>
                </rt:OperatorRef>
                <rt:JourneyPatternRealTime>
                    <rt:LineRef>
                        <rtig:PublishedLineName>521</rtig:PublishedLineName>
                    </rt:LineRef>
                    <!-- Although the direction is currently Waterloo, this bus is travelling beyond Waterloo to Clapham Common. -->
                    <rt:Direction>Waterloo</rt:Direction>
                    <rt:Origin>
                        <rt:StopPointRef>
                            <rtig:NaptanStopNumber>49008000</rtig:NaptanStopNumber>
                            <rt:Label>Holborn Circus</rt:Label>
                        </rt:StopPointRef>
                        <rt:TimeTableDepartureTime>2002-08-15T09:14:00+01:00</rt:TimeTableDepartureTime>
                    </rt:Origin>
                    <!-- For some buses, their direction is not the same as their eventual destination -->
                    <rt:Destination>
                        <rt:StopPointRef>
                            <rtig:NaptanStopNumber>49003001</rtig:NaptanStopNumber>
                            <rt:Label>Clapham Common</rt:Label>
                        </rt:StopPointRef>
                        <rt:TimeTableArrivalTime>2002-08-15T10:10:00+01:00</rt:TimeTableArrivalTime>
                    </rt:Destination>
                    <!-- Obviously this is a much simplified calling pattern. Most bus routes would call at more stops -->
                    <rt:OnwardJourneyPatternRealTime>
                        <rt:StopPointRealTime>
                            <rt:StopPointRef>
                                <rtig:NaptanStopNumber>49002004</rtig:NaptanStopNumber>
                                <rt:Label>Strand/St. Mary's Church</rt:Label>
                            </rt:StopPointRef>
                            <rt:TimeTableArrivalTime>2002-08-15T09:20:00+01:00</rt:TimeTableArrivalTime>
                        </rt:StopPointRealTime>
                        <rt:StopPointRealTime>
                            <rt:StopPointRef>
                                <rtig:NaptanStopNumber>49002003</rtig:NaptanStopNumber>
                                <rt:Label>Waterloo Bridge</rt:Label>
                            </rt:StopPointRef>
                            <rt:TimeTableArrivalTime>2002-08-15T09:28:00+01:00</rt:TimeTableArrivalTime>
                        </rt:StopPointRealTime>
                        <rt:StopPointRealTime>
                            <rt:StopPointRef>
                                <rtig:NaptanStopNumber>49002002</rtig:NaptanStopNumber>
                                <rt:Label>Waterloo Station</rt:Label>
                            </rt:StopPointRef>
                            <rt:TimeTableArrivalTime>2002-08-15T09:37:00+01:00</rt:TimeTableArrivalTime>
                        </rt:StopPointRealTime>
                        <rt:StopPointRealTime>
                            <rt:StopPointRef>
                                <rtig:NaptanStopNumber>49004001</rtig:NaptanStopNumber>
                                <rt:Label>Kennington High Street</rt:Label>
                            </rt:StopPointRef>
                            <rt:TimeTableArrivalTime>2002-08-15T09:51:00+01:00</rt:TimeTableArrivalTime>
                        </rt:StopPointRealTime>
                        <rt:StopPointRealTime>
                            <rt:StopPointRef>
                                <rtig:NaptanStopNumber>49003001</rtig:NaptanStopNumber>
                                <rt:Label>Clapham Common</rt:Label>
                            </rt:StopPointRef>
                            <rt:TimeTableArrivalTime>2002-08-15T10:10:00+01:00</rt:TimeTableArrivalTime>
                        </rt:StopPointRealTime>
                    </rt:OnwardJourneyPatternRealTime>
                </rt:JourneyPatternRealTime>
            </rt:VehicleJourneyRealTime>
        </rt:VehicleAtStopRealTime>
    </rt:StopStatusRealTimeDelivery>
</rt:PTStatusRealTimeDelivery>

