Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[User Story] View Current Location As a driver, I want to see my current location on a map in real-time so that I can track my position and navigate the area effectively. #19

Closed
5 tasks done
Tracked by #25
chriscoderdr opened this issue Oct 30, 2024 · 4 comments
Assignees
Labels
user-story User Story

Comments

@chriscoderdr
Copy link
Owner

chriscoderdr commented Oct 30, 2024

[User Story] View Current Location

Description:

As a driver, I want to see my current location on a map in real-time so that I can track my position and navigate the area effectively.

Acceptance Criteria:

  • The map displays the driver’s current location in real-time.
  • The location marker updates as the driver moves.
  • The map is accurate and shows nearby landmarks for easy navigation.

Tasks:

Backend:

  • Set up location tracking API or service for real-time updates.
  • Establish secure communication with the front-end to send real-time location data.

Mobile:

  • Integrate map view with real-time location marker.
  • Display driver’s current location accurately on the map.
  • Update location as the driver moves.

Labels:

  • User Story

Related

@chriscoderdr
Copy link
Owner Author

as Discussed in #3 we are gonna use MapBox

@chriscoderdr
Copy link
Owner Author

Cannot use Expo Go due to this library needing some native files

@chriscoderdr
Copy link
Owner Author

got into some troubles running the app in ios 18

due to this rnmapbox/maps#3640

chriscoderdr added a commit that referenced this issue Oct 30, 2024
…reen

    - Integrated Mapbox for displaying real-time user location on the map
    - Added basic Map screen with user location tracking and "Go to Location" button
    - Fixed Mapbox iOS `ViewAnnotationManager.swift` issue as per rnmapbox/maps#3640
    - Initial setup of map UI for enhanced driver navigation
@chriscoderdr
Copy link
Owner Author

After some consideration decided to update the location every minute, given that:
For general ride-sharing purposes in Morro Taxi, updating PostgreSQL every minute should be sufficient and efficient. If there's a specific need for real-time updates within the app, a hybrid approach with real-time location caching (Redis) and PostgreSQL for historical tracking could offer the best of both worlds.
in the future we may cache in redis but, at the moment, let's just stay the location every minute

chriscoderdr added a commit that referenced this issue Oct 31, 2024
chriscoderdr added a commit that referenced this issue Oct 31, 2024
…reen

- Added background task service
- Refactored source code to /app in driver app
- refactored imports to use alias @/
- basic implementation of mapbox
chriscoderdr added a commit that referenced this issue Oct 31, 2024
…reen

    - Refactor usage of mqtt into hooks
    - Refactor usage of location manager into hooks
    - miscs refactors to make the code better styled like moving the screens to a screen folder
chriscoderdr added a commit that referenced this issue Oct 31, 2024
…reen

- Refactoring to use expo router
- added no found route with links to map and signup
chriscoderdr added a commit that referenced this issue Oct 31, 2024
…ocationas-a-driver-i-want-to-see-my-current-location-on-a-map-in-real-time-so-that-i-can-track-my-position-and-navigate-the-area-effectively

feat(#19): view current location as a driver i want to see my current location on a map in real time so that i can track my position and navigate the area effectively
chriscoderdr added a commit that referenced this issue Nov 2, 2024
… location on a map in real time so that i can track my position and navigate the area effectively

- refactor docker (separate mqtt listener and api cause they don't need to be together)
- moved docker to root directory
- using docker base to reuse common code
- basic nearby drivers util
chriscoderdr added a commit that referenced this issue Nov 2, 2024
… location on a map in real time so that i can track my position and navigate the area effectively

- adding JWT auth token support (refresh token, auth token)
chriscoderdr added a commit that referenced this issue Nov 2, 2024
… location on a map in real time so that i can track my position and navigate the area effectively

     - modifying map screen ui
     - using auth token as channel name when publishing location
     - changes in store
     - test screen (token display)
chriscoderdr added a commit that referenced this issue Nov 2, 2024
…y current location on a map in real time so that i can track my position and navigate the area effectively 1 backend (#27)

* feat(#19): view current location as a driver i want to see my current location on a map in real time so that i can track my position and navigate the area effectively

- refactor docker (separate mqtt listener and api cause they don't need to be together)
- moved docker to root directory
- using docker base to reuse common code
- basic nearby drivers util

* feat(#19): view current location as a driver i want to see my current location on a map in real time so that i can track my position and navigate the area effectively
- adding JWT auth token support (refresh token, auth token)

* feat(#19): view current location as a driver i want to see my current location on a map in real time so that i can track my position and navigate the area effectively
     - modifying map screen ui
     - using auth token as channel name when publishing location
     - changes in store
     - test screen (token display)
chriscoderdr added a commit that referenced this issue Nov 10, 2024
… location on a map in real time so that i can track my position and navigate the area effectively

- refactor docker (separate mqtt listener and api cause they don't need to be together)
- moved docker to root directory
- using docker base to reuse common code
- basic nearby drivers util
chriscoderdr added a commit that referenced this issue Nov 10, 2024
… location on a map in real time so that i can track my position and navigate the area effectively

- adding JWT auth token support (refresh token, auth token)
chriscoderdr added a commit that referenced this issue Nov 10, 2024
… location on a map in real time so that i can track my position and navigate the area effectively

     - modifying map screen ui
     - using auth token as channel name when publishing location
     - changes in store
     - test screen (token display)
chriscoderdr added a commit that referenced this issue Nov 10, 2024
… location on a map in real time so that i can track my position and navigate the area effectively

- refactor docker (separate mqtt listener and api cause they don't need to be together)
- moved docker to root directory
- using docker base to reuse common code
- basic nearby drivers util
chriscoderdr added a commit that referenced this issue Nov 10, 2024
… location on a map in real time so that i can track my position and navigate the area effectively

- adding JWT auth token support (refresh token, auth token)
chriscoderdr added a commit that referenced this issue Nov 10, 2024
… location on a map in real time so that i can track my position and navigate the area effectively

     - modifying map screen ui
     - using auth token as channel name when publishing location
     - changes in store
     - test screen (token display)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
user-story User Story
Projects
None yet
Development

No branches or pull requests

1 participant