Add audible fence exception for barrier routing#7331
Merged
DennisOSRM merged 6 commits intoProject-OSRM:masterfrom Jan 14, 2026
Merged
Add audible fence exception for barrier routing#7331DennisOSRM merged 6 commits intoProject-OSRM:masterfrom
DennisOSRM merged 6 commits intoProject-OSRM:masterfrom
Conversation
DennisOSRM
reviewed
Jan 14, 2026
Collaborator
DennisOSRM
left a comment
There was a problem hiding this comment.
Change looks good to me. Perhaps adding a test to the bike profile makes sense, too.
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request adds support for audible fences in the car routing profile. Audible fences, commonly used in Australia, use sound to deter livestock and wild animals but have no physical barrier, making them passable by vehicles. The PR allows OSRM to correctly route through nodes tagged as barrier=fence when they also have sensory=audible or sensory=audio.
Changes:
- Added exception logic in the car profile to allow routing through audible fences
- Added test scenarios to verify the audible fence exception works correctly
- Updated taginfo.json to document the new tag handling
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| profiles/car.lua | Added logic to detect and allow routing through audible fences (barrier=fence with sensory=audible/audio) |
| features/car/barrier.feature | Added test scenario verifying audible fences are passable while regular fences remain barriers |
| taginfo.json | Added documentation entries for barrier=fence and sensory tag values (audible/audio) |
| CHANGELOG.md | Added entry documenting the new audible fence exception feature |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue
Fixes #6964
In Australia, audible fences use sound to deter livestock and wild animals but have no physical barrier. They are tagged in OSM as
barrier=fencewithsensory=audibleorsensory=audio. OSRM currently treats all fences as impassable, causing incorrect routing.This PR adds an exception for audible fences in the car, bicycle, and foot profiles.
Tasklist
Requirements / Relations
None