本文整理汇总了Java中com.graphhopper.util.PMap.getDouble方法的典型用法代码示例。如果您正苦于以下问题:Java PMap.getDouble方法的具体用法?Java PMap.getDouble怎么用?Java PMap.getDouble使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.graphhopper.util.PMap
的用法示例。
在下文中一共展示了PMap.getDouble方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: GreenWeighting
import com.graphhopper.util.PMap; //导入方法依赖的package包/类
public GreenWeighting(FlagEncoder encoder, PMap map, GraphStorage graphStorage) {
super(encoder, map);
_gsGreenIndex = GraphStorageUtils.getGraphExtension(graphStorage, GreenIndexGraphStorage.class);
double factor = map.getDouble("factor", 1);
for (int i = 0; i < totalLevel; i++)
_factors[i] = calcGreenWeightFactor(i, factor);
}
示例2: AvoidHillsWeighting
import com.graphhopper.util.PMap; //导入方法依赖的package包/类
public AvoidHillsWeighting(FlagEncoder encoder, PMap map, GraphStorage graphStorage)
{
super(encoder, map);
buffer = new byte[1];
this.maxSteepness = map.getDouble("steepness_maximum", -1);
gsHillIndex = GraphStorageUtils.getGraphExtension(graphStorage, HillIndexGraphStorage.class);
}
示例3: CarFlagEncoder
import com.graphhopper.util.PMap; //导入方法依赖的package包/类
public CarFlagEncoder(PMap properties) {
this((int) properties.getLong("speed_bits", 5),
properties.getDouble("speed_factor", 5),
properties.getBool("turn_costs", false) ? 1 : 0);
this.properties = properties;
this.setBlockFords(properties.getBool("block_fords", true));
this.setBlockByDefault(properties.getBool("block_barriers", true));
maxTrackGradeLevel = properties.getInt("maximum_grade_level", 3);
}
示例4: HikingFlagEncoder
import com.graphhopper.util.PMap; //导入方法依赖的package包/类
public HikingFlagEncoder( PMap properties )
{
this((int) properties.getLong("speed_bits", 4),
properties.getDouble("speed_factor", 1));
this.properties = properties;
this.setBlockFords(properties.getBool("block_fords", true));
}
示例5: EmergencyFlagEncoder
import com.graphhopper.util.PMap; //导入方法依赖的package包/类
public EmergencyFlagEncoder(PMap properties)
{
this(properties.getInt("speed_bits", 5),
properties.getDouble("speed_factor", 5),
properties.getBool("turn_costs", false) ? 3 : 0);
setBlockFords(false);
}
示例6: RunningFlagEncoder
import com.graphhopper.util.PMap; //导入方法依赖的package包/类
public RunningFlagEncoder( PMap properties )
{
this((int) properties.getLong("speed_bits", 4),
properties.getDouble("speed_factor", 1));
this.properties = properties;
this.setBlockFords(properties.getBool("block_fords", true));
}
示例7: HeavyVehicleFlagEncoder
import com.graphhopper.util.PMap; //导入方法依赖的package包/类
public HeavyVehicleFlagEncoder(PMap properties)
{
this(properties.getInt("speed_bits", 5),
properties.getDouble("speed_factor", 5),
properties.getBool("turn_costs", false) ? 3 : 0);
setBlockFords(false);
maxTrackGradeLevel = properties.getInt("maximum_grade_level", 1);
}
示例8: SafetyBikeFlagEncoder
import com.graphhopper.util.PMap; //导入方法依赖的package包/类
public SafetyBikeFlagEncoder(PMap configuration)
{
this(configuration.getInt("speed_bits", 4) + (configuration.getBool("consider_elevation", false) ? 1 : 0),
configuration.getDouble("speed_factor", 2),
configuration.getBool("turn_costs", false) ? 3 : 0,
configuration.getBool("consider_elevation", false));
setBlockFords(false);
}
示例9: MountainBikeFlagEncoder
import com.graphhopper.util.PMap; //导入方法依赖的package包/类
public MountainBikeFlagEncoder(PMap properties) {
this(
properties.getInt("speed_bits", 4) + (properties.getBool("consider_elevation", false) ? 1 : 0),
properties.getDouble("speed_factor", 2),
properties.getBool("turn_costs", false) ? 1 : 0,
properties.getBool("consider_elevation", false)
);
this.properties = properties;
this.setBlockFords(properties.getBool("block_fords", true));
}
示例10: RacingBikeFlagEncoder
import com.graphhopper.util.PMap; //导入方法依赖的package包/类
public RacingBikeFlagEncoder(PMap properties) {
this(
(int) properties.getLong("speed_bits", 4),
properties.getDouble("speed_factor", 2),
properties.getBool("turn_costs", false) ? 1 : 0,
properties.getBool("consider_elevation", false)
);
this.properties = properties;
this.setBlockFords(properties.getBool("block_fords", true));
}
示例11: QuietWeighting
import com.graphhopper.util.PMap; //导入方法依赖的package包/类
public QuietWeighting(FlagEncoder encoder, PMap map, GraphStorage graphStorage) {
super(encoder, map);
_buffer = new byte[1];
_gsNoiseIndex = GraphStorageUtils.getGraphExtension(graphStorage, NoiseIndexGraphStorage.class);
_weightingFactor = map.getDouble("factor", 1);
}
示例12: CarTmcFlagEncoder
import com.graphhopper.util.PMap; //导入方法依赖的package包/类
public CarTmcFlagEncoder(PMap configuration)
{
this(configuration.getInt("speed_bits", 5),
configuration.getDouble("speed_factor", 5),
configuration.getBool("turn_costs", false) ? 3 : 0);
}
示例13: WheelchairFlagEncoder
import com.graphhopper.util.PMap; //导入方法依赖的package包/类
public WheelchairFlagEncoder(PMap configuration)
{
this(configuration.getInt("speed_bits", 4),
configuration.getDouble("speed_factor", 1));
}
示例14: CycleTourBikeFlagEncoder
import com.graphhopper.util.PMap; //导入方法依赖的package包/类
public CycleTourBikeFlagEncoder(PMap configuration) {
super(configuration.getInt("speed_bits", 4) + (configuration.getBool("consider_elevation", false) ? 1 : 0),
configuration.getDouble("speed_factor", 2),
configuration.getBool("turn_costs", false) ? 3 : 0,
configuration.getBool("consider_elevation", false));
setBlockFords(false);
this.setBlockFords(configuration.getBool("block_fords", true));
setCyclingNetworkPreference("icn", BEST.getValue());
setCyclingNetworkPreference("ncn", BEST.getValue());
setCyclingNetworkPreference("rcn", BEST.getValue());
setCyclingNetworkPreference("lcn", BEST.getValue());
// addPushingSection("path"); // Runge Assume that paths are suitable
// for cycle tours.
addPushingSection("footway");
addPushingSection("pedestrian");
addPushingSection("steps");
avoidHighwayTags.clear();
avoidHighwayTags.add("motorway");
avoidHighwayTags.add("motorway_link");
avoidHighwayTags.add("trunk");
avoidHighwayTags.add("trunk_link");
avoidHighwayTags.add("primary");
avoidHighwayTags.add("primary_link");
avoidHighwayTags.add("secondary");
avoidHighwayTags.add("secondary_link");
// preferHighwayTags.add("road");
preferHighwayTags.add("path");
preferHighwayTags.add("service");
preferHighwayTags.add("residential");
preferHighwayTags.add("unclassified");
preferHighwayTags.add("tertiary");
preferHighwayTags.add("tertiary_link");
setAvoidSpeedLimit(61);
setSpecificClassBicycle("touring");
init();
}