CCTV Street View fallback: own per-IP Google budget inside the cctv package boundary

This commit is contained in:
Said Turksever committed 2026-11-06 11:51:34 +00:00
1 parent 7af0453f34
commit 078a6c0db0
3 files changed
+23 -6

No files matched your search

+2 -2
View File
@@ -27,8 +27,8 @@ let _googleRateLimiter;
*/
export const GOOGLE_DEFAULT_PER_MIN = 120;
/** Google cost endpoints (nearby-places, text-search, geocoding, the CCTV Street View fallback). Null only when set to 0. */
export function googleRateLimiter() {
/** Google cost endpoints (nearby-places, text-search, geocoding). Null only when set to 0. */
function googleRateLimiter() {
if (_googleRateLimiter === undefined)
_googleRateLimiter = makeCostRateLimiter(
process.env.GEV_RATELIMIT_GOOGLE_PER_MIN,