Skip to content

Commit 2673fe7

Browse files
committed
Add the PSV vehicle subtypes to the access_tag_blacklist of the car profile (taxi, share_taxi, minibus, and bus) #7295
1 parent c98537b commit 2673fe7

File tree

5 files changed

+24
-0
lines changed

5 files changed

+24
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
- FIXED: Use `cycleway:both` if available. [#6179](https://github.com/Project-OSRM/osrm-backend/issues/6179)
3131
- FIXED: Correctly limit exclude classes to 7. [#7322](https://github.com/Project-OSRM/osrm-backend/pull/7322)
3232
- FIXED: Speed limits in Czech Republic [#7279](https://github.com/Project-OSRM/osrm-backend/pull/7279)
33+
- CHANGED: Add the PSV vehicle subtypes to the access_tag_blacklist of the car profile (taxi, share_taxi, minibus, and bus) [#7295](https://github.com/Project-OSRM/osrm-backend/pull/7295)
3334

3435
# 6.0.0
3536
- Changes from 6.0.0 RC2: None

features/car/access.feature

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,10 @@ Feature: Car - Restricted access
123123
| agricultural | |
124124
| forestry | |
125125
| psv | |
126+
| taxi | |
127+
| share_taxi | |
128+
| minibus | |
129+
| bus | |
126130
| delivery | x |
127131
| some_tag | x |
128132
| destination | x |
@@ -139,6 +143,10 @@ Feature: Car - Restricted access
139143
| agricultural | |
140144
| forestry | |
141145
| psv | |
146+
| taxi | |
147+
| share_taxi | |
148+
| minibus | |
149+
| bus | |
142150
| delivery | x |
143151
| some_tag | x |
144152

profiles/car.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ function setup()
8080
'forestry',
8181
'emergency',
8282
'psv',
83+
'taxi', -- sub class of psv
84+
'share_taxi', -- sub class of psv
85+
'minibus', -- sub class of psv
86+
'bus', -- sub class of psv
8387
'customers',
8488
'private',
8589
'delivery',

profiles/lib/guidance.lua

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,13 @@ end
144144
-- returns forward,backward psv lane count
145145
local function get_psv_counts(way,data)
146146
local psv_forward, psv_backward = Tags.get_forward_backward_by_key(way,data,'lanes:psv')
147+
local taxi_forward, taxi_backward = Tags.get_forward_backward_by_key(way,data,'lanes:taxi')
148+
local share_taxi_forward, share_taxi_backward = Tags.get_forward_backward_by_key(way,data,'lanes:share_taxi')
149+
local minibus_forward, minibus_backward = Tags.get_forward_backward_by_key(way,data,'lanes:minibus')
150+
local bus_forward, bus_backward = Tags.get_forward_backward_by_key(way,data,'lanes:bus')
151+
psv_forward = psv_forward or taxi_forward or share_taxi_forward or minibus_forward or bus_forward
152+
psv_backward = psv_backward or taxi_backward or share_taxi_backward or minibus_backward or bus_backward
153+
147154
if psv_forward then
148155
psv_forward = to_number_uint(psv_forward)
149156
end

taginfo.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,10 @@
152152
{"key": "access", "value": "forestry"},
153153
{"key": "access", "value": "emergency"},
154154
{"key": "access", "value": "psv"},
155+
{"key": "access", "value": "taxi"},
156+
{"key": "access", "value": "share_taxi"},
157+
{"key": "access", "value": "minibus"},
158+
{"key": "access", "value": "bus"},
155159
{"key": "access", "value": "delivery"},
156160
{"key": "maxheight", "object_types": ["node", "way"]},
157161
{"key": "maxspeed", "value": "none"},

0 commit comments

Comments
 (0)