use of org.opentripplanner.graph_builder.issues.QuayWithoutCoordinates in project OpenTripPlanner by opentripplanner.
the class StopMapper method mapQuayToStop.
/**
* Map Netex Quay to OTP Stop
*/
Stop mapQuayToStop(Quay quay, Station parentStation, List<FareZone> fareZones) {
WgsCoordinate coordinate = WgsCoordinateMapper.mapToDomain(quay.getCentroid());
if (coordinate == null) {
issueStore.add(new QuayWithoutCoordinates(quay.getId()));
return null;
}
Stop stop = new Stop(idFactory.createId(quay.getId()), parentStation.getName(), quay.getPublicCode(), null, WgsCoordinateMapper.mapToDomain(quay.getCentroid()), null, null, null, fareZones, null, null, null);
stop.setParentStation(parentStation);
return stop;
}
Aggregations