avtonom / geocoder-bundle
Geocoder Sypex-geo bundle for Symfony2 bundle for PHP
Installs: 7
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=5.3.2
- symfony/dependency-injection: ~2.3|3.*
- willdurand/geocoder-bundle: @stable
- yamilovs/sypex-geo-bundle: ~1.2
This package is not auto-updated.
Last update: 2024-12-16 15:23:41 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