DennisOSRM/Project-OSRM — Issue #84: can't get traffic light penalty to work?
Author: emiltin
Created: 2012-01-19 13:34:18+00:00
State: open

i've set trafficLightPenalty in my speedprofile, but i can't see any difference in the routes computed. i've tried with settings of 1,15,100,1000, it makes no difference. i've verified that the intersection nodes involved have highway=traffic_signals set.

i'm testing by routing around a somewhat rectangular block with traffic lights in both the eastern corners - yet osrm doesn't seem to prefer the way around the block without traffic_lights.

http://www.openstreetmap.org/?lat=55.659393&lon=12.592401&zoom=18&layers=M

is there anything else i need to do?

here's my profile:

[bicycle]
cycleway	= 20
trunk = 20
trunk_link = 20
primary = 20
primary_link = 20
secondary = 20
secondary_link = 20
tertiary = 20
unclassified = 18
residential = 18
living_street = 18
service = 15
track	= 15
path	= 15
ferry	= 5
pier	= 5
steps	= 3
obeyOneways	= yes
useRestrictions = yes
accessTag	= bicycle
excludeFromGrid = ferry
defaultSpeed	= 20
trafficLightPenalty = 20