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

org.opentripplanner.graph_builder.issues.ParkAndRideUnlinked 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;
import org.opentripplanner.openstreetmap.model.OSMWithTags;

public class ParkAndRideUnlinked implements DataImportIssue {

  public static final String FMT =
    "Park and ride '%s' (%s) not linked to any streets; it will not be usable.";
  public static final String HTMLFMT =
    "Park and ride '%s' (%s) not linked to any streets; it will not be usable.";

  final String name;
  final OSMWithTags entity;

  public ParkAndRideUnlinked(String name, OSMWithTags entity) {
    this.name = name;
    this.entity = entity;
  }

  @Override
  public String getMessage() {
    return String.format(FMT, name, entity);
  }

  @Override
  public String getHTMLMessage() {
    return String.format(HTMLFMT, entity.getOpenStreetMapLink(), name, entity);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy