Skip to content

Latest commit

 

History

History
66 lines (42 loc) · 1.68 KB

README.md

File metadata and controls

66 lines (42 loc) · 1.68 KB

Yandex Geocoder

Get address coordinates via Yandex geocoder

test Coverage Status Code style: black Python versions PyPi

Installation

Install it via pip tool:

pip install yandex-geocoder

or Poetry:

poetry add 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

First of all you should install Poetry.

  • install project dependencies
make install
  • run linters
make lint
  • run tests
make test
  • feel free to contribute!