Commit Graph

5 Commits

Author SHA1 Message Date
unknown 3d5ce0dc72 perf: skip geocoding on list endpoints, add in-memory cache
- GetAllDeviceDetails, GetDevicesWithoutConnections, GetDevicesWithoutTowers
  now pass nil geocoder to avoid Nominatim calls on list requests.
  This reduces GET /device-details response time from ~2 minutes to <1s.
- Added sync.Map cache to nominatimGeocoder so repeated calls for the
  same coordinates (e.g. GetDeviceDetailsByID) hit cache instead of
  Nominatim, preventing HTTP 429 rate limit errors.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-11 12:19:52 +07:00
unknown 36cb2bd3e5 fix: handle HTML response from Nominatim geocoding (rate limit)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-11 11:05:28 +07:00
areeqakbr f84ec65fbb Adding New Endpoint for register and user management 2025-06-19 13:10:45 +07:00
areeqakbr d5f611e390 adding more complex response and more readable also adding some feature like rbac 2025-06-11 08:24:42 +07:00
areeqakbr 90d5f4f04a adding new responses and caching for geocoding 2025-03-27 01:25:54 +07:00