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

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

The newest version!
package org.opentripplanner.graph_builder.issues;

import org.opentripplanner.graph_builder.issue.api.DataImportIssue;
import org.opentripplanner.osm.model.OsmEntity;

public record InvalidVehicleParkingCapacity(OsmEntity entity, String capacityValue)
  implements DataImportIssue {
  private static final String FMT =
    "Capacity for osm node %d is not a number: '%s'; it's replaced with '-1' (unknown).";
  private static final String HTMLFMT =
    "Capacity for osm node '%s' is not a number: '%s'; it's replaced with '-1' (unknown).";

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

  @Override
  public String getHTMLMessage() {
    return String.format(HTMLFMT, entity.url(), entity.getId(), capacityValue);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy