Search in sources :

Example 1 with QuayWithoutCoordinates

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;
}
Also used : WgsCoordinate(org.opentripplanner.model.WgsCoordinate) Stop(org.opentripplanner.model.Stop) QuayWithoutCoordinates(org.opentripplanner.graph_builder.issues.QuayWithoutCoordinates)

Aggregations

QuayWithoutCoordinates (org.opentripplanner.graph_builder.issues.QuayWithoutCoordinates)1 Stop (org.opentripplanner.model.Stop)1 WgsCoordinate (org.opentripplanner.model.WgsCoordinate)1