Package org.onebusaway.transit_data_federation.bundle.model

Examples of org.onebusaway.transit_data_federation.bundle.model.GtfsBundle


    GtfsBundles bundles = (GtfsBundles) context.getBean("gtfs-bundles");
    if (bundles != null)
      return bundles;

    GtfsBundle bundle = (GtfsBundle) context.getBean("gtfs-bundle");
    if (bundle != null) {
      bundles = new GtfsBundles();
      bundles.getBundles().add(bundle);
      return bundles;
    }
View Full Code Here


          arg = arg.substring(0, index);
        } else {
          defaultAgencyId = Integer.toString(defaultAgencyIdOffset++);
        }

        GtfsBundle bundle = new GtfsBundle();
        bundle.setPath(new File(arg));
        bundle.setDefaultAgencyId(defaultAgencyId);
        allBundles.add(bundle);
      }
    }

    if (!contextPaths.isEmpty()) {
View Full Code Here

      List<String> contextPaths = new ArrayList<String>();

      for (int i = 0; i < remainingArgs.length - 1; i++) {
        File path = new File(remainingArgs[i]);
        if (path.isDirectory() || path.getName().endsWith(".zip")) {
          GtfsBundle gtfsBundle = new GtfsBundle();
          gtfsBundle.setPath(path);
          gtfsBundles.add(gtfsBundle);
        } else {
          contextPaths.add("file:" + path);
        }
      }
View Full Code Here

TOP

Related Classes of org.onebusaway.transit_data_federation.bundle.model.GtfsBundle

Copyright © 2018 www.massapicom. 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.