Places Summarized
Places Summarized is a wrapper around Google Maps' Places API that summarizes the attributes of the locations nearby the specified coordinate.
Installation
Install Places Summarized via pip using
$ pip install places-summarized
Requirements
- A Google Maps API key.
- Python 3
Usage
This example uses a Google Maps API key.
import pprint
from places_summarized.client import Client
pp = pprint.PrettyPrinter(indent=4)
client = Client(key='your-key')
# Google Sydney offices
summary = client.places_summary(location=(-33.8670522, 151.1957362), radius=1000)
pp.pprint(summary.result())
# Print the ratings of the locations of type "point_of_interest."
# You can find the full list of types
# at: https://developers.google.com/places/web-service/supported_types
print(summary.ratings_by_type('point_of_interest'))
# Print the average price level of all the places
print(summary.average_price_level())
Or, you can test it without a key, using the TestClient.
import pprint
from places_summarized.fake_client import FakeClient
pp = pprint.PrettyPrinter(indent=4)
fclient = FakeClient()
summary = fclient.places_summary()
pp.pprint(summary.result())
Documentation
TO DO... :/ maybe you want to help?
Acknowledgements
- "Pin" icon taken from Freepik on Flaticon.
- "Barchat" icon taken from Gregor Cresnar on Flaticon.
Release files for places-summarized 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| places-summarized-0.1.1.tar.gz | 45.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| places_summarized-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size:60.2 kB
Release files / places-summarized-0.1.1.tar.gz
| Download URL | places-summarized-0.1.1.tar.gz |
|---|---|
| Size | 45.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3d45a21351275220a0da1c9861f809db3b41cb87c8a4fbbab36b9dee0ba2cffc
|
|
BLAKE2b-256 checksum How to use checksums |
b91641b1e709354594dd9e3567ad4dffb23b25c32ab2830c72c8ebaa52b6d2e6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.6.1 requests/2.23.0 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6
|
Release files / places_summarized-0.1.1-py3-none-any.whl
| Download URL | places_summarized-0.1.1-py3-none-any.whl |
|---|---|
| Size | 14.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
baa6ee8d9432dda7aa06f91d080f697a8dea3a6d52dbb9cbd0123c63df556a21
|
|
BLAKE2b-256 checksum How to use checksums |
276e04f8fd3187d29143c22bfec3dc620acbd3950b8106c0f2f94248e3ecb2ec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.6.1 requests/2.23.0 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6
|