All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.opentripplanner.graph_builder.issues.ConflictingBikeTags Maven / Gradle / Ivy

There is a newer version: 2.5.0
Show newest version
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);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy