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 Vehicle method. You can view the by route method here.

For an individual vehicle.

http://api.rideuta.com/SIRI/SIRI.svc/VehicleMonitor/ByVehicle?vehicle={VehicleID}&onwardcalls={OnwardCalls}&usertoken={UserToken}

  • VehicleID – The Vehicle Number to query(E.g. 10054)
  • OnwardCalls – Determines whether or not the response will include the stops (known as "calls" in SIRI) the 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/ByVehicle?vehicle=10054&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:22.0538027-06:00</ResponseTimestamp>
   <VehicleMonitoringDelivery version="1.3">
      <ResponseTimestamp>2011-05-25T14:42:22.0538027-06:00</ResponseTimestamp>
      <ValidUntil>2011-05-25T14:42:32.0538027-06:00</ValidUntil>
      <VehicleActivity>
         <RecordedAtTime>2011-05-25T14:42:22.0538027-06:00</RecordedAtTime>
         <MonitoredVehicleJourney>
            <LineRef>354</LineRef>
            <DirectionRef>333281</DirectionRef>
            <FramedVehicleJourneyRef>
               <DataFrameRef>2011-05-25T00:00:00-06:00</DataFrameRef>
               <DatedVehicleJourneyRef>1183239</DatedVehicleJourneyRef>
            </FramedVehicleJourneyRef>
            <PublishedLineName>Route 354 (SANDY / U OF U FAST BUS)</PublishedLineName>
            <OriginRef>1183239|2|NORTH</OriginRef>
            <DestinationRef>1183239|2|NORTH</DestinationRef>
            <Monitored>True</Monitored>
            <VehicleLocation>
               <Longitude>-111.84519</Longitude>
               <Latitude>40.77102</Latitude>
            </VehicleLocation>
            <ProgressRate>1</ProgressRate>
            <CourseOfJourneyRef>4448</CourseOfJourneyRef>
            <VehicleRef>10054</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.