avtonom/geocoder-bundle
Composer 安装命令:
composer require avtonom/geocoder-bundle
包简介
Geocoder Sypex-geo bundle for Symfony2 bundle for PHP
README 文档
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
统计信息
- 总下载量: 7
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 5
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-01-16