This commit is contained in:
Max Langer 2024-08-04 16:29:57 +10:00 committed by GitHub
commit 5e3bd95307
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 22 additions and 2 deletions

View File

@ -79,6 +79,7 @@
- ADDED: Extract prerelease/build information from package semver [#6839](https://github.com/Project-OSRM/osrm-backend/pull/6839) - ADDED: Extract prerelease/build information from package semver [#6839](https://github.com/Project-OSRM/osrm-backend/pull/6839)
- Profiles: - Profiles:
- FIXED: Bicycle and foot profiles now don't route on proposed ways [#6615](https://github.com/Project-OSRM/osrm-backend/pull/6615) - FIXED: Bicycle and foot profiles now don't route on proposed ways [#6615](https://github.com/Project-OSRM/osrm-backend/pull/6615)
- FIXED: Bicycle and foot profiles now don't route on motor roads [#6697](https://github.com/Project-OSRM/osrm-backend/pull/6697)
- Routing: - Routing:
- FIXED: Fix adding traffic signal penalties during compression [#6419](https://github.com/Project-OSRM/osrm-backend/pull/6419) - FIXED: Fix adding traffic signal penalties during compression [#6419](https://github.com/Project-OSRM/osrm-backend/pull/6419)
- FIXED: Correctly handle compressed traffic signals. [#6724](https://github.com/Project-OSRM/osrm-backend/pull/6724) - FIXED: Correctly handle compressed traffic signals. [#6724](https://github.com/Project-OSRM/osrm-backend/pull/6724)

View File

@ -40,3 +40,9 @@ Feature: Bike - Accessability of different way types
| highway | man_made | bothw | | highway | man_made | bothw |
| (nil) | (nil) | | | (nil) | (nil) | |
| (nil) | pier | x | | (nil) | pier | x |
Scenario: Bike - Motorroad
Then routability should be
| highway | motorroad | bothw |
| (nil) | (nil) | x |
| (nil) | yes | |

View File

@ -42,3 +42,9 @@ Feature: Foot - Accessability of different way types
| footway | | | x | | footway | | | x |
| proposed | | | | | proposed | | | |
| proposed | yes | yes | | | proposed | yes | yes | |
Scenario: Foot - Motorroad
Then routability should be
| highway | motorroad | forw |
| (nil) | (nil) | x |
| (nil) | yes | |

View File

@ -217,7 +217,8 @@ function setup()
avoid = Set { avoid = Set {
'impassable', 'impassable',
'construction', 'construction',
'proposed' 'proposed',
'motorroad'
} }
} }
end end

View File

@ -70,7 +70,8 @@ function setup()
avoid = Set { avoid = Set {
'impassable', 'impassable',
'proposed' 'proposed',
'motorroad'
}, },
speeds = Sequence { speeds = Sequence {

View File

@ -634,6 +634,11 @@ function WayHandlers.blocked_ways(profile,way,result,data)
return false return false
end end
-- motorroad
if profile.avoid.motorroad and way:get_value_by_key("motorroad") == "yes" then
return false
end
-- In addition to the highway=construction tag above handle the construction=* tag -- In addition to the highway=construction tag above handle the construction=* tag
-- http://wiki.openstreetmap.org/wiki/Key:construction -- http://wiki.openstreetmap.org/wiki/Key:construction
-- https://taginfo.openstreetmap.org/keys/construction#values -- https://taginfo.openstreetmap.org/keys/construction#values