Skip to content

feature: room navigation on map #640

@mt-fns

Description

@mt-fns

Story

As a student, I want to get directions to a building/room on a map.

Acceptance Criteria

In the Map.tsx component, add navigation functionality using the mapbox API that fulfills the following use cases:

Get Directions Button Flow

  • Input: User clicks "Get Directions" button
  • If user location is already available, proceed directly to route display
  • If user location is not available, request user location permission/input
  • Output: Either show route or request location based on availability

Request User Location

  • Input: Location request (when user location not already available)
  • Success Case: User provides/allows location access
  • Output: Display user location pin on map, proceed to display route
  • Failure Case: User denies location or doesn't provide it
  • Output: Show alert "No user location"

Display route to a building

  • Input: room location (lat/long), user location (lat/long)
  • Output: display a route from the user's location to the room pin/building pin that the room is located in

Resources:

  • Work on 640-room-navigation branch for this ticket

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions