From 6cf6f85d595dd85040097331b620e508fb3d2ac4 Mon Sep 17 00:00:00 2001 From: cgiturtle <132856524+cgiturtle@users.noreply.github.com> Date: Sat, 20 Apr 2024 18:13:38 +0200 Subject: [PATCH] Update rate limits Rate limits have changed as per this publication: https://developers.google.com/maps/documentation/geocoding/usage-and-billing. Verified locally --- geocoder/google.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/geocoder/google.py b/geocoder/google.py index ea8160a3..8b012e86 100755 --- a/geocoder/google.py +++ b/geocoder/google.py @@ -268,8 +268,7 @@ def rate_limited_get(self, *args, **kwargs): else: return self.rate_limited_get_for_dev(*args, **kwargs) - @ratelim.greedy(2500, 60 * 60 * 24) - @ratelim.greedy(10, 1) + @ratelim.greedy(3000, 60) def rate_limited_get_for_dev(self, *args, **kwargs): return super(GoogleQuery, self).rate_limited_get(*args, **kwargs)