ajshort/silverstripe-addressable
最新稳定版本:5.0.3
Composer 安装命令:
composer require ajshort/silverstripe-addressable
包简介
SilverStripe addressable and geocoding module
README 文档
README
Adds address fields to a DataObject and also has support for automatic geocoding of the provided address.
Composer Install
composer require symbiote/silverstripe-addressable:~4.0
Requirements
- SilverStripe 4.0+
Documentation
Changes from SilverStripe 3.X
GoogleGeocodingchanged class name toSymbiote\Addressable\GeocodeService- The static method
address_to_pointwas changed to a non-static method calledaddressToPoint. This allows you to use the Injector and replace GeocodeService with something else if you need to.
- The static method
Addressable::set_allowed_states(array('' => '', 'NSW' => "New South Wales"));has been deprecated in favour of config values.Addressable::set_allowed_countries(array('' => '', 'AU' => "Australia"));has been deprecated in favour of config values.Addressable::set_postcode_regex(...);has been deprecated in favour of config values.Addressable::set_postcode_regexconfig value has been deprecated in favour ofAddressable::postcode_regex- NOTE: Previously there was a hack in Addressable that read
Addressable::set_postcode_regexconfig value, then calledAddressable::set_postcode_regex()to update theprotected static postcode_regex;value in the Addressable __construct() method.
- NOTE: Previously there was a hack in Addressable that read
Credits
- Mark Taylor for adding the ability to easily embed a map with AddressMap
- Nic for writing tests for this module
- AJ Short for initially writing this module
统计信息
- 总下载量: 1.26k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 30
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2013-01-03
