From 989bf22162938b03bf75410fd3c211b8830852cf Mon Sep 17 00:00:00 2001 From: Julien Etienne Date: Fri, 31 Jul 2026 00:11:46 +0700 Subject: [PATCH] fix(car): classify access=unknown as restricted instead of fully allowed access=unknown was in access_tag_whitelist, so it was treated identically to access=yes: fully allowed, no restricted class, no distinction from a genuinely verified public way. Move it to restricted_access_tag_list instead, the same tier private/destination/delivery/customers/permit/residents already use. Routability is unchanged (restricted-tier values are not excluded by default, see way_handlers.lua's access_tag_blacklist check being skipped when forward_restricted/backward_restricted is true), this only fixes the "restricted" edge classification so API consumers can see the distinction and, if they choose to, treat it differently. See #6762. Signed-off-by: Julien Etienne --- features/car/classes.feature | 17 +++++++++++++++++ profiles/car.lua | 4 ++-- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/features/car/classes.feature b/features/car/classes.feature index 6c2a5cf22b2..108ee8cefee 100644 --- a/features/car/classes.feature +++ b/features/car/classes.feature @@ -82,6 +82,23 @@ Feature: Car - Mode flag | from | to | route | turns | classes | | a | d | ab,cd | depart,arrive| [(restricted),(motorway,restricted),()],[()] | + Scenario: Car - We tag access=unknown with a restricted class + Given the node map + """ + a b + c d + """ + + And the ways + | nodes | highway | access | + | ab | primary | unknown | + | bc | motorway| unknown | + | cd | primary | | + + When I route I should get + | from | to | route | turns | classes | + | a | d | ab,cd | depart,arrive| [(restricted),(motorway,restricted),()],[()] | + Scenario: Car - We tag toll with a class Given the node map """ diff --git a/profiles/car.lua b/profiles/car.lua index e65b7c3afac..1702d934f28 100644 --- a/profiles/car.lua +++ b/profiles/car.lua @@ -86,8 +86,7 @@ function setup() 'vehicle', 'permissive', 'designated', - 'hov', - 'unknown' + 'hov' }, access_tag_blacklist = Set { @@ -125,6 +124,7 @@ function setup() 'customers', 'permit', 'residents', + 'unknown', }, access_tags_hierarchy = Sequence {