Examples of VehicleTypeElement


Examples of org.onebusaway.uk.atco_cif.VehicleTypeElement

    return agency;
  }

  private int getRouteTypeForJourney(JourneyHeaderElement journey) {
    String vehicleType = journey.getVehicleType();
    VehicleTypeElement vehicleTypeElement = _vehicleTypesById.get(journey.getVehicleType());

    if (vehicleTypeElement != null) {
      vehicleType = vehicleTypeElement.getDescription();
    }
    String desc = vehicleType.toLowerCase();
    if (desc.equals("bus") || desc.equals("coach")) {
      return 3;
    } else if (desc.equals("heavy rail")) {
View Full Code Here

Examples of org.onebusaway.uk.atco_cif.VehicleTypeElement

        _additionalLocationById.put(location.getLocationId(), location);
      } else if (element instanceof ClusterElement) {
        ClusterElement cluster = (ClusterElement) element;
        _clusterIdByLocationId.put(cluster.getLocationId(), cluster.getId());
      } else if (element instanceof VehicleTypeElement) {
        VehicleTypeElement vehicle = (VehicleTypeElement) element;
        _vehicleTypesById.put(vehicle.getId(), vehicle);
      } else if (element instanceof RouteDescriptionElement) {
        RouteDescriptionElement route = (RouteDescriptionElement) element;
        AgencyAndId id = new AgencyAndId(route.getOperatorId(),
            route.getOperatorId() + "-" + route.getRouteNumber());
        RouteMetadata metadata = getMetadataForRouteId(id);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.