org.opentripplanner.graph_builder.issues.TurnRestrictionBad 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 TurnRestrictionBad implements DataImportIssue {
public static final String FMT = "Bad turn restriction at relation %s. Reason: %s";
public static final String HTMLFMT =
"Bad turn restriction at relation %s. Reason: %s";
final long id;
final String reason;
public TurnRestrictionBad(long relationOSMID, String reason) {
this.id = relationOSMID;
this.reason = reason;
}
@Override
public String getMessage() {
return String.format(FMT, id, reason);
}
@Override
public String getHTMLMessage() {
return String.format(HTMLFMT, id, id, reason);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy