aiogmaps
Asyncio client library for Google Maps API Web Services
Requirements
- googlemaps >= 3.0
Getting Started
pip install aiogmaps
Usage
API Key
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))
Client ID & Secret
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))
Documentation
This library works as a wrapper around official googlemaps library.
For detailed API reference
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
aiogmaps-0.0.2.tar.gz
(7.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aiogmaps-0.0.2.tar.gz.
File metadata
- Download URL: aiogmaps-0.0.2.tar.gz
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e0b1db54e97d43f211ba8b8d05edc5a121187669e58bbf9aab7bf4eb877bf3a6
|
|
| MD5 |
7e6cee977dbf0b81c3c34cf9f6d6d84a
|
|
| BLAKE2b-256 |
5b9ef62962a26fb6e3c86133cb8b3a9ec2c69a340ebc15f802a688d5333de3ed
|
File details
Details for the file aiogmaps-0.0.2-py3-none-any.whl.
File metadata
- Download URL: aiogmaps-0.0.2-py3-none-any.whl
- Upload date:
- Size: 9.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9aadd739ab865447af7d28a80cd9f6b2e0d25e4266dd574fd07901b721d514de
|
|
| MD5 |
0c0129a02fcb6b6e138bbffad532fc0f
|
|
| BLAKE2b-256 |
c1165d0dd3a2d3ce23291a6e562aee3afffd62b64a3c286623cb3d80d6de3cea
|