reenable traffic signal penalty in car profile
This commit is contained in:
parent
45f0af2afc
commit
241d6b482e
@ -213,10 +213,7 @@ int main (int argc, char *argv[]) {
|
||||
EdgeBasedGraphFactory::SpeedProfileProperties speedProfile;
|
||||
|
||||
if(0 != luaL_dostring( myLuaState, "return traffic_signal_penalty\n")) {
|
||||
std::cerr <<
|
||||
lua_tostring(myLuaState,-1) <<
|
||||
" occured in scripting block" <<
|
||||
std::endl;
|
||||
std::cerr << lua_tostring(myLuaState,-1) << " occured in scripting block" << std::endl;
|
||||
return 1;
|
||||
}
|
||||
speedProfile.trafficSignalPenalty = 10*lua_tointeger(myLuaState, -1);
|
||||
|
@ -32,12 +32,14 @@ speed_profile = {
|
||||
["default"] = 10
|
||||
}
|
||||
|
||||
traffic_signal_penalty = 2
|
||||
|
||||
-- End of globals
|
||||
local take_minimum_of_speeds = false
|
||||
local obey_oneway = true
|
||||
local obey_bollards = true
|
||||
local use_turn_restrictions = true
|
||||
local ignore_areas = true -- future feature
|
||||
local traffic_signal_penalty = 2
|
||||
local u_turn_penalty = 20
|
||||
|
||||
local abs = math.abs
|
||||
@ -46,7 +48,6 @@ local max = math.max
|
||||
|
||||
local maxspeed_reduction = 0.66
|
||||
|
||||
-- End of globals
|
||||
local function find_access_tag(source,access_tags_hierachy)
|
||||
for i,v in ipairs(access_tags_hierachy) do
|
||||
local has_tag = source.tags:Holds(v)
|
||||
|
Loading…
Reference in New Issue
Block a user