All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.opentripplanner.graph_builder.issues.TurnRestrictionBad Maven / Gradle / Ivy

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 - 2024 Weber Informatics LLC | Privacy Policy