
org.opentripplanner.graph_builder.issues.LevelAmbiguous 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 LevelAmbiguous(String layerName, OSMWithTags 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