fix(map): rate limit station reverse geocoding

This commit is contained in:
lingniu
2026-08-12 12:04:39 +08:00
parent 4c547757a7
commit 5b565d57fc
3 changed files with 13 additions and 1 deletions
+2
View File
@@ -10,3 +10,5 @@ AMAP_REGEOCODE_KEY=replace-with-amap-web-service-key
# 行政区结果按坐标落盘缓存 7 天,避免每次刷新重复调用高德。
STATION_GEOCODE_CACHE_SECONDS=604800
STATION_GEOCODE_CACHE_PATH=/opt/lingniu-vehicle-map/cache/station-geocode.json
# 高德 Web 服务常见 QPS 配额较低;全局限速以避免冷缓存时触发 10021。
AMAP_REGEOCODE_MIN_INTERVAL_SECONDS=0.25