Skip to content

Instantly share code, notes, and snippets.

@AlexKaravaev
Created July 29, 2019 18:02
Show Gist options
  • Save AlexKaravaev/a00ad9a810592fc0542e74ca2c824d82 to your computer and use it in GitHub Desktop.
Save AlexKaravaev/a00ad9a810592fc0542e74ca2c824d82 to your computer and use it in GitHub Desktop.
acess_token = "YOUR_ACCESS_TOKEN"
base_url = 'https://geocode.xyz/{}?json=1&auth={}'
georef = dict.fromkeys(adresses)
for adress in adresses:
search_result = requests.get(base_url.format(adress, acess_token), timeout=None).json()
pprint(search_result)
georef.update({adress: [search_result['longt'], search_result['latt']]})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment