Title: WP Geoloc
Author: Nicolas Blois
Published: <strong>2016 年 1 月 26 日</strong>
Last modified: 2016 年 1 月 29 日

---

搜索插件

![](https://ps.w.org/wp-geoloc/assets/banner-772x250.png?rev=1338704)

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

![](https://ps.w.org/wp-geoloc/assets/icon-256x256.png?rev=1338704)

# WP Geoloc

 作者：[Nicolas Blois](https://profiles.wordpress.org/bloutch/)

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

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

 [支持](https://wordpress.org/support/plugin/wp-geoloc/)

## 描述

This plugin adds geolocation functionnalities to your wordpress, it allows you to
find posts around you or a location with a specific distance radius.
 You can select
a specific location with the widget or you can make a request with URL by providing
latitude, longitude and distance as GET parameters. The widget and the shortocode
consists of a Google Autocomplete and a distance range slider.

#### Widget :

Go in widget area, then place the widget in a zone.
 Have fun !

#### Shortcode :

Simply add this code where you want to place the search box : [wpgeoloc]

#### Play with URL:

For example : on an archive page, you are looking restaurants located in a 10 miles
radius from this latitude [50.8385607] and this longitude [4.37526040] :

 * http://www.example.com/category/restaurant?latitude=50.8385607&longitude=4.37526040&
   distance=10

You can do it on the search page with the keyword “super” :

 * http://www.example.com/?s=super&latitude=50.8385607&longitude=4.37526040&distance
   =10

#### Requirement :

If you want to use the widget and the Google place autocomplete, then you need a
Google Places API KEY.
 How to get a Google Places API key : * https://developers.
google.com/places/web-service/get-api-key

### Contributions

 * github : https://github.com/NicolasBlois/wp-geoloc

#### Special Features

 * URL : search with latitude, longitude, distance provided as GET parameters in
   URL.
 * Widget : the widget consists of a Google Autocomplete and a distance range slider.
 * Shortcode : the shortcode generates a Google Autocomplete and a distance range
   slider. Usage : [wpgeoloc]

### _翻译_

 * English – default, always included
 * 法语

## 安装

#### Installation instructions :

 * Upload to plugins dir
 * Activate plugin

#### Configuration instructions :

 * If you want to use the widget and the Google place autocomplete, then you need
   a Google Places API KEY. Get your Google Places API key here : https://developers.
   google.com/places/web-service/get-api-key
 * Add a location for each post you wish to geotag. A box is provided for this purpose
   in post edit mode.
 * Enjoy the geolocated requests.

## 常见问题

  How to get a Google Places API KEY?

 * Simply follow instructions here : https://developers.google.com/places/web-service/
   get-api-key

## 评价

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

### 󠀁[Great !](https://wordpress.org/support/topic/great-4365/)󠁿

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

Great plugin that does exactly what I need 🙂 Keep going !

 [ 阅读所有1条评价 ](https://wordpress.org/support/plugin/wp-geoloc/reviews/)

## 贡献者及开发者

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

贡献者

 *   [ Nicolas Blois ](https://profiles.wordpress.org/bloutch/)

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

### 对开发感兴趣吗?

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

## 更新日志

#### 1.0.2

 * standardization of code

#### 1.0.1

 * New : widget to search geolocated content.
 * New : shortcode to include the geolocated search form in any post.
 * New : translations in French
 * Fix : Prevent XSS and other attacks

#### 1.0.0

 * Initial release

## 额外信息

 *  版本 **1.0.2**
 *  最后更新：**10 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 3.8 或更高版本 **
 *  已测试的最高版本为 **4.4.34**
 *  语言
 * [English (US)](https://wordpress.org/plugins/wp-geoloc/)
 * 标签
 * [geo](https://cn.wordpress.org/plugins/tags/geo/)[geolocation](https://cn.wordpress.org/plugins/tags/geolocation/)
   [geotag](https://cn.wordpress.org/plugins/tags/geotag/)[location](https://cn.wordpress.org/plugins/tags/location/)
   [radius](https://cn.wordpress.org/plugins/tags/radius/)
 *  [高级视图](https://cn.wordpress.org/plugins/wp-geoloc/advanced/)

## 评级

 5 星（最高 5 星）。

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

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

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

## 贡献者

 *   [ Nicolas Blois ](https://profiles.wordpress.org/bloutch/)

## 支持

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

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