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

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

There is a newer version: 2.6.0
Show newest version
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