<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright (C) 2002 RTIG -->
<!--  
    RTIG-XML Bus & Tram Real Time Information Schema
    Example of asynchronous response (2) to request for stop status information. 
             
    This document shows examples tagged in conformance to the schema     
            
           
    This is a a follow-up 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:16:41+01:00</trdxml:ResponseTime>
        <rt:PTStatusRealTimeDelivery>
            <!-- Here are all of the departure/arrivals at Chancery Lane over the next 5 minutes -->
            <rt:StopStatusRealTimeDelivery version="1.2c">
                <trd:objectId>TFL:RESPONSESTOPSTATUSRT:12347</trd:objectId>
                <trd:creationTime>2002-08-15T09:16:41+01:00</trd:creationTime>
                <rt:StopPointRef>
                    <rtig:NaptanStopNumber>49008080</rtig:NaptanStopNumber>
                    <rt:Label>Chancery Lane</rt:Label>
                </rt:StopPointRef>
                <!-- This is an example of an update to an existing entry. The bus is now delayed. -->
                <rt:VehicleAtStopRealTime>
                    <trd:objectId>TFL:VEHICLEATSTOPRT:12348</trd:objectId>
                    <trd:objectVersion>2</trd:objectVersion>
                    <trd:creationTime>2002-08-15T09:12:41+01:00</trd:creationTime>
                    <rt:Status>DELAYED</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:ExpectedArrivalTime>2002-08-15T09:17:00+01:00</rt:ExpectedArrivalTime>
                    <rt:ExpectedDepartureTime>2002-08-15T09:19:00+01:00</rt:ExpectedDepartureTime>
                    <rt:VehicleJourneyRealTime>
                        <rt:VehicleRef>
                            <rtig:RtigVehicleIdentifier controlCentreId="324">2001</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>
                <!-- This is a new entry on the departure board -->
                <rt:VehicleAtStopRealTime>
                    <trd:objectId>TFL:VEHICLEATSTOPRT:22345</trd:objectId>
                    <trd:creationTime>2002-08-15T09:16:41+01:00</trd:creationTime>
                    <rt:Status>ON_TIME</rt:Status>
                    <rt:PlatformIdentifier>A</rt:PlatformIdentifier>
                    <rt:TimeTableArrivalTime>2002-08-15T09:18:00+01:00</rt:TimeTableArrivalTime>
                    <rt:TimeTableDepartureTime>2002-08-15T09:19:00+01:00</rt:TimeTableDepartureTime>
                    <rt:VehicleJourneyRealTime>
                        <rt:VehicleRef>
                            <rtig:RtigVehicleIdentifier controlCentreId="324">2002</rtig:RtigVehicleIdentifier>
                            <rt:Label>Routemaster registration number T27 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>49004200</rtig:NaptanStopNumber>
                                    <rt:Label>Marble Arch</rt:Label>
                                </rt:StopPointRef>
                                <rt:TimeTableDepartureTime>2002-08-15T08:58: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:40: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>
                <!-- The following entries should be deleted as they have departed from the stop -->
                <rt:VehicleAtStopRealTimeDeleted>
                    <trd:Id>TFL:VEHICLEATSTOPRT:12345</trd:Id>
                </rt:VehicleAtStopRealTimeDeleted>
                <rt:VehicleAtStopRealTimeDeleted>
                    <trd:Id>TFL:VEHICLEATSTOPRT:12346</trd:Id>
                </rt:VehicleAtStopRealTimeDeleted>
                <rt:VehicleAtStopRealTimeDeleted>
                    <trd:Id>TFL:VEHICLEATSTOPRT:12347</trd:Id>
                </rt:VehicleAtStopRealTimeDeleted>
            </rt:StopStatusRealTimeDelivery>
            <!-- Here are updates to the departure/arrivals at Holborn Circus -->
            <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>
                <!-- The following entries should be deleted as they have departed from the stop -->
                <rt:VehicleAtStopRealTimeDeleted>
                    <trd:Id>TFL:VEHICLEATSTOPRT:64823</trd:Id>
                </rt:VehicleAtStopRealTimeDeleted>
                <rt:VehicleAtStopRealTimeDeleted>
                    <trd:Id>TFL:VEHICLEATSTOPRT:64824</trd:Id>
                </rt:VehicleAtStopRealTimeDeleted>
                <rt:VehicleAtStopRealTimeDeleted>
                    <trd:Id>TFL:VEHICLEATSTOPRT:64825</trd:Id>
                </rt:VehicleAtStopRealTimeDeleted>
            </rt:StopStatusRealTimeDelivery>
        </rt:PTStatusRealTimeDelivery>
    </trdxml:Response>
</trdxml:deliver>

