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

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

There is a newer version: 2.6.0
Show newest version
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