NAM-APJATEL-BACKEND/utils/service
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
..
geoCache_service.go Adding New Endpoint for register and user management 2025-06-19 13:10:45 +07:00
geo_service.go perf: skip geocoding on list endpoints, add in-memory cache 2026-04-11 12:19:52 +07:00