pip install python-simple-google-maps==0.0.2
python3
urllib3
from simple_google_maps import get_google_map_url
data = {
'address': 'Auckland',
'sizes': (1200, 800),
'GOOGLE_MAPS_API_KEY': 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
'GOOGLE_MAPS_SECRET_KEY': 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
}
get_google_map_url(**data)
# 'https://maps.googleapis.com/maps/api/staticmap?center=Auckland&markers=color:red|Auckland&size=1200x800&key=AIzaSyAofozPey7CK3iThCxs0-1bdTdVly1QBGw&signature=29Sb4lQDjByRSIaAmkqYp4njHWk='Enjoy :)