org.opentripplanner.graph_builder.issues.TurnRestrictionException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of otp Show documentation
Show all versions of otp Show documentation
The OpenTripPlanner multimodal journey planning system
package org.opentripplanner.graph_builder.issues;
import org.opentripplanner.graph_builder.DataImportIssue;
public class TurnRestrictionException implements DataImportIssue {
public static final String FMT = "Turn restriction with bicycle exception at node %s from %s";
public static final String HTMLFMT =
"Turn restriction with bicycle exception at node \"%d\" from \"%d\"";
final long nodeId, wayId;
public TurnRestrictionException(long nodeId, long wayId) {
this.nodeId = nodeId;
this.wayId = wayId;
}
@Override
public String getMessage() {
return String.format(FMT, nodeId, wayId);
}
@Override
public String getHTMLMessage() {
return String.format(HTMLFMT, nodeId, nodeId, wayId, wayId);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy