Skip to content

Add audible fence exception for barrier routing#7331

Merged
DennisOSRM merged 6 commits intoProject-OSRM:masterfrom
afarber:6964-audible-fences
Jan 14, 2026
Merged

Add audible fence exception for barrier routing#7331
DennisOSRM merged 6 commits intoProject-OSRM:masterfrom
afarber:6964-audible-fences

Conversation

@afarber
Copy link
Copy Markdown
Contributor

@afarber afarber commented Jan 13, 2026

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=fence with sensory=audible or sensory=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

Copy link
Copy Markdown
Collaborator

@DennisOSRM DennisOSRM left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change looks good to me. Perhaps adding a test to the bike profile makes sense, too.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread CHANGELOG.md Outdated
afarber and others added 3 commits January 14, 2026 10:55
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Copy Markdown
Collaborator

@DennisOSRM DennisOSRM left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good

@DennisOSRM DennisOSRM merged commit 936fcfe into Project-OSRM:master Jan 14, 2026
19 checks passed
@afarber afarber deleted the 6964-audible-fences branch January 14, 2026 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Audible fences should not be barriers

3 participants