|
@@ -24,6 +24,9 @@ def call_random_street_view(country_lock=None):
|
|
|
This function calls the streetview metadata endpoint - there is no quota consumed.
|
|
|
"""
|
|
|
if country_lock is None:
|
|
|
+ # TODO this is WRONG - this makes them all from one country!
|
|
|
+ # this whole logic needs to be tweaked - maybe just cache points by country?
|
|
|
+ # a world game should pick a random country N times
|
|
|
country_lock = random.choice(VALID_COUNTRIES)
|
|
|
try:
|
|
|
rsv_js = requests.post(RSV_URL, data={"country": country_lock.lower()}).json()
|