Skip to main content

Extract viewports from country codes, without the need of relying on Google APIs.

Project description

Country-viewport

If you are in need of fetching viewports from countries, but do not want to use Google APIs, this package is for you.

Installation

$ pip3 install country-viewport

Usage

>>> import country_viewport
>>> country_viewport.get('CU')
{
    'min_latitude': 19.90553,
    'min_longitude': -84.28599,
    'max_latitude': 23.15917,
    'max_longitude': -74.15181,
}

License

MIT

Project details


Download files

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

Source Distribution

country_viewport-0.1.9.tar.gz (2.1 kB view hashes)

Uploaded Source

Built Distribution

country_viewport-0.1.9-py3-none-any.whl (7.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page