Metadata-Version: 2.1
Name: aiogmaps
Version: 0.0.2
Summary: Asyncio client library for Google Maps API Web Services
Home-page: https://github.com/hzlmn/aiogmaps
Author: Oleh Kuchuk
Author-email: kuchuklehjs@gmail.com
License: MIT
Keywords: asyncio,aiohttp
Platform: UNKNOWN
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.6
Description-Content-Type: text/markdown
Requires-Dist: aiohttp (>=2.3.5)
Requires-Dist: googlemaps (>=3.0.0)

# aiogmaps
[![Build Status](https://travis-ci.org/hzlmn/aiogmaps.svg?branch=master)](https://travis-ci.org/hzlmn/aiogmaps)

Asyncio client library for Google Maps API Web Services

## Requirements

- [googlemaps](https://github.com/googlemaps/google-maps-services-python) >= 3.0


## Getting Started

```sh
pip install aiogmaps
```

## Usage

### API Key

```python
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

```python
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
- https://developers.google.com/maps/documentation/
- https://googlemaps.github.io/google-maps-services-python/docs/


