
org.opentripplanner.graph_builder.issues.InvalidVehicleParkingCapacity 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
The newest version!
package org.opentripplanner.graph_builder.issues;
import org.opentripplanner.graph_builder.issue.api.DataImportIssue;
import org.opentripplanner.openstreetmap.model.OSMWithTags;
public record InvalidVehicleParkingCapacity(OSMWithTags 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