Package models.gtfs

Examples of models.gtfs.GtfsSnapshotMergeTask.completeTask()


         
        }
       
        Agency primaryAgency = Agency.findById(primaryAgencyId.longValue());
       
        agencyTask.completeTask("Imported " + agencyCount + " agencies.", GtfsSnapshotMergeTaskStatus.SUCCESS);
       
        Logger.info("Agencies loaded: " + agencyCount.toString());
        Logger.info("GtfsImporter: importing routes...");
       
        GtfsSnapshotMergeTask routeTask = new GtfsSnapshotMergeTask(snapshotMerge);
View Full Code Here


          }
         
          if(agencyCount > 1)
          primaryAgencyId = null;
         
          routeTask.completeTask("Imported " + routeCount + " routes.", GtfsSnapshotMergeTaskStatus.SUCCESS);
         
          Logger.info("Routes loaded:" + routeCount.toString());
          Logger.info("GtfsImporter: importing stops...");
       
        GtfsSnapshotMergeTask stopTask = new GtfsSnapshotMergeTask(snapshotMerge);
View Full Code Here

              stopIdMap.put(gtfsStop.getId().toString(), stopId );
                        
            stopCount++;
          }
         
          stopTask.completeTask("Imported " + stopCount + " stops.", GtfsSnapshotMergeTaskStatus.SUCCESS);
         
          Logger.info("Stops loaded: " + stopCount);
          Logger.info("GtfsImporter: importing Shapes...");
         
          Logger.info("Calculating agency centroid for stops...");
View Full Code Here

          }
         
          Logger.info("Shape points loaded: " + shapePointCount.toString());
          Logger.info("Shapes loaded: " + shapeCount.toString());
         
          tripShapeTask.completeTask("Imported " + shapePointCount + " points in " + shapeCount + " shapes.", GtfsSnapshotMergeTaskStatus.SUCCESS);

         
          GtfsSnapshotMergeTask serviceCalendarsTask = new GtfsSnapshotMergeTask(snapshotMerge);
          serviceCalendarsTask.startTask();
         
View Full Code Here

          }
     
         
          Logger.info("Service calendars loaded: " + serviceCalendarCount);
         
          serviceCalendarsTask.completeTask("Imported " + serviceCalendarCount.toString() + " Service calendars.", GtfsSnapshotMergeTaskStatus.SUCCESS);
         
         
          Logger.info("GtfsImporter: importing Service Calendar dates...");
         
          GtfsSnapshotMergeTask serviceCalendarDatesTask = new GtfsSnapshotMergeTask(snapshotMerge);
View Full Code Here

           
            serviceCalendarDateCount++;
           
          }
     
          serviceCalendarDatesTask.completeTask("Imported " + serviceCalendarDateCount.toString() + " Service calendar dates.", GtfsSnapshotMergeTaskStatus.SUCCESS);
         
          Logger.info(" loaded: " + serviceCalendarDateCount);
         
          Logger.info("GtfsImporter: importing trips...");
         
View Full Code Here

          }
     
         
          Logger.info("Trips loaded: " + tripCount);
         
          tripsTask.completeTask("Imported " + tripCount.toString() + " trips.", GtfsSnapshotMergeTaskStatus.SUCCESS);
         
         
          Logger.info("GtfsImporter: importing stopTimes...");
       
          GtfsSnapshotMergeTask stopTimesTask = new GtfsSnapshotMergeTask(snapshotMerge);
View Full Code Here

          }
         
       
          Logger.info("StopTimes loaded: " + stopTimeCount.toString());
         
          stopTimesTask.completeTask("Imported " + stopTimeCount.toString() + " stop times.", GtfsSnapshotMergeTaskStatus.SUCCESS);
         
          String mergeDescription = new String("Imported GTFS file: " + agencyCount + " agencies; " + routeCount + " routes;" + stopCount + " stops; " +  stopTimeCount + " stopTimes; " + tripCount + " trips;" + shapePointCount + " shapePoints");
         
          snapshotMerge.complete(mergeDescription);
         
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.