Removes access_restricted flag internally

This commit is contained in:
Daniel J. Hofmann
2016-12-05 10:54:24 +01:00
committed by Daniel J. H
parent d11927046f
commit 949d505783
8 changed files with 10 additions and 51 deletions
-15
View File
@@ -40,11 +40,6 @@ access_tag_blacklist = Set {
'delivery'
}
access_tag_restricted = Set {
'destination',
'delivery'
}
access_tags_hierarchy = Sequence {
'motorcar',
'motor_vehicle',
@@ -52,11 +47,6 @@ access_tags_hierarchy = Sequence {
'access'
}
service_tag_restricted = Set {
'parking_aisle',
'parking'
}
service_tag_forbidden = Set {
'emergency_access'
}
@@ -545,11 +535,6 @@ end
function handle_service(way,result)
local service = way:get_value_by_key("service")
if service then
-- Set access restriction flag if service is allowed under certain restrictions only
if service_tag_restricted[service] then
result.is_access_restricted = true
end
-- Set don't allow access to certain service roads
if service_tag_forbidden[service] then
result.forward_mode = mode.inaccessible