Skip to content
Zsombor Welker edited this page Jun 2, 2013 · 1 revision

Pull-in / Pull-out data maps an operator to a bus, among other things.The underlying pullout data is TCIP XML:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns2:schPullOutList deactivation="2040-01-04T23:59:00-04:00" noNameSpaceSchemaLocation="??"
 sourceport="1234" sourceip="0.0.0.0" sourceapp="TEST APPLICATION" schVersion="B11"
 created="2011-06-01T04:59:00-04:00"
 xmlns:ns2="http://www.TCIP-Final-3-0-5-1"
 xmlns:ns4="http://www.lrms-final-09-07-for-atis"
 xmlns:ns3="http://www.lrms-final-09-07"
 xmlns:ns5="http://www.atis-partial-03-00-74">
  <!-- TCIP-required header -->
  <subscriptionInfo>
    <requestedType>Query</requestedType>
    <expirationDate>20400101</expirationDate>
    <expirationTime>19:00:00</expirationTime>
    <requestIdentifier>0</requestIdentifier>
    <subscriberIdentifier>0</subscriberIdentifier>
    <publisherIdentifier>0</publisherIdentifier>
  </subscriptionInfo>
  <!--  Validity Information-->
  <beginDate>2011-06-01</beginDate>
  <beginTime>0</beginTime>
  <endDate>2011-06-01</endDate>
  <endTime>0</endTime>
  <!--  list of pull-out/pull-in actions-->
  <pull-outs>
    <!-- one action related to a vehicle-->
    <pull-out>
      <!--  boolean: action is pull out if False-->
      <pull-in>false</pull-in>
      <!-- Depot Information -->
      <garage>
        <!-- Required ID-->
        <facility-id>0</facility-id>
        <!-- 4 character depot code-->
        <facility-name>CA</facility-name>
        <!-- Depot's agency designator-->
        <agencydesignator>MTA NYCT</agencydesignator>
      </garage>
      <!-- Veh Information -->
      <vehicle>
        <vehicle-id>7777</vehicle-id>
        <!-- MTA NYCT == 2008-->
        <agency-id>2008</agency-id>
      </vehicle>
      <!-- Operator Information -->
      <operator>
        <!-- Pass number : 6 digits or less-->
        <operator-id>859007</operator-id>
        <agency-id>2008</agency-id>
        <!-- Designator : Pass Number-->
        <designator>859007</designator>
      </operator>
      <!-- Service date-->
      <date>2011-06-01</date>
      <!-- Action datetime (ie time of the pull-out), date may be different than service date.-->
      <time>2011-06-01T04:59:00-04:00</time>
      <run>
        <run-id>0</run-id>
        <!-- concatenation of "route" and "run number" fields in PUPU -->
        <designator>S56-1</designator>
      </run>
      <!-- need a block to link the pull-out to the pull-in -->
      <block>
        <!-- Vehicle Numeric Block, required by TCIP. May be a junk value as MTA does not think at the block
             level -->
        <block-id>0</block-id>
        <!-- Concatenated unique ID of (agency_id, date, depot_id, pullout_time, run_route, run_number) -->
        <block-designator>MTA NYCT_20120206_CSLT_123456_S56_001</block-designator>
      </block>
    </pull-out>
    <!-- one action related to a vehicle-->
    <!-- NOTE: Pull in and pull-out information may not arrive at the same time.-->
    <pull-out>
      <!--  boolean: pull in if True-->
      <pull-in>true</pull-in>
      <garage>
        <facility-id>0</facility-id>
        <facility-name>CA</facility-name>
        <!-- Depot's agency designator-->
        <agencydesignator>MTA NYCT</agencydesignator>
      </garage>
      <vehicle>
        <vehicle-id>7777</vehicle-id>
        <agency-id>2008</agency-id>
      </vehicle>
      <date>2011-06-01</date>
      <!-- Action datetime (ie time of the pull-in), date different than service date.-->
      <time>2011-06-02T00:49:00-04:00</time>
      <block>
        <block-id>0</block-id>
        <block-designator>MTA NYCT_20120206_CSLT_123456_S56_001</block-designator>
      </block>
    </pull-out>
  </pull-outs>
</ns2:schPullOutList>
Clone this wiki locally