Skip to main content

Asyncio client library for Google Maps API Web Services

Project description

aiogmaps

Build Status

Asyncio client library for Google Maps API Web Services

Requirements

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for aiogmaps, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size aiogmaps-0.0.2-py3-none-any.whl (9.8 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size aiogmaps-0.0.2.tar.gz (7.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page