handle avoid motorway for foot and bicycle
This commit is contained in:
		
							parent
							
								
									f90c90cb88
								
							
						
					
					
						commit
						41fa6987ce
					
				| @ -613,6 +613,11 @@ end | |||||||
| -- handle various that can block access | -- handle various that can block access | ||||||
| function WayHandlers.blocked_ways(profile,way,result,data) | function WayHandlers.blocked_ways(profile,way,result,data) | ||||||
| 
 | 
 | ||||||
|  |   -- motorroad | ||||||
|  |   if profile.avoid.motorroad and way:get_value_by_key("motorroad") == "yes" then | ||||||
|  |     return false | ||||||
|  |   end | ||||||
|  | 
 | ||||||
|   -- areas |   -- areas | ||||||
|   if profile.avoid.area and way:get_value_by_key("area") == "yes" then |   if profile.avoid.area and way:get_value_by_key("area") == "yes" then | ||||||
|     return false |     return false | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user