fruitware/yandex-geocoder-bundle

Symfony2 bundle for interactions with geo-coding Yandex.Maps

1.0 2016-10-12 19:22 UTC

This package is auto-updated.

Last update: 2024-11-15 22:29:59 UTC


README

Build Status Scrutinizer Code Quality Code Coverage Dependency Status

Latest Stable Version Latest Unstable Version Total Downloads License

Symfony2 bundle for interactions with geo-coding Yandex.Maps

Prerequisites

This version of the bundle requires Symfony 2.3+ or Symfony 3.0+.

Installation

Installation is a quick 4 step process:

  1. Download FruitwareYandexGeocoderBundle using composer
  2. Enable the Bundle
  3. Configure the FruitwareYandexGeocoderBundle
  4. Usage

Step 1: Download the bundle

Require the library in your composer.json file:

$ composer require fruitware/yandex-geocoder-bundle

Step 2: Register the bundle

Then, add the bundle in your AppKernel:

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = [
        // ...
        new Fruitware\YandexGeocoderBundle\FruitwareYandexGeocoderBundle(),
    ];
}

Step 3: Configure the 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']

Contribution

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! :)

License

This bundle is available under the MIT license.