[wordpress插件] Brilliant Geocoder for Gravity Forms重力形式的出色地理编码器

wordpress 插件 文章 2020-03-11 15:50 424 0 全屏看文

AI助手支持GPT4.0

评分
100
描述

Brilliant Geocoder for Gravity Forms is a powerful and flexible geocoder field

引力表单的出色地理编码器是一个强大而灵活的地理编码器领域

for Gravity Forms.

重力形式。

The Geocoder field is easily be configured to capture geocoder

地理编码器字段可以轻松配置为捕获地理编码器

input values from other form fields.

从其他表单字段输入值。

It comes with the OSM Nominatim

它带有 OSM命名法

geocoder enabled by default and supports Geocod.io

地理编码器默认启用,并支持 Geocod.io

and the Google Maps API once you’ve entered

输入
Google Maps API

API keys for those services.

这些服务的API密钥。

The geocoder field can be displayed as a map, as latitude and longitude

地理编码器字段可以显示为地图,也可以显示为纬度和经度

fields, as the raw GeoJSON data, or hidden.

字段,作为原始GeoJSON数据,或隐藏。

This plugin supports WP-GeoMeta, so if you create posts or users with geocoded

此插件支持WP-GeoMeta,因此,如果您使用地理编码创建帖子或用户,

data, their location will be stored as spatial metadata.

数据,它们的位置将存储为空间元数据。

NOTICE: This plugin uses 3rd party services to provide geocoding results.

注意此插件使用第三方服务提供地理编码结果。

The default geocoder, OSM Nominatim, requests that you include your email address

默认地理编码器OSM Nominatim要求您提供您的电子邮件地址

in API calls if you are making a large number of requests.

如果您发出大量请求,请在API调用中使用。

We send the WP admin

我们发送WP管理员

email address by default.

默认情况下的电子邮件地址。

You can change what is sent on the Gravity Forms settings

您可以更改“重力形式”设置上发送的内容

page, under Geocoder..

页面,位于 Geocoder 下。.

What is Geocoding?

什么是地理编码?

Geocoding is the process of turning

地理编码是转向的过程

text (an address) into coordinates (latitude and longitude).

将文本(地址)转换为坐标(纬度和经度)。

With coordinates

有座标

you can display data on a map and do location based searching.

您可以在地图上显示数据并进行基于位置的搜索。

Support for Other Geocoders

对其他地理编码器的支持

Brilliant Geocoders for Gravity Forms includes hooks so that you can add

用于重力表的出色地理编码器包括钩子,以便您可以添加

support for other geocoding services.

支持其他地理编码服务。

OSM Nominatim support is built into the plugin, but Geocod.io and Google Maps

该插件内置了对OSM Nominatim的支持,但是Geocod.io和Google Maps

API support is written the same way that you would add support for another

API支持的编写方式与添加对另一种支持的方式相同

service.

服务。

The Geocod.io example in particular has extensive comments.

尤其在Geocod.io示例中有大量注释。

Please see geocoders/geocodio.php and geocoders/geocodio.js for details.

有关详细信息,请参见geocoders / geocodio.php和geocoders / geocodio.js。

安装步骤

Be sure that Gravity Forms 2.0.0 or higher is installed.

确保已安装Gravity Forms 2.0.0或更高版本。

With Gravity Forms installed, you can install this plugin in the usual WordPress way.

在安装了Gravity Forms的情况下,您可以使用通常的WordPress方式安装此插件。

    1. Unzip and upload the plugin files to the /wp-content/plugins/brilliant-geocoder-gravityforms directory,

    2. 解压缩插件文件并将其上传到 / wp-content / plugins / brilliant-geocoder-gravityforms 目录,

      or upload the plugin’s .zip file through the WordPress plugin screen directly.

    3. 或直接通过WordPress插件屏幕上传插件的.zip文件。

    4. Activate the plugin on the ‘Plugins’ screen in WordPress.
    5. 在WordPress的“插件”屏幕上激活插件。

    Creating your first Geocoding field

    创建您的第一个地理编码字段

      1. (Optional) Visit the Gravity Forms settings page enter a Geocod.io or

      2. (可选)访问“重力形式”设置页面,输入Geocod.io或

        Google Maps API key, or to change which email is sent with OSM Nominatim API calls.

      3. Google Maps API密钥,或更改通过OSM Nominatim API调用发送的电子邮件。

      4. Create a new Gravity Form (or edit an existing one).
      5. 创建新的重力窗体(或编辑现有的重力窗体)。

      6. (Optional) Visit the form settings page and select which geocoder to use.

      7. (可选)访问表单设置页面,然后选择要使用的地理编码器。

        It will use OSM Nominatim by default.

      8. 默认情况下,它将使用OSM Nominatim。

      9. Add the input fields you want the user to fill out.
      10. 添加您要用户填写的输入字段。

      11. Add the Geocoder field (under the Advanced Fields tab).
      12. 添加“地理编码器”字段(在“高级字段”标签下)。

      13. In the Geocoder field associate the geocoder parameters with the other input

      14. 在Geocoder字段中,将Geocoder参数与其他输入相关联

        fields on your form.

        表单上的字段。

      15. Publish your form and add it to a page like you would any other Gravity

      16. 发布您的表单并将其添加到页面中,就像其他任何Gravity一样

        Form!

      17. 表格!

      and add the Geocoder field from the Advanced Fields

      并从“高级字段”中添加Geocoder字段

      menu.

      菜单。

      Add other input fields, then in the Geocoder settings select which

      添加其他输入字段,然后在Geocoder设置中选择哪个

      fields will be used as parameters for the geocoding.

      字段将用作地理编码的参数。

下载地址
https://downloads.wordpress.org/plugin/brilliant-geocoder-gravity-forms.0.0.1.zip
-EOF-

AI助手支持GPT4.0