Skip to content

[Engine.Map] routing v1#22

Merged
ClarkLiam merged 2 commits intomainfrom
map
Jan 21, 2026
Merged

[Engine.Map] routing v1#22
ClarkLiam merged 2 commits intomainfrom
map

Conversation

@ClarkLiam
Copy link
Owner

Integrated Leaflet Routing Machine (OSRM) to visualize routes from the firehouse to each active alarm location on the map, excluding alarms at the firehouse itself. Updated dependencies in monitor.html and added route management logic in map.js, including route clearing and creation functions, solving issue #19 and creating more possibilities for future expansion with vehicle tracking

Integrated Leaflet Routing Machine (OSRM) to visualize routes from the firehouse to each active alarm location on the map, excluding alarms at the firehouse itself. Updated dependencies in monitor.html and added route management logic in map.js, including route clearing and creation functions.
@ClarkLiam ClarkLiam added the enhancement New feature or request label Jan 21, 2026
Copilot AI review requested due to automatic review settings January 21, 2026 14:18
Copy link
Owner Author

@ClarkLiam ClarkLiam left a comment

Choose a reason for hiding this comment

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

no extra lines, clean extension

Copy link
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 integrates Leaflet Routing Machine (OSRM) to display routes from the firehouse to active alarm locations on the map, addressing issue #19. The implementation adds visual route lines showing the fastest path to each alarm, excluding routes to alarms at the firehouse itself.

Changes:

  • Added Leaflet Routing Machine library dependency (version 3.2.12) for route visualization
  • Implemented route creation and clearing logic for active alarms
  • Integrated routing with existing marker update flow to show routes from firehouse to alarm locations

Reviewed changes

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

File Description
monitor.html Added CSS and JavaScript dependencies for Leaflet Routing Machine library
src/js/map.js Added route management functions (createRoute, clearRoutes) and integrated routing into the alarm marker update workflow

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@ClarkLiam ClarkLiam merged commit 4f0507f into main Jan 21, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant