Title: Brilliant Geocoder for Gravity Forms
Author: Michael Moore
Published: <strong>2017 年 2 月 8 日</strong>
Last modified: 2017 年 2 月 8 日

---

搜索插件

![](https://ps.w.org/brilliant-geocoder-gravity-forms/assets/banner-772x250.png?
rev=1607851)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/brilliant-geocoder-gravity-forms/assets/icon-256x256.png?rev
=1607851)

# Brilliant Geocoder for Gravity Forms

 作者：[Michael Moore](https://profiles.wordpress.org/stuporglue/)

[下载](https://downloads.wordpress.org/plugin/brilliant-geocoder-gravity-forms.0.0.1.zip)

 * [详情](https://cn.wordpress.org/plugins/brilliant-geocoder-gravity-forms/#description)
 * [评价](https://cn.wordpress.org/plugins/brilliant-geocoder-gravity-forms/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/brilliant-geocoder-gravity-forms/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/brilliant-geocoder-gravity-forms/#developers)

 [支持](https://wordpress.org/support/plugin/brilliant-geocoder-gravity-forms/)

## 描述

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](http://wiki.openstreetmap.org/wiki/Nominatim)

geocoder enabled by default and supports [Geocod.io](https://geocod.io/) and the
[Google Maps API](https://developers.google.com/maps/) once you’ve entered API keys
for those services.

The geocoder field can be displayed as a map, as latitude and longitude
 fields,
as the raw GeoJSON data, or hidden.

This plugin supports WP-GeoMeta, so if you create posts or users with geocoded
 
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
in API calls if you are making a large number of requests. We send the WP admin 
email address by default. You can change what is sent on the Gravity Forms settings
page, under Geocoder..

#### What is Geocoding?

[Geocoding](https://en.wikipedia.org/wiki/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
 API
support is written the same way that you would add support for another service. 
The Geocod.io example in particular has extensive comments.

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

## 屏幕截图

[⌊Brilliant Geocoder for Gravity Forms watches for changes to the form, then finds
a location based on those fields.⌉⌊Brilliant Geocoder for Gravity Forms watches 
for changes to the form, then finds a location based on those fields.⌉[

Brilliant Geocoder for Gravity Forms watches for changes to the form, then finds
a location based on those fields.

[⌊Brilliant Geocoder for Gravity Forms comes with support for three geocoders. To
use Geocod.io or Google Maps API, you will need to visit the Gravity Forms settings
and enter your API keys.⌉⌊Brilliant Geocoder for Gravity Forms comes with support
for three geocoders. To use Geocod.io or Google Maps API, you will need to visit
the Gravity Forms settings and enter your API keys.⌉[

Brilliant Geocoder for Gravity Forms comes with support for three geocoders. To 
use Geocod.io or Google Maps API, you will need to visit the Gravity Forms settings
and enter your API keys.

[⌊On individual form settings pages you can select which geocoder to use for the
current form. Only geocoders with required API key will appear in this list.⌉⌊On
individual form settings pages you can select which geocoder to use for the current
form. Only geocoders with required API key will appear in this list.⌉[

On individual form settings pages you can select which geocoder to use for the current
form. Only geocoders with required API key will appear in this list.

[⌊The fields that appear in the Geocoding Source Fields section will dependo on 
which geocoder engine you've selected on the form's settings page.  The geocoder
fields you associate with source fields will be sent to the geocoder service. In
this screenshot only a single field is needed.⌉⌊The fields that appear in the Geocoding
Source Fields section will dependo on which geocoder engine you've selected on the
form's settings page.  The geocoder fields you associate with source fields will
be sent to the geocoder service. In this screenshot only a single field is needed
.⌉[

The fields that appear in the _Geocoding Source Fields_ section will dependo on 
which geocoder engine you’ve selected on the form’s settings page. The geocoder 
fields you associate with source fields will be sent to the geocoder service. In
this screenshot only a single field is needed.

[⌊Other geocoding engines may need separate street, city and other fields to geocode
correctly.⌉⌊Other geocoding engines may need separate street, city and other fields
to geocode correctly.⌉[

Other geocoding engines may need separate street, city and other fields to geocode
correctly.

[⌊You have a lot of control over what you display to the user. The default is to
display a map which will show the geocoded location with a marker.  You can also
choose to show a GeoJSON Text area (which may only be for advanced users) or a pair
of latitude and longitude text fields.⌉⌊You have a lot of control over what you 
display to the user. The default is to display a map which will show the geocoded
location with a marker.  You can also choose to show a GeoJSON Text area (which 
may only be for advanced users) or a pair of latitude and longitude text fields.⌉[

You have a lot of control over what you display to the user. The default is to display
a map which will show the geocoded location with a marker. You can also choose to
show a GeoJSON Text area (which may only be for advanced users) or a pair of latitude
and longitude text fields.

[⌊Here's what the three inputs will look like to the user. The map is at the top,
then the GeoJSON, then the Latitude and Longitude.⌉⌊Here's what the three inputs
will look like to the user. The map is at the top, then the GeoJSON, then the Latitude
and Longitude.⌉[

Here’s what the three inputs will look like to the user. The map is at the top, 
then the GeoJSON, then the Latitude and Longitude.

[⌊Alternatively you could hide the geocoding interface from the user completely.
It will still work and submit correctly, it just won't be visible.⌉⌊Alternatively
you could hide the geocoding interface from the user completely. It will still work
and submit correctly, it just won't be visible.⌉[

Alternatively you could hide the geocoding interface from the user completely. It
will still work and submit correctly, it just won’t be visible.

[⌊Geocoded results are stored as GeoJSON but, for convenience, just the coordinates
are show on the entry listing page.⌉⌊Geocoded results are stored as GeoJSON but,
for convenience, just the coordinates are show on the entry listing page.⌉[

Geocoded results are stored as GeoJSON but, for convenience, just the coordinates
are show on the entry listing page.

[⌊On the full entry view page the map and the GeoJSON are shown.⌉⌊On the full entry
view page the map and the GeoJSON are shown.⌉[

On the full entry view page the map and the GeoJSON are shown.

[⌊When editing existing form submissions, the map, GeoJSON and latitude and longitude
fields are all interlinked. You can change any of them and the other two will update.
You can also edit the associated input fields and the geocoding will be updated 
as you would expect.⌉⌊When editing existing form submissions, the map, GeoJSON and
latitude and longitude fields are all interlinked. You can change any of them and
the other two will update. You can also edit the associated input fields and the
geocoding will be updated as you would expect.⌉[

When editing existing form submissions, the map, GeoJSON and latitude and longitude
fields are all interlinked. You can change any of them and the other two will update.
You can also edit the associated input fields and the geocoding will be updated 
as you would expect.

## 安装

Be sure that Gravity Forms 2.0.0 or higher is installed.

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

 1. Unzip and upload the plugin files to the `/wp-content/plugins/brilliant-geocoder-
    gravityforms` directory, or upload the plugin’s .zip file through the WordPress
    plugin screen directly.
 2. Activate the plugin on the ‘Plugins’ screen in WordPress.

#### Creating your first Geocoding field

 1. (Optional) Visit the Gravity Forms settings page enter a Geocod.io or Google Maps
    API key, or to change which email is sent with OSM Nominatim API calls.
 2. Create a new Gravity Form (or edit an existing one).
 3. (Optional) Visit the form settings page and select which geocoder to use. It will
    use OSM Nominatim by default.
 4. Add the input fields you want the user to fill out.
 5. Add the Geocoder field (under the Advanced Fields tab).
 6. In the Geocoder field associate the geocoder parameters with the other input fields
    on your form.
 7. Publish your form and add it to a page like you would any other Gravity Form!

and add the Geocoder field from the Advanced Fields menu. Add other input fields,
then in the Geocoder settings select which fields will be used as parameters for
the geocoding.

## 常见问题

  Where are the Terms of Service for the Geocoding Services?

 * [Google Maps API Terms of Service](https://developers.google.com/maps/terms)
    - [Geocod.io Terms of Use](https://geocod.io/terms-of-use/)
    - [OSM Nominatim Usage Policy](https://developers.google.com/maps/terms)

  What data is sent to the geocoding service when I geocode?

Whatever fields you select as a geocoding source in Gravity Forms will be sent
 
to the geocoding service. This would typically means that address details entered
into the form will be sent to the geocoding service for processing.

Your API key and/or any other parameters required by the service’s terms of service

will also be sent.

Please review the Terms of Service of the service you select for details on
 how
your submitted data is stored or used.

  How can I run spatial queries?

If you create users or posts, and set a meta value to the value of a Brilliant
 
Geocoder field, that value will be stored as spatial metadata.

Brilliant Geocoder for Gravity Forms uses WP-GeoMeta internally. For sample
 queries,
please see the [WP-GeoMeta documentation](https://github.com/cimburadotcom/wp-geometa#querying).

  Where can I get help with GIS and WordPress?

For commercial support you can contact the plugin developer at
 [Cimbura.com](https://cimbura.com/contact-us/project-request-form/)

For fast and short questions you can [contact me](https://twitter.com/stuporglue)
on twitter.

## 评价

![](https://secure.gravatar.com/avatar/b31331326848163f891c5aed0f9286851f1f4a7e061dee35ba549813f1da00d3?
s=60&d=retro&r=g)

### 󠀁[Love it](https://wordpress.org/support/topic/love-it-1672/)󠁿

 [blueprintmarketing](https://profiles.wordpress.org/blueprintmarketing/) 2017 年
3 月 26 日

great UX

 [ 阅读所有1条评价 ](https://wordpress.org/support/plugin/brilliant-geocoder-gravity-forms/reviews/)

## 贡献者及开发者

「Brilliant Geocoder for Gravity Forms」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Michael Moore ](https://profiles.wordpress.org/stuporglue/)
 *   [ luminfire ](https://profiles.wordpress.org/luminfire/)
 *   [ Cimbura.com ](https://profiles.wordpress.org/cimburacom/)

[帮助将「Brilliant Geocoder for Gravity Forms」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/brilliant-geocoder-gravity-forms)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/brilliant-geocoder-gravity-forms/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/brilliant-geocoder-gravity-forms/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/brilliant-geocoder-gravity-forms/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/brilliant-geocoder-gravity-forms/)。

## 更新日志

#### 0.0.1

 * Initial release!
 * Support for OSM Nominatim
 * Support for Google Maps API
 * Support for Geocod.io
 * Forward geocoding support
 * Admin value editing

## 额外信息

 *  版本 **0.0.1**
 *  最后更新：**9 年前**
 *  活跃安装数量 **30+**
 *  WordPress 版本 ** 4.4.1 或更高版本 **
 *  已测试的最高版本为 **4.7.33**
 *  语言
 * [English (US)](https://wordpress.org/plugins/brilliant-geocoder-gravity-forms/)
 * 标签
 * [geo](https://cn.wordpress.org/plugins/tags/geo/)[geocoding](https://cn.wordpress.org/plugins/tags/geocoding/)
   [gis](https://cn.wordpress.org/plugins/tags/gis/)[gravity forms](https://cn.wordpress.org/plugins/tags/gravity-forms/)
   [spatial](https://cn.wordpress.org/plugins/tags/spatial/)
 *  [高级视图](https://cn.wordpress.org/plugins/brilliant-geocoder-gravity-forms/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  1 条 5 星评价     ](https://wordpress.org/support/plugin/brilliant-geocoder-gravity-forms/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/brilliant-geocoder-gravity-forms/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/brilliant-geocoder-gravity-forms/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/brilliant-geocoder-gravity-forms/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/brilliant-geocoder-gravity-forms/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/brilliant-geocoder-gravity-forms/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/brilliant-geocoder-gravity-forms/reviews/)

## 贡献者

 *   [ Michael Moore ](https://profiles.wordpress.org/stuporglue/)
 *   [ luminfire ](https://profiles.wordpress.org/luminfire/)
 *   [ Cimbura.com ](https://profiles.wordpress.org/cimburacom/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/brilliant-geocoder-gravity-forms/)