private Stop doMap(org.onebusaway.gtfs.model.Stop rhs) { Stop lhs = new Stop(); lhs.setId(mapAgencyAndId(rhs.getId())); lhs.setName(rhs.getName()); lhs.setLat(rhs.getLat()); lhs.setLon(rhs.getLon()); lhs.setCode(rhs.getCode()); lhs.setDesc(rhs.getDesc()); lhs.setZoneId(rhs.getZoneId()); lhs.setUrl(rhs.getUrl()); lhs.setLocationType(rhs.getLocationType()); lhs.setParentStation(rhs.getParentStation()); lhs.setWheelchairBoarding(rhs.getWheelchairBoarding()); lhs.setDirection(rhs.getDirection()); lhs.setTimezone(rhs.getTimezone()); lhs.setVehicleType(rhs.getVehicleType()); lhs.setPlatformCode(rhs.getPlatformCode()); return lhs; } }
private EAccessibility getWheelchairBoardingAccessibilityForStop(Stop stop) { switch (stop.getWheelchairBoarding()) { case 1: return EAccessibility.ACCESSIBLE; case 2: return EAccessibility.NOT_ACCESSIBLE; default: return EAccessibility.UNKNOWN; } } }
private EAccessibility getWheelchairBoardingAccessibilityForStop(Stop stop) { switch (stop.getWheelchairBoarding()) { case 1: return EAccessibility.ACCESSIBLE; case 2: return EAccessibility.NOT_ACCESSIBLE; default: return EAccessibility.UNKNOWN; } } }
public TransitStop(String id, double lon, double lat, String name, String stopId, Stop stop) { super(id, lon, lat, name, stopId); if (stop != null) { this.wheelchairEntrance = stop.getWheelchairBoarding() == 1; } isEntrance = stop == null ? false : stop.getLocationType() == 2; }
for (StopTime stopTime : stopTimes) { zones[i] = stopTimes.get(i).getStop().getZoneId(); if (stopTime.getStop().getWheelchairBoarding() != 0) { perStopFlags[i] |= FLAG_WHEELCHAIR_ACCESSIBLE;
tripWheelchairAccessible && s0.getWheelchairBoarding() != 0); graph.addEdge(boarding); && s1.getWheelchairBoarding() != 0));