org.onebusaway.api.actions.siri
Class SiriUtils
java.lang.Object
org.onebusaway.api.actions.siri.SiriUtils
public class SiriUtils
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SiriUtils
public SiriUtils()
getIdWithoutAgency
public static String getIdWithoutAgency(String id)
getOnwardCalls
public static List<org.onebusaway.siri.model.OnwardCall> getOnwardCalls(List<TripStopTimeBean> stopTimes,
long serviceDate,
double distance,
StopBean currentStop)
- Parameters:
stopTimes
- The list of all stops this trip makesserviceDate
- distance
- How far in meters the bus is along the tripcurrentStop
- The stop the bus is presently at
- Returns:
- A list of Siri OnwardCall objects
getVisitNumber
public static int getVisitNumber(HashMap<String,Integer> visitNumberForStop,
StopBean stop)
getMonitoredVehicleJourney
public static org.onebusaway.siri.model.MonitoredVehicleJourney getMonitoredVehicleJourney(TripDetailsBean trip,
Date serviceDate,
String vehicleId)
getProgressRateForStatus
public static String getProgressRateForStatus(String status)
Copyright © 2012 OneBusAway. All Rights Reserved.