<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright (C)2002, 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
      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:register 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 ../RtigXml.xsd">
    <trdxml:PeerCredentials>
        <trdxml:Login>KizoomTFL</trdxml:Login>
        <trdxml:Password>*********</trdxml:Password>
        <trdxml:PeerID>KIZOOM_TFL</trdxml:PeerID>
    </trdxml:PeerCredentials>
    <trdxml:Request>
        <trdxml:RequestTime>2002-08-15T09:06:41+01:00</trdxml:RequestTime>
        <trdxml:DataDeliveryMode>on_occurrence</trdxml:DataDeliveryMode>
        <rt:PTStatusRealTimeRegistrationRequest>
            <!-- Subscribing to general information about Chancery Lane -->
            <rt:StopStatusRealTimeRequest version="1.2c">
                <!-- 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>
    </trdxml:Request>
</trdxml:register>

