formatd / geoindexable
为Neos Flow项目中的地址获取地理信息的服务(使用nominatim/openstreatmap和geonames API)
v2.0.0
2023-02-28 15:43 UTC
Requires
- flowpack/elasticsearch: >=2.0
- neos/flow: ^5.0 || ^6.0 || ^7.0 || ^8.0
Suggests
- neos/neos: This Package provides a GeoIndexable Mixin for Neos (NOT YET BUT SOON)
This package is auto-updated.
Last update: 2024-09-28 19:04:20 UTC
README
为Neos Flow项目中的地址获取地理信息的服务。默认情况下,它使用nominatim/openstreatmap和geonames API,但也可以使用Google API。
它做什么?
此包提供了一种地理索引地址的服务类。还提供了一个可在领域模型中使用的php特性。此特性可用于创建当地址更改时自动获取地理位置的领域模型。
兼容性
版本控制方案
1.0.0
| | |
| | Bugfix Releases (non breaking)
| Neos Compatibility Releases (non breaking except framework dependencies)
Feature Releases (breaking)
发布与兼容性
配置
提供geonames用户名(您必须在geonames网站上创建)或禁用geonames API
FormatD:
GeoIndexable:
services:
geonames:
enabled: true
options:
username: ''
如果您想使用Google API,您必须提供您的API密钥
FormatD:
GeoIndexable:
services:
google:
enabled: false
options:
apiKey: 'ichbineinapikey'