Add reverse geocode, navigation tool, larger camera
+8
-2
@@ -17,8 +17,13 @@ Mobile-first web app for tracking physical assets via barcode scanning, OCR stic
|
||||
### GPS Button for Parking Location
|
||||
Added 📍 GPS button next to `parking_location` field in both Add Asset and Edit forms. Clicking fills current GPS coordinates into the text field. Shows toast if GPS unavailable.
|
||||
|
||||
### Camera Viewport
|
||||
Larger camera viewport for better scanning — taller aspect ratio (16/14, was 16/12) and less bottom margin (4px, was 8px).
|
||||
### Reverse Geocode — Auto-fill Address from GPS
|
||||
When creating an asset (all 3 modes: barcode, OCR, manual), the app reverse-geocodes current GPS via OpenStreetMap Nominatim (`GET /api/geocode`). Address, Building Number, and Building Name fields auto-populate. Only fills empty fields.
|
||||
|
||||
### Navigation Tool
|
||||
Tap "🧭 Navigate" on any asset detail view to draw a route line on the map from your current GPS position to the asset. Shows distance, cardinal direction, and a Google Maps link. Also accessible from map pin popups.
|
||||
|
||||
### Larger Camera Viewport
|
||||
|
||||
### Map Pins Fix
|
||||
Assets now show on the map. Check-ins auto-update the asset's `latitude`/`longitude` fields so `loadAssetPins()` can find them. Existing assets backfilled from their check-in history.
|
||||
@@ -54,6 +59,7 @@ When building_number is entered in the manual asset form or location form, it au
|
||||
| `/api/assets/search?machine_id=` | GET | Lookup by machine ID |
|
||||
| `/api/checkins` | POST/GET | GPS check-ins |
|
||||
| `/api/ocr` | POST | Extract machine_id from sticker image |
|
||||
| `/api/geocode?lat=&lng=` | GET | Reverse geocode GPS → address |
|
||||
| `/api/export/assets` | GET | CSV export |
|
||||
|
||||
## Environment
|
||||
|
||||
Reference in New Issue
Block a user