org.opentripplanner.graph_builder.issues.StreetCarSpeedZero 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
package org.opentripplanner.graph_builder.issues;
import org.opentripplanner.graph_builder.DataImportIssue;
public class StreetCarSpeedZero implements DataImportIssue {
public static final String FMT = "Way %s has car speed zero";
public static final String HTMLFMT = "Way \"%d\" has car speed zero";
final long wayId;
public StreetCarSpeedZero(long wayId){
this.wayId = wayId;
}
@Override
public String getHTMLMessage() {
if (wayId > 0 ) {
return String.format(HTMLFMT, wayId, wayId);
// If way is lower then 0 it means it is temporary ID and so useless to link to OSM
} else {
return getMessage();
}
}
@Override
public String getMessage() {
return String.format(FMT, wayId);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy