Title: Address Geocoder
Author: Marty Spellerberg
Published: <strong>2012 年 5 月 16 日</strong>
Last modified: 2019 年 1 月 23 日

---

搜索插件

![](https://ps.w.org/address-geocoder/assets/banner-772x250.png?rev=1400499)

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

![](https://ps.w.org/address-geocoder/assets/icon-256x256.png?rev=1400499)

# Address Geocoder

 作者：[Marty Spellerberg](https://profiles.wordpress.org/martyspellerberg/)

[下载](https://downloads.wordpress.org/plugin/address-geocoder.zip)

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

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

## 描述

The Address Geocoder plugin lets you attach coordinates to your posts, pages, and
custom post types. On your edit screens, simply enter an address into the metabox
and hit “Geocode”.

This plugin uses Google Maps API v3 to translate an address to lat/lng coordinates.
A Google Maps API key is required.

### Fequently Asked Questions

#### How do I retrieve the coordinates?

Access your data in the loop using the following functions, with the post ID passed
as a parameter. For the full coordinates (in brackets):

    ```
    <?php echo get_geocode_latlng( $post->ID ); ?>
    ```

For the Latitude:

    ```
    <?php echo get_geocode_lat( $post->ID ); ?>
    ```

For the Longitude:

    ```
    <?php echo get_geocode_lng( $post->ID ); ?>
    ```

For the Address:

    ```
    <?php echo get_geocode_address( $post->ID ); ?>
    ```

## 屏幕截图

 * [[
 * The meta box before clicking “Geocode”
 * [[
 * The meta box after clicking “Geocode”
 * [[
 * The settings page

## 安装

 1. Activate the plugin
 2. Go to Settings > Address Geocoder to set your Google Maps API key and choose desired
    post types
 3. Done! You’ll see a “Geocoder” meta box on your edit screens.

## 评价

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

### 󠀁[Works!](https://wordpress.org/support/topic/works-1808/)󠁿

 [ndawebs](https://profiles.wordpress.org/ndawebs/) 2020 年 11 月 16 日

It is a very useful plugin to use with Facetwp and the map plugin

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

### 󠀁[excellent](https://wordpress.org/support/topic/excellent-3827/)󠁿

 [bort](https://profiles.wordpress.org/b0r7/) 2016 年 9 月 3 日

does what it says very well. awesome contribution!

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

### 󠀁[Works as advertised.](https://wordpress.org/support/topic/works-as-advertised-323/)󠁿

 [b2marketing](https://profiles.wordpress.org/b2marketing/) 2016 年 9 月 3 日

Light weight and allows us to select which post types the box should appear on. 
Great! Thanks for providing us with this plugin for free.

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

### 󠀁[Helpful Plugin](https://wordpress.org/support/topic/helpful-plugin-35/)󠁿

 [c1zone](https://profiles.wordpress.org/c1zone/) 2016 年 9 月 3 日

Before must tweak at javascript

 [ 阅读所有7条评价 ](https://wordpress.org/support/plugin/address-geocoder/reviews/)

## 贡献者及开发者

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

贡献者

 *   [ Marty Spellerberg ](https://profiles.wordpress.org/martyspellerberg/)
 *   [ Matt Gibbs ](https://profiles.wordpress.org/mgibbs189/)

「Address Geocoder」插件已被翻译至 1 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/address-geocoder/contributors)
为本插件所做的贡献。

[帮助将「Address Geocoder」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/address-geocoder)

### 对开发感兴趣吗?

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

## 更新日志

#### 1.0.1

 * Tested compatibility against WP 5.1

#### 1.0

 * Better meta box handling (props @burkeshartsis)
 * Draggable marker (props @burkeshartsis)
 * Various fixes and improvements

#### 0.9.2

 * Minor cleanup
 * Added new icon and banner to wordpress.org plugins page

#### 0.9.1

 * Tested compatibility against WP 4.4

#### 0.9

 * A Google Maps API key is now required. Go to Settings > Address Geocoder to set
   your Google Maps API key.

## 额外信息

 *  版本 **1.0.1**
 *  最后更新：**7 年前**
 *  活跃安装数量 **500+**
 *  WordPress 版本 ** 4.8 或更高版本 **
 *  已测试的最高版本为 **5.1.22**
 *  语言
 * [English (US)](https://wordpress.org/plugins/address-geocoder/) 和 [Swedish](https://sv.wordpress.org/plugins/address-geocoder/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/address-geocoder)
 * 标签
 * [coordinates](https://cn.wordpress.org/plugins/tags/coordinates/)[geocode](https://cn.wordpress.org/plugins/tags/geocode/)
   [latitude](https://cn.wordpress.org/plugins/tags/latitude/)[location](https://cn.wordpress.org/plugins/tags/location/)
   [longitude](https://cn.wordpress.org/plugins/tags/longitude/)
 *  [高级视图](https://cn.wordpress.org/plugins/address-geocoder/advanced/)

## 评级

 5 星（最高 5 星）。

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

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

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

## 贡献者

 *   [ Marty Spellerberg ](https://profiles.wordpress.org/martyspellerberg/)
 *   [ Matt Gibbs ](https://profiles.wordpress.org/mgibbs189/)

## 支持

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

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