avtonom/geocoder-bundle

Geocoder Sypex-geo bundle for Symfony2 bundle for PHP

Installs: 7

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

Type:symfony-bundle

pkg:composer/avtonom/geocoder-bundle

v1.1.1 2017-01-16 09:46 UTC

This package is not auto-updated.

Last update: 2025-10-06 19:08:04 UTC


README

Page bundle: https://github.com/Avtonom/geocoder-bundle

To Install

Run the following in your project root, assuming you have composer set up for your project

composer.phar require avtonom/geocoder-bundle ~1.1

Switching ~1.1 for the most recent tag.

Add the bundle to app/AppKernel.php

$bundles(
    ...
            new Bazinga\Bundle\GeocoderBundle\BazingaGeocoderBundle(),
            new YamilovS\SypexGeoBundle\YamilovsSypexGeoBundle(),
            new Avtonom\GeocoderBundle\AvtonomGeocoderBundle(),
    ...
);

Configuration options (config.yaml):

yamilovs_sypex_geo:
    database_path: "%kernel.root_dir%/../var/SypexGeoDatabase/SxGeoCity.dat"

bazinga_geocoder:
    providers:
        chain:
            providers: [avtonom_geocoder.geocoder.sypex_geo]

Update geo base:

php ./app/console yamilovs:sypex-geo:update-database-file
or
cd ./var/SypexGeoDatabase/
wget https://sypexgeo.net/files/SxGeoCity_utf8.zip -o  ./SxGeoCity.dat
unzip SxGeoCity_utf8.zip