shapePoint.getShapeId().setAgencyId(reader.getDefaultAgencyId()); route.getId().setAgencyId(reader.getDefaultAgencyId()); generateRouteColor(route); stop.getId().setAgencyId(reader.getDefaultAgencyId()); trip.getId().setAgencyId(reader.getDefaultAgencyId()); serviceCalendar.getServiceId().setAgencyId(reader.getDefaultAgencyId()); serviceCalendarDate.getServiceId().setAgencyId(reader.getDefaultAgencyId()); fareAttribute.getId().setAgencyId(reader.getDefaultAgencyId()); pathway.getId().setAgencyId(reader.getDefaultAgencyId());
private Stop createStop(Stop stop, int locationType, int wheelchairAccessible, String suffix) { if (stop == null) return null; Stop entrance = new Stop(); AgencyAndId id = new AgencyAndId(); id.setAgencyId(agencyId); id.setId(stop.getId().getId() + "-" + suffix); entrance.setId(id); entrance.setName(stop.getName()); entrance.setLat(stop.getLat()); entrance.setLon(stop.getLon()); entrance.setLocationType(locationType); entrance.setWheelchairBoarding(wheelchairAccessible); entrance.setParentStation(stop.getId().getId()); newStops.add(entrance); return entrance; }