com.graphhopper.routing.util.parsers.BikeAverageSpeedParser Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of graphhopper-core Show documentation
Show all versions of graphhopper-core Show documentation
GraphHopper is a fast and memory efficient Java road routing engine
working seamlessly with OpenStreetMap data.
package com.graphhopper.routing.util.parsers;
import com.graphhopper.routing.ev.*;
public class BikeAverageSpeedParser extends BikeCommonAverageSpeedParser {
public BikeAverageSpeedParser(EncodedValueLookup lookup) {
this(lookup.getDecimalEncodedValue(VehicleSpeed.key("bike")),
lookup.getEnumEncodedValue(Smoothness.KEY, Smoothness.class),
lookup.getDecimalEncodedValue(FerrySpeed.KEY));
}
public BikeAverageSpeedParser(DecimalEncodedValue speedEnc, EnumEncodedValue smoothnessEnc, DecimalEncodedValue ferrySpeedEnc) {
super(speedEnc, smoothnessEnc, ferrySpeedEnc);
addPushingSection("path");
}
}