Asyncio client library for Google Maps API Web Services
- googlemaps >= 3.0
pip install aiogmaps
import asyncio
from aiogmaps import Client
async def main(loop):
api_key = 'xxx'
async with Client(api_key, loop=loop) as client:
resp = await client.place(place_id='ChIJN1t_tDeuEmsRUsoyG83frY4')
print(resp)
if __name__ == '__main__':
loop = asyncio.get_event_loop()
loop.run_until_complete(main(loop))
import asyncio
from aiogmaps import Client
async def main(loop):
client_id = 'xxx'
client_secret = 'xxx'
async with Client(client_id=client_id, client_secret=client_secret, loop=loop) as client:
resp = await client.place(place_id='ChIJN1t_tDeuEmsRUsoyG83frY4')
print(resp)
if __name__ == '__main__':
loop = asyncio.get_event_loop()
loop.run_until_complete(main(loop))
This library works as a wrapper around official googlemaps library.
For detailed API reference