2017 © Pedro Peláez
 

library yandex-provider

Geocoder Yandex adapter

image

geocoder-php/yandex-provider

Geocoder Yandex adapter

  • Saturday, March 3, 2018
  • by Nyholm
  • Repository
  • 2 Watchers
  • 1 Stars
  • 4,820 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 38 % Grown

The README.md

Yandex Geocoder provider

Build Status Latest Stable Version Total Downloads Monthly Downloads Code Coverage Quality Score Software License, (*1)

This is the Yandex provider from the PHP Geocoder. This is a READ ONLY repository. See the main repo for information and documentation., (*2)

Install

composer require geocoder-php/yandex-provider

Usage

The API now requires an API key. See here for more information., (*3)

$httpClient = new \Http\Discovery\Psr18Client();
$provider = new \Geocoder\Provider\Yandex\Yandex($httpClient, null, '<your-api-key>);

$result = $geocoder->geocodeQuery(GeocodeQuery::create('ул.Ленина, 19, Минск 220030, Республика Беларусь'));
$result = $geocoder->reverseQuery(ReverseQuery::fromCoordinates(...));

Note

The default language-locale is ru-RU, you can choose between uk-UA, be-BY, en-US, en-BR and tr-TR., (*4)

It's possible to precise the toponym to get more accurate result for reverse geocoding: house, street, metro, district and locality., (*5)

Contribute

Contributions are very welcome! Send a pull request to the main repository or report any issues you find on the issue tracker., (*6)

The Versions