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

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

package org.opentripplanner.graph_builder.issues;

import org.opentripplanner.graph_builder.DataImportIssue;

public class LevelAmbiguous implements DataImportIssue {

    public 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.";
    public 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.";
    
    final String layerName;

    final long osmWayId;
    
    public LevelAmbiguous(String layerName, long osmWayId){
    	this.layerName = layerName;
    	this.osmWayId = osmWayId;
    }
    
    @Override
    public String getMessage() {
        return String.format(FMT, layerName, osmWayId);
    }

    @Override
    public String getHTMLMessage() {
        return String.format(HTMLFMT, osmWayId, layerName, osmWayId);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy