Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
- CHANGED: Upgrade Cucumber-js to v12 [#7221](https://github.com/Project-OSRM/osrm-backend/pull/7221)
- CHANGED: Add libcap-setcap to alpine dockerfile [#7241](https://github.com/Project-OSRM/osrm-backend/issues/7241)
- FIXED: Minor misspellings found in source code, comments and documents [#7215](https://github.com/Project-OSRM/osrm-backend/pull/7215)
- 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)

# 6.0.0
- Changes from 6.0.0 RC2: None
Expand Down
8 changes: 8 additions & 0 deletions features/car/access.feature
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,10 @@ Feature: Car - Restricted access
| agricultural | |
| forestry | |
| psv | |
| taxi | |
| share_taxi | |
| minibus | |
| bus | |
| delivery | x |
| some_tag | x |
| destination | x |
Expand All @@ -139,6 +143,10 @@ Feature: Car - Restricted access
| agricultural | |
| forestry | |
| psv | |
| taxi | |
| share_taxi | |
| minibus | |
| bus | |
| delivery | x |
| some_tag | x |

Expand Down
4 changes: 4 additions & 0 deletions profiles/car.lua
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ function setup()
'forestry',
'emergency',
'psv',
'taxi', -- sub class of psv
'share_taxi', -- sub class of psv
'minibus', -- sub class of psv
'bus', -- sub class of psv
'customers',
'private',
'delivery',
Expand Down
7 changes: 7 additions & 0 deletions profiles/lib/guidance.lua
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,13 @@ end
-- returns forward,backward psv lane count
local function get_psv_counts(way,data)
local psv_forward, psv_backward = Tags.get_forward_backward_by_key(way,data,'lanes:psv')
local taxi_forward, taxi_backward = Tags.get_forward_backward_by_key(way,data,'lanes:taxi')
local share_taxi_forward, share_taxi_backward = Tags.get_forward_backward_by_key(way,data,'lanes:share_taxi')
local minibus_forward, minibus_backward = Tags.get_forward_backward_by_key(way,data,'lanes:minibus')
local bus_forward, bus_backward = Tags.get_forward_backward_by_key(way,data,'lanes:bus')
psv_forward = psv_forward or taxi_forward or share_taxi_forward or minibus_forward or bus_forward
psv_backward = psv_backward or taxi_backward or share_taxi_backward or minibus_backward or bus_backward

if psv_forward then
psv_forward = tonumber(psv_forward)
end
Expand Down
4 changes: 4 additions & 0 deletions taginfo.json
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,10 @@
{"key": "access", "value": "forestry"},
{"key": "access", "value": "emergency"},
{"key": "access", "value": "psv"},
{"key": "access", "value": "taxi"},
{"key": "access", "value": "share_taxi"},
{"key": "access", "value": "minibus"},
{"key": "access", "value": "bus"},
{"key": "access", "value": "delivery"},
{"key": "maxheight", "object_types": ["node", "way"]},
{"key": "maxspeed", "value": "none"},
Expand Down
Loading