Skip to content

fix(profiles): remove leisure=track from foot profile routable ways#7542

Open
DennisOSRM wants to merge 2 commits intomasterfrom
remove_leisure_track
Open

fix(profiles): remove leisure=track from foot profile routable ways#7542
DennisOSRM wants to merge 2 commits intomasterfrom
remove_leisure_track

Conversation

@DennisOSRM
Copy link
Copy Markdown
Collaborator

@DennisOSRM DennisOSRM commented May 7, 2026

Summary

Removes leisure=track from the foot profile's list of routable way types, fixing #4312.

Problem

The foot profile was treating leisure=track as a walkable surface and routing pedestrians over it. However, according to the OSM wiki, leisure=track describes a sports or race track (athletics track, velodrome, horse racing circuit, etc.) — not a path intended for general pedestrian use.

This caused OSRM to generate routes through areas that are typically restricted to athletes/competitors, or physically unsuitable for walking (e.g., a running track around a sports field, a velodrome).

Changes

  • Removes speeds.leisure.track from the speeds table in setup()
  • Removes the leisure key lookup in process_way() (no other leisure tags are used by the profile)

Functional Impact

Ways tagged with leisure=track will no longer be considered routable by the foot profile. Pedestrians will no longer be routed through race/sports tracks.

leisure=track refers to a sports/race track (athletics track, velodrome,
etc.) and is not intended as a walking path. Routing pedestrians over
this tag was incorrect per OSM tagging conventions.

Removes leisure=track from the whitelisted surface types and stops
fetching the leisure key during way processing entirely.

Closes #4312

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings May 7, 2026 18:37

This comment was marked as outdated.

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

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

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.

2 participants