
org.opentripplanner.graph_builder.issues.LevelAmbiguous 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 LevelAmbiguous(String layerName, OsmEntity entity) implements DataImportIssue {
private static final String FMT =
"Could not infer floor number for layer called '%s' at %s. " +
"Vertical movement will still be possible, but elevator cost might be incorrect. " +
"Consider an OSM level map.";
private static final String HTMLFMT =
"Could not infer floor number for layer called '%s' (%d)" +
"Vertical movement will still be possible, but elevator cost might be incorrect. " +
"Consider an OSM level map.";
@Override
public String getMessage() {
return String.format(FMT, layerName, entity.getId());
}
@Override
public String getHTMLMessage() {
return String.format(HTMLFMT, entity.url(), layerName, entity.getId());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy