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

Nearby Places Search

描述

Nearby Places Search: This Plugin integrates with the Google Places and GMap.

Shows a list of places of a certain type and configurable from the back-end
settings within the specified radius for specified location.

Requirement

Google Maps API Key.

Shortcode

Shortcode : [nearby_places_search_code]

Usage

  1. In path (wp-admin/options-general.php?page=searchsettings) configure the search settings for
    places.

  2. You can change the type of place, the center point and the radius from the
    center point in the configuration page.

  3. Copy the shortcode [nearby_places_search_code],Paste the Shortcode into Your Page , Post or any custom post type.

Configuration Settings

  1. Location Types – Location Type is restricted to select only one value.
    See https://developers.google.com/places/documentation/supported_types
    for supported types.
    Default values set as: Atm|Bank|Hospital|Park|Restaurant|School

  2. Google API Authentication Method – ‘API Key’ or ‘Google Maps API for Work’
    As per method selection add ‘Google Maps API Key’.

  3. Location – The latitude/longitude around which to retrieve the information
    of place. This must be specified as latitude,longitude.
    Default value set to 18.5204, 73.8567 (Pune, Maharashtra, India).

  4. Radius – Defines the distance (in meters) within which to return place
    results. The maximum allowed radius is 50000 meters. Default set to 1000 meter.

Note : Default configuration value define at ‘config/nearby_places_search_config.php’

Reference link

https://developers.google.com/places/web-service/search#PlaceSearchRequests

屏幕截图

  • Admin Search Settings configuration page.
  • Frontend Search page.

安装

To Install:

  1. Download and unzip the files into a folder on your hard drive.

  2. Upload the /nearby_places_search/ folder to the /wp-content/plugins/ folder on your site.

  3. Activate this plugin from /wp-admin/plugins.php page.

  4. After activation done copy the shortcode [nearby_places_search_code],Paste the Shortcode into Your Page or Post.

常见问题

Installation Instructions

To Install:

  1. Download and unzip the files into a folder on your hard drive.

  2. Upload the /nearby_places_search/ folder to the /wp-content/plugins/ folder on your site.

  3. Activate this plugin from /wp-admin/plugins.php page.

  4. After activation done copy the shortcode [nearby_places_search_code],Paste the Shortcode into Your Page or Post.

评价

此插件暂无评价。

贡献者及开发者

“Nearby Places Search” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

将“Nearby Places Search”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志