Symfony2 bundle for interactions with geo-coding Yandex.Maps
This version of the bundle requires Symfony 2.3+ or Symfony 3.0+.
Installation is a quick 4 step process:
- Download FruitwareYandexGeocoderBundle using composer
- Enable the Bundle
- Configure the FruitwareYandexGeocoderBundle
- Usage
Require the library in your composer.json
file:
$ composer require fruitware/yandex-geocoder-bundle
Then, add the bundle in your AppKernel
:
<?php
// app/AppKernel.php
public function registerBundles()
{
$bundles = [
// ...
new Fruitware\YandexGeocoderBundle\FruitwareYandexGeocoderBundle(),
];
}
The bundle comes with a sensible default configuration, which is listed below.
# app/config/config.yml
fruitware_yandex_geocoder:
key: ~
version: 1.x # default
lang: ru-RU # values:['ru-RU', 'uk-UA', 'be-BY', 'en-US', 'en-BR', 'tr-TR']
kind: ~ # default, values: ['house', 'street', 'metro', 'district', 'locality']
Any question or feedback? Open an issue and I will try to reply quickly.
A feature is missing here? Feel free to create a pull request to solve it!
I hope this has been useful and has helped you. If so, share it and recommend it! :)
This bundle is available under the MIT license.