Created
July 29, 2019 18:02
-
-
Save AlexKaravaev/a00ad9a810592fc0542e74ca2c824d82 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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