formatd/geoindexable

为Neos Flow项目中的地址获取地理信息的服务(使用nominatim/openstreatmap和geonames API)

安装量: 1,387

依赖: 0

建议者: 0

安全性: 0

星标: 0

关注者: 3

分支: 2

开放问题: 0

类型:neos-package

v2.0.0 2023-02-28 15:43 UTC

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'