<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright (C) 2002 RTIG -->
<!-- 
    
    RTIG-XML Bus & Tram Real Time Information Schema
    Example of asynchronous response (1) to request for stop status information. 
         
    This document shows examples tagged in conformance to the schema     
        
       
    This is a response to the registration request in sample_stop_status_registration_request.xml, 
    providing general information about a stop in London
        
    == Request was for the departure/arrivals at Chancery Lane.
    == The results are also constrained to buses leaving in the next 5 minutes.
       
    History
      2002 Sept 11  Version 0.01   Preliminary draft  
      2002 Dec 8    Version 1.00   Pilot Version
      2003 Jan 8   Add version no to namespace URL    
      2004 Oct 16  Revise and correct  
-->
<trdxml:deliver 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-xml  ../rtig_request_response.xsd" >
    <trdxml:Response>
        <trdxml:PeerID>TFL</trdxml:PeerID>
        <trdxml:RequestID>TFL:PTStatusRealTimeRegistrationRequest:6523</trdxml:RequestID>
        <trdxml:ResponseTime>2002-08-15T09:12:41+01:00</trdxml:ResponseTime>
        <rt:PTStatusRealTimeDelivery>
            <!-- Here are all of the departure/arrivals at Chancery Lane over the next 5 minutes -->
            <rt:StopStatusRealTimeDelivery>
                <trd:objectId>TFL:RESPONSESTOPSTATUSRT:12345</trd:objectId>
                <trd:creationTime>2002-08-15T09:12:41+01:00</trd:creationTime>
                <rt:StopPointRef>
                    <rtig:NaptanStopNumber>49008080</rtig:NaptanStopNumber>
                    <rt:Label>Chancery Lane</rt:Label>
                </rt:StopPointRef>
                <rt:VehicleAtStopRealTime>
                    <trd:objectId>TFL:VEHICLEATSTOPRT:12345</trd:objectId>
                    <trd:creationTime>2002-08-15T09:12:41+01:00</trd:creationTime>
                    <rt:Status>ON_TIME</rt:Status>
                    <rt:PlatformIdentifier>A</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:VehicleJourneyRealTime>
                        <rt:VehicleRef>
                            <rtig:RtigVehicleIdentifier controlCentreId="324">1264</rtig:RtigVehicleIdentifier>
                            <rt:Label>Routemaster registration number B2 TYW</rt:Label>
                        </rt:VehicleRef>
                        <rt:OperatorRef>
                            <rtig:UkBusOperatorCode>Arriva</rtig:UkBusOperatorCode>
                            <rt:Label>Arriva North London</rt:Label>
                        </rt:OperatorRef>
                        <rt:JourneyPatternRealTime>
                            <rt:LineRef>
                                <rtig:PublishedLineName>15</rtig:PublishedLineName>
                            </rt:LineRef>
                            <rt:Direction>St. Pauls</rt:Direction>
                            <rt:Origin>
                                <rt:StopPointRef>
                                    <rtig:NaptanStopNumber>49004200</rtig:NaptanStopNumber>
                                    <rt:Label>Marble Arch</rt:Label>
                                </rt:StopPointRef>
                                <rt:TimeTableDepartureTime>2002-08-15T08:45:00+01:00</rt:TimeTableDepartureTime>
                            </rt:Origin>
                            <rt:Destination>
                                <rt:StopPointRef>
                                    <rtig:NaptanStopNumber>49008020</rtig:NaptanStopNumber>
                                    <rt:Label>Bank</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. -->
                            <!--OnwardJourneyPatternRealTime element does not exist, so the onward journey pattern is not known. -->
                        </rt:JourneyPatternRealTime>
                    </rt:VehicleJourneyRealTime>
                </rt:VehicleAtStopRealTime>
                <rt:VehicleAtStopRealTime>
                    <trd:objectId>TFL:VEHICLEATSTOPRT:12346</trd:objectId>
                    <trd:creationTime>2002-08-15T09:12:41+01:00</trd:creationTime>
                    <rt:Status>ON_TIME</rt:Status>
                    <rt:PlatformIdentifier>A</rt:PlatformIdentifier>
                    <rt:TimeTableArrivalTime>2002-08-15T09:10:00+01:00</rt:TimeTableArrivalTime>
                    <rt:TimeTableDepartureTime>2002-08-15T09:12:00+01:00</rt:TimeTableDepartureTime>
                    <rt:VehicleJourneyRealTime>
                        <!-- Sample BusIdentifier - could be number plate -->
                        <rt:VehicleRef>
                            <rtig:RtigVehicleIdentifier controlCentreId="324">12236</rtig:RtigVehicleIdentifier>
                            <rt:Label>Bus registration number KL02 WDW</rt:Label>
                        </rt:VehicleRef>
                        <rt:OperatorRef>
                            <rtig:UkBusOperatorCode>LBC</rtig:UkBusOperatorCode>
                            <rt:Label>London Bus Company</rt:Label>
                        </rt:OperatorRef>
                        <rt:JourneyPatternRealTime>
                            <rt:LineRef>
                                <rtig:PublishedLineName>126</rtig:PublishedLineName>
                            </rt:LineRef>
                            <rt:Direction>Blackfriars</rt:Direction>
                            <!--The Origin and Destination of this bus are unknown. -->
                            <!--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>
                <rt:VehicleAtStopRealTime>
                    <trd:objectId>TFL:VEHICLEATSTOPRT:12347</trd:objectId>
                    <trd:creationTime>2002-08-15T09:12:41+01:00</trd:creationTime>
                    <rt:Status>ON_TIME</rt:Status>
                    <rt:PlatformIdentifier>A</rt:PlatformIdentifier>
                    <rt:TimeTableArrivalTime>2002-08-15T09:11:00+01:00</rt:TimeTableArrivalTime>
                    <rt:TimeTableDepartureTime>2002-08-15T09:13:00+01:00</rt:TimeTableDepartureTime>
                    <rt:VehicleJourneyRealTime>
                        <!-- Sample BusIdentifier - could be number plate -->
                        <rt:VehicleRef>
                            <rtig:RtigVehicleIdentifier controlCentreId="324">8122</rtig:RtigVehicleIdentifier>
                            <rt:Label>Bus registration number KW51 SDF</rt:Label>
                        </rt:VehicleRef>
                        <rt:OperatorRef>
                            <rtig:UkBusOperatorCode>Arriva</rtig:UkBusOperatorCode>
                            <rt:Label>Arriva North London</rt:Label>
                        </rt:OperatorRef>
                        <rt:JourneyPatternRealTime>
                            <rt:LineRef>
                                <rtig:PublishedLineName>67</rtig:PublishedLineName>
                            </rt:LineRef>
                            <rt:Direction>Liverpool Street</rt:Direction>
                            <!--The Origin and Destination of this bus are unknown. -->
                            <!--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>
                <rt:VehicleAtStopRealTime>
                    <trd:objectId>TFL:VEHICLEATSTOPRT:12348</trd:objectId>
                    <trd:creationTime>2002-08-15T09:12:41+01:00</trd:creationTime>
                    <rt:Status>ON_TIME</rt:Status>
                    <rt:PlatformIdentifier>A</rt:PlatformIdentifier>
                    <rt:TimeTableArrivalTime>2002-08-15T09:13:00+01:00</rt:TimeTableArrivalTime>
                    <rt:TimeTableDepartureTime>2002-08-15T09:15:00+01:00</rt:TimeTableDepartureTime>
                    <rt:VehicleJourneyRealTime>
                        <!-- Sample BusIdentifier - could be number plate -->
                        <rt:VehicleRef>
                            <rtig:RtigVehicleIdentifier controlCentreId="324">1264</rtig:RtigVehicleIdentifier>
                            <rt:Label>Bus registration number KL02 WSR</rt:Label>
                        </rt:VehicleRef>
                        <rt:OperatorRef>
                            <rtig:UkBusOperatorCode>LBC</rtig:UkBusOperatorCode>
                            <rt:Label>London Bus Company</rt:Label>
                        </rt:OperatorRef>
                        <rt:JourneyPatternRealTime>
                            <rt:LineRef>
                                <rtig:PublishedLineName>126</rtig:PublishedLineName>
                            </rt:LineRef>
                            <rt:Direction>Blackfriars</rt:Direction>
                            <!--The Origin and Destination of this bus are unknown. -->
                            <!--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>
                <rt:VehicleAtStopRealTime>
                    <trd:objectId>TFL:VEHICLEATSTOPRT:12345</trd:objectId>
                    <trd:creationTime>2002-08-15T09:12:41+01:00</trd:creationTime>
                    <rt:Status>ON_TIME</rt:Status>
                    <rt:PlatformIdentifier>A</rt:PlatformIdentifier>
                    <rt:TimeTableArrivalTime>2002-08-15T09:13:00+01:00</rt:TimeTableArrivalTime>
                    <rt:TimeTableDepartureTime>2002-08-15T09:16:00+01:00</rt:TimeTableDepartureTime>
                    <rt:VehicleJourneyRealTime>
                        <!-- Sample BusIdentifier - could be number plate -->
                        <rt:VehicleRef>
                            <rtig:RtigVehicleIdentifier controlCentreId="324">1003</rtig:RtigVehicleIdentifier>
                            <rt:Label>Routemaster registration number G23 TWS</rt:Label>
                        </rt:VehicleRef>
                        <rt:OperatorRef>
                            <rtig:UkBusOperatorCode>Arriva</rtig:UkBusOperatorCode>
                            <rt:Label>Arriva North London</rt:Label>
                        </rt:OperatorRef>
                        <rt:JourneyPatternRealTime>
                            <rt:LineRef>
                                <rtig:PublishedLineName>15</rtig:PublishedLineName>
                            </rt:LineRef>
                            <rt:Direction>St. Pauls</rt:Direction>
                            <rt:Origin>
                                <rt:StopPointRef>
                                    <rtig:NaptanStopNumber>49002001</rtig:NaptanStopNumber>
                                    <rt:Label>Marble Arch</rt:Label>
                                </rt:StopPointRef>
                                <rt:TimeTableDepartureTime>2002-08-15T08:53:00+01:00</rt:TimeTableDepartureTime>
                            </rt:Origin>
                            <rt:Destination>
                                <rt:StopPointRef>
                                    <rtig:NaptanStopNumber>49008020</rtig:NaptanStopNumber>
                                    <rt:Label>Bank</rt:Label>
                                </rt:StopPointRef>
                                <rt:TimeTableArrivalTime>2002-08-15T09:36:00+01:00</rt:TimeTableArrivalTime>
                            </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>
            </rt:StopStatusRealTimeDelivery>
            <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>
                        <!-- Sample BusIdentifier - could be number plate -->
                        <rt:VehicleRef>
                            <rtig:RtigVehicleIdentifier controlCentreId="324">1004</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: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 controlCentreId="324">1005</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 controlCentreId="324">1006</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>
    </trdxml:Response>
</trdxml:deliver>

