Package models.transit

Examples of models.transit.TripShape


              routeList.put(route.id, r);
            }
           
            if(trip.pattern.shape != null && !shapeList.containsKey(trip.pattern.shape.id))
            {
              TripShape shape = trip.pattern.shape;
             
              AgencyAndId shapeId = new AgencyAndId();
             
              shapeId.setAgencyId(gtfsAgencyId);
              shapeId.setId(shape.id.toString());
View Full Code Here


        try {
            tripPattern = mapper.readValue(params.get("body"), TripPattern.class);
           
            if(tripPattern.encodedShape != null) {
              TripShape ts = TripShape.createFromEncoded(tripPattern.encodedShape);
              tripPattern.shape = ts; 
            }
           
            tripPattern.save();
View Full Code Here

              if(originalTripPattern.shape != null) {
                originalTripPattern.shape.updateShapeFromEncoded(tripPattern.encodedShape);
                tripPattern.shape = originalTripPattern.shape;
              }
              else {
                  TripShape ts = TripShape.createFromEncoded(tripPattern.encodedShape);
                 
                  tripPattern.shape = ts;
              }
             
            }
View Full Code Here

TOP

Related Classes of models.transit.TripShape

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.