<?xml version="1.0" encoding="UTF-8"?> 
<!-- Copyright (C) 2004 RTIG -->
<!--

    RTIG-XML Bus & Tram Real Time Information Schema
    Example of asynchronous subscription request for stop status information. 
     
    This document shows examples tagged in conformance to the schema     
 
    This is a registration request, asking for very specific data about one stop and more general information about another.
    
    History
 
      2004 Oct 15   Create 
-->
<rt:PTStatusRealTimeRegistrationRequest 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">   
            <!-- Subscribing to general information about Chancery Lane -->
            <rt:StopStatusRealTimeRequest>
                <!-- Identify the stop using NaPTAN identifier (TfL database) -->
                <rt:StopPointRef>
                    <rtig:NaptanStopNumber>49008080</rtig:NaptanStopNumber>
                    <rt:Label>Chancery Lane</rt:Label>
                </rt:StopPointRef>
                <!-- Display only buses that are leaving in the next 5 minutes -->
                <rt:DepartureTimeWindow>PT5M</rt:DepartureTimeWindow>
            </rt:StopStatusRealTimeRequest>
            <!-- Subscribing to specific information about Holborn Circus -->
            <rt:StopStatusRealTimeRequest version="1.2c">
                <!-- Identify the stop using NaPTAN identifier (TfL database) -->
                <rt:StopPointRef>
                    <rtig:NaptanStopNumber>49008000</rtig:NaptanStopNumber>
                    <rt:Label>Holborn Circus</rt:Label>
                </rt:StopPointRef>
                <!-- Filter the results to only display Line 521 -->
                <rt:LineRef>
                    <rtig:PublishedLineName>521</rtig:PublishedLineName>
                </rt:LineRef>
                <!-- Filter the results to only display buses towards Waterloo -->
                <rt:Direction>Waterloo</rt:Direction>
                <!-- Limit the number of results to 3 departures/arrivals -->
                <rt:MaxDepartures>3</rt:MaxDepartures>
                <!-- Display only buses that are leaving in the next 10 minutes -->
                <rt:DepartureTimeWindow>PT10M</rt:DepartureTimeWindow>
            </rt:StopStatusRealTimeRequest>
            <!-- Only get updates if the data changes by more than 2 minutes -->
            <rt:ChangeBeforeUpdates>PT2M</rt:ChangeBeforeUpdates>
            <!-- This subscription requires incremental updates: the client will remember the state of the two departure boards and will modify, add and delete items as instructed by the supplier -->
            <rt:IncrementalUpdates>true</rt:IncrementalUpdates>
        </rt:PTStatusRealTimeRegistrationRequest>
 
