if (entity.hasVehicle() && hasVehicleId(entity.getVehicle())) { vehiclePositionCount++; String vehicleId = entity.getVehicle().getVehicle().getId(); String tripId = ""; if (entity.getVehicle().hasTrip() && entity.getVehicle().getTrip().hasTripId()) { tripId = entity.getVehicle().getTrip().getTripId();
VehiclePosition vp = fe.getVehicle();
continue; VehiclePosition vehicle = entity.getVehicle(); String vehicleId = getVehicleId(vehicle); if (vehicleId == null) {
GtfsRealtime.VehiclePosition vehiclePosition = entity.getVehicle(); long vehicleTimestamp = vehiclePosition.getTimestamp();
if (entity.hasVehicle() && entity.getVehicle().hasTrip()) { GtfsRealtime.TripDescriptor trip = entity.getVehicle().getTrip(); if (!trip.hasTripId()) { checkW006(entity, trip, errorListW006); if (!GtfsUtils.isAddedTrip(trip)) { RuleUtils.addOccurrence(E003, "vehicle_id " + entity.getVehicle().getVehicle().getId() + " trip_id " + tripId, errorListE003, _log); RuleUtils.addOccurrence(E016, "vehicle_id " + entity.getVehicle().getVehicle().getId() + " trip_id " + tripId, errorListE016, _log); checkE023(entity.getVehicle(), trip, gtfsMetadata, errorListE023); checkE020(entity.getVehicle(), trip, errorListE020); checkE004(entity.getVehicle(), trip, gtfsMetadata, errorListE004); checkE021(entity.getVehicle(), trip, errorListE021); checkE024(entity.getVehicle(), trip, gtfsMetadata, errorListE024); checkE035(entity, trip, gtfsMetadata, errorListE035); checkW009(entity, trip, errorListW009);
VehiclePosition vehicle = entity.getVehicle();
GtfsRealtime.VehiclePosition v = entity.getVehicle();
GtfsRealtime.VehiclePosition vehiclePosition = entity.getVehicle();
GtfsRealtime.VehiclePosition vehiclePosition = entity.getVehicle(); if (vehiclePosition.hasTrip() && gtfsMetadata.getExactTimesZeroTripIds().contains(vehiclePosition.getTrip().getTripId())) {
VehiclePositionModel vpm = new VehiclePositionModel(); if (entity.hasVehicle()) { if (entity.getVehicle().hasTimestamp()) { timestamp = entity.getVehicle().getTimestamp() * 1000; if (entity.getVehicle().hasTrip()) { TripDescriptor td = entity.getVehicle().getTrip(); if (td.hasTripId()) { vpm.setTripId(td.getTripId()); if (entity.getVehicle().hasVehicle()) { VehicleDescriptor vd = entity.getVehicle().getVehicle(); if (vd.hasId()) { vpm.setVehicleId(vd.getId()); if (entity.getVehicle().hasPosition()) { Position p = entity.getVehicle().getPosition(); vpm.setLat(p.getLatitude()); vpm.setLon(p.getLongitude()); if (entity.getVehicle().hasTrip()) { if (vpm.getTripId() == null) { if (entity.getVehicle().getTrip().hasTripId()) { vpm.setTripId(entity.getVehicle().getTrip().getTripId()); if (entity.getVehicle().getTrip().hasRouteId()) { vpm.setRouteId(entity.getVehicle().getTrip().getRouteId()); if (entity.getVehicle().hasStopId()) {
GtfsRealtime.VehiclePosition v = entity.getVehicle(); if (v.hasStopId()) { if (!gtfsMetadata.getStopIds().contains(v.getStopId())) {
GtfsRealtime.VehiclePosition v = entity.getVehicle();
if (!getVehicle().isInitialized()) { memoizedIsInitialized = 0; return false;
GtfsRealtime.VehiclePosition v = entity.getVehicle(); GtfsRealtime.Position position = v.getPosition(); String id = getVehicleId(entity, v);
public Builder mergeFrom(com.google.transit.realtime.GtfsRealtime.FeedEntity other) { if (other == com.google.transit.realtime.GtfsRealtime.FeedEntity.getDefaultInstance()) return this; if (other.hasId()) { bitField0_ |= 0x00000001; id_ = other.id_; onChanged(); } if (other.hasIsDeleted()) { setIsDeleted(other.getIsDeleted()); } if (other.hasTripUpdate()) { mergeTripUpdate(other.getTripUpdate()); } if (other.hasVehicle()) { mergeVehicle(other.getVehicle()); } if (other.hasAlert()) { mergeAlert(other.getAlert()); } this.mergeExtensionFields(other); this.mergeUnknownFields(other.getUnknownFields()); return this; }
private void cacheVehicleLocations(FeedMessage vehiclePositions) { for (FeedEntity entity : vehiclePositions.getEntityList()) { if (entity.hasVehicle()) { GtfsRealtime.VehiclePosition vehicle = entity.getVehicle(); _vehicleLocationListener.handleRawPosition( new AgencyAndId(getAgencyIds().get(0), vehicle.getVehicle().getId()), vehicle.getPosition().getLatitude(), vehicle.getPosition().getLongitude(), vehicle.getTimestamp()); } } }
if (!getVehicle().isInitialized()) { memoizedIsInitialized = 0; return false;
public Builder mergeFrom(com.google.transit.realtime.GtfsRealtime.FeedEntity other) { if (other == com.google.transit.realtime.GtfsRealtime.FeedEntity.getDefaultInstance()) return this; if (other.hasId()) { bitField0_ |= 0x00000001; id_ = other.id_; onChanged(); } if (other.hasIsDeleted()) { setIsDeleted(other.getIsDeleted()); } if (other.hasTripUpdate()) { mergeTripUpdate(other.getTripUpdate()); } if (other.hasVehicle()) { mergeVehicle(other.getVehicle()); } if (other.hasAlert()) { mergeAlert(other.getAlert()); } this.mergeExtensionFields(other); this.mergeUnknownFields(other.getUnknownFields()); return this; }