Simple library for getting address or coordinates via Yandex geocoder
Project description
Yandex Geocoder
Get address coordinates via Yandex geocoder
Installation
Install it via pip
tool:
pip install yandex-geocoder
Usage example
Yandex Geocoder requires an API developer key, you can get it here to use this library.
from decimal import Decimal
from yandex_geocoder import Client
client = Client("your-api-key")
coordinates = client.coordinates("Москва Льва Толстого 16")
assert coordinates == (Decimal("37.587093"), Decimal("55.733969"))
address = client.address(Decimal("37.587093"), Decimal("55.733969"))
assert address == "Россия, Москва, улица Льва Толстого, 16"
Development and contribution
- install project dependencies
python setup.py develop
- install linting, formatting and testing tools
pip install -r requirements.txt
- run tests
pytest
- run linters
flake8
black --check ./
- feel free to contribute!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
yandex_geocoder-2.0.0.tar.gz
(3.2 kB
view details)
Built Distribution
File details
Details for the file yandex_geocoder-2.0.0.tar.gz
.
File metadata
- Download URL: yandex_geocoder-2.0.0.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac6c255a9977d1e88091c16fe44ed5f95c7bc587d232ca2e193221c8538ea73e |
|
MD5 | b3e58bdab72fced4fae3c9209daf97af |
|
BLAKE2b-256 | e0a0ddb886b845e168d286594adb30ffac8445223f6d1dc845a85c8e5963cb95 |
File details
Details for the file yandex_geocoder-2.0.0-py3-none-any.whl
.
File metadata
- Download URL: yandex_geocoder-2.0.0-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7410b4cc419859c5a0f9ccae21980e37ed9cd7afe405e4a04b56013fdfb171dd |
|
MD5 | 8f4fcb1785138a6569339b5f3f4b2f13 |
|
BLAKE2b-256 | d465f3b1aae67e6daead8edf88e5034e7c53a34c4586d3fc866a23eb0a19d1b9 |