Closed usamahafeezbutt closed 1 year ago
that worked for me with just assigning the limits to
asphalt = nil, -- nil mean no limit. removing the line has the same effect concrete = nil, ["concrete:plates"] = nil, ["concrete:lanes"] = nil, paved = nil,
these nil values to the speed we needed for our particular vehicles.
I'm trying to create some new profiles using the existing car.lua and bicycle.lua. I'm majorly concerned about excluding motorways from route and limiting the speed as per vehicle. The vehicles I'm trying to incorporate are paxster (max speed 60 Kmh), kyburz (max speed 40 Kmh) these are used for distribution purposes. I have changed the speed as below:
properties = { max_speed_for_map_matching = 60/3.6, -- 180kmph -> m/s -- For routing based on duration, but weighted for preferring certain roads weight_name = 'routability', -- For shortest duration without penalties for accessibility -- weight_name = 'duration', -- For shortest distance without penalties for accessibility -- weight_name = 'distance', process_call_tagless_node = false, u_turn_penalty = 20, continue_straight_at_waypoint = true, use_turn_restrictions = true, left_hand_driving = false, traffic_light_penalty = 2, },
speeds = Sequence { highway = { --motorway = 90, --motorway_link = 45, trunk = 60, trunk_link = 40, primary = 60, primary_link = 30, secondary = 55, secondary_link = 25, tertiary = 18, tertiary_link = 12, unclassified = 25, residential = 25, living_street = 10, service = 15 } }, surface_speeds = { asphalt = nil, -- nil mean no limit. removing the line has the same effect concrete = nil, ["concrete:plates"] = nil, ["concrete:lanes"] = nil, paved = nil,