SIRI VehicleMonitoring Call

The SIRI VehicleMonitoring ("SIRI VM") call allows the developer to request information about one particular vehicle or about a set of vehicles servicing a particular route.

SIRI VehicleMonitoring Request

The SIRI VM is access in one of two ways. This page explains the By route method. You can view the by vehicle method here.

For vehicles servicing a route.

http://api.rideuta.com/SIRI/SIRI.svc/VehicleMonitor/ByRoute?route={RouteID}&onwardcalls={OnwardCalls}&usertoken={UserToken}

  • RouteID – The route to query. (E.g. 2 for route 2, 35M for route 35M)
  • OnwardCalls – Determines whether or not the response will include the stops (known as "calls" in SIRI) each vehicle is going to make. To get calls data, use value true, otherwise use value false.
  • Usertoken – your UTA developer API key. Go here to get one.

For Example

Request URI:
http://api.rideuta.com/SIRI/SIRI.svc/VehicleMonitor/ByRoute?route=2&onwardcalls=true&usertoken=XXXXXXXXXXX

This request URI is asking for all of the vehicles on route 2 with all of their onward calls. This request results in the following response:

<Siri version="1.3" xmlns="http://www.siri.org.uk/siri">
   <ResponseTimestamp>2011-05-25T14:42:25.5694052-06:00</ResponseTimestamp>
   <VehicleMonitoringDelivery version="1.3">
      <ResponseTimestamp>2011-05-25T14:42:25.5694052-06:00</ResponseTimestamp>
      <ValidUntil>2011-05-25T14:42:35.5694052-06:00</ValidUntil>
      <VehicleActivity>
         <RecordedAtTime>2011-05-25T14:42:25.5694052-06:00</RecordedAtTime>
         <MonitoredVehicleJourney>
            <LineRef>2</LineRef>
            <DirectionRef>332991</DirectionRef>
            <FramedVehicleJourneyRef>
               <DataFrameRef>2011-05-25T00:00:00-06:00</DataFrameRef>
               <DatedVehicleJourneyRef>1179692</DatedVehicleJourneyRef>
            </FramedVehicleJourneyRef>
            <PublishedLineName>Route 2 (200 SOUTH)</PublishedLineName>
            <OriginRef>1179692|17|200</OriginRef>
            <DestinationRef>1179692|17|200</DestinationRef>
            <Monitored>True</Monitored>
            <VehicleLocation>
               <Longitude>-111.89173</Longitude>
               <Latitude>40.7651</Latitude>
            </VehicleLocation>
            <ProgressRate>1</ProgressRate>
            <CourseOfJourneyRef>4449</CourseOfJourneyRef>
            <VehicleRef>10055</VehicleRef>
      </MonitoredVehicleJourney>
      <MonitoredVehicleJourney>
         <LineRef>2</LineRef>
         <DirectionRef>332990</DirectionRef>
         <FramedVehicleJourneyRef>
            <DataFrameRef>2011-05-25T00:00:00-06:00</DataFrameRef>
            <DatedVehicleJourneyRef>1179636</DatedVehicleJourneyRef>
         </FramedVehicleJourneyRef>
         <PublishedLineName>Route 2 (200 SOUTH)</PublishedLineName>
         <OriginRef>1179636|2|200 S</OriginRef>
         <DestinationRef>1179636|2|200 S</DestinationRef>
         <Monitored>True</Monitored>
         <VehicleLocation>
            <Longitude>-111.90288</Longitude>
            <Latitude>40.76488</Latitude>
         </VehicleLocation>
         <ProgressRate>1</ProgressRate>
         <CourseOfJourneyRef>4456</CourseOfJourneyRef>
         <VehicleRef>10056</VehicleRef>
      </MonitoredVehicleJourney>
      <MonitoredVehicleJourney>
         <LineRef>2</LineRef>
         <DirectionRef>332990</DirectionRef>
         <FramedVehicleJourneyRef>
            <DataFrameRef>2011-05-25T00:00:00-06:00</DataFrameRef>
            <DatedVehicleJourneyRef>1179635</DatedVehicleJourneyRef>
         </FramedVehicleJourneyRef>
         <PublishedLineName>Route 2 (200 SOUTH)</PublishedLineName>
         <OriginRef>1179635|16|200</OriginRef>
         <DestinationRef>1179635|16|200</DestinationRef>
         <Monitored>True</Monitored>
         <VehicleLocation>
            <Longitude>-111.86255</Longitude>
            <Latitude>40.76498</Latitude>
         </VehicleLocation>
         <ProgressRate>1</ProgressRate>
         <CourseOfJourneyRef>4730</CourseOfJourneyRef>
         <VehicleRef>07011</VehicleRef>
         <MonitoredCall>
              <StopPointRef>17284</StopPointRef>
              <VisitNumber>1</VisitNumber>
              <VehicleAtStop>false</VehicleAtStop>
            </MonitoredCall>
            <Extensions>
               <LastGPSFix>2012-03-13T09:11:42.383</LastGPSFix>
            </Extensions>
       </MonitoredVehicleJourney>
      </VehicleActivity>
   </VehicleMonitoringDelivery>
   </Siri>


Terms of Use
Copyright © 2012-2016 Utah Transit Authority. All Rights Reserved.