Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions LOCATION_SHARING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Location Sharing Feature

## Implementation

### Backend (Go)
- Added `latitude` and `longitude` fields to Message struct
- Updated database schema to include location columns
- Modified message INSERT queries to save location data
- Updated SELECT queries to retrieve location data

### Frontend (JavaScript)
- Add button to share location
- Use HTML5 Geolocation API
- Display location as Google Maps link or map preview

### Usage
1. Click location button (📍) in chat input area
2. Browser will request permission to access location
3. Location will be sent as message with coordinates
4. Recipient can click to view on map
Loading
Loading