You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| GET |`/api/locations`| Get all Bitcoin-accepting locations with complete details |
72
+
| GET |`/api/coordinates`| Get only coordinates of all Bitcoin-accepting locations (optimized for initial map loading) |
73
+
| GET |`/api/locations/:id`| Get complete details of a specific Bitcoin-accepting location by ID |
74
+
| GET |`/api/stats`| Get statistics about Bitcoin locations including total count, location types, and country distribution |
75
+
76
+
## 🚀 Performance Optimizations
77
+
78
+
The API has been optimized for better performance and user experience:
79
+
80
+
-**Coordinates-Only Endpoint**: The `/api/coordinates` endpoint returns only essential location data (id, type, lat, lon), reducing payload size by up to 90% compared to full location details.
81
+
-**On-Demand Location Details**: The `/api/locations/:id` endpoint allows fetching complete details only when needed (e.g., when a user clicks on a map marker).
82
+
-**Efficient Data Loading**: This two-step approach significantly improves initial map loading time, especially on slower connections or mobile devices.
83
+
-**Reduced Bandwidth Usage**: By loading only necessary data, the application uses less bandwidth and is more responsive.
0 commit comments