org.opentripplanner.graph_builder.issues.ConflictingBikeTags 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 ConflictingBikeTags implements DataImportIssue {
public static final String FMT = "Conflicting tags bicycle:[yes|designated] and cycleway: " +
"dismount on way %s, assuming dismount";
public static final String HTMLFMT = "Conflicting tags bicycle:[yes|designated] and cycleway: " +
"dismount on way \"%d\", assuming dismount";
final long wayId;
public ConflictingBikeTags(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);
}
}