Title: ACF Google Maps Radius Search
Author: raiserweb
Published: <strong>16.6.2016</strong>
Last modified: 7.6.2016

---

Hae lisäosia

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://s.w.org/plugins/geopattern-icon/acf-google-maps-radius-search.svg)

# ACF Google Maps Radius Search

 [raiserweb](https://profiles.wordpress.org/raiserweb/)

[Lataa](https://downloads.wordpress.org/plugin/acf-google-maps-radius-search.zip)

 * [Tiedot](https://fi.wordpress.org/plugins/acf-google-maps-radius-search/#description)
 * [Arvostelut](https://fi.wordpress.org/plugins/acf-google-maps-radius-search/#reviews)
 *  [Asennus](https://fi.wordpress.org/plugins/acf-google-maps-radius-search/#installation)
 * [Kehitys](https://fi.wordpress.org/plugins/acf-google-maps-radius-search/#developers)

 [Tuki](https://wordpress.org/support/plugin/acf-google-maps-radius-search/)

## Kuvaus

This plug-in allows search results to be ordered by distance from a specified location.

The plugin only works when the posts have been given an address via the Advanced
Custom Field Type ’Google Map’, and the search results page url contains longitude(’
lng’) and latitude (’lat’) $_GET variables.
 More technical information is contained
in the FAQ section.

This plugin is made to help developers create a radius search result, in conjungtion
with Advanced Custom Field Type ’Google Map’.

Note – this plugin works in conjunction with the Advanced Custom Field Type ’Google
Map’.

## Asennus

 1. Upload this plugin to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ’Plugins’ menu in WordPress
 3. Manage competition forms, see and export entries, and select winners via the Competitions
    menu

## UKK

  What is this plugin for?

This plugin is for when you are using the Advanced Custom Fields Type ’Google Map’
on posts, and you wish to display a distance ordered search results page on your
site.

  Why do I need this plugin?

Unfortunately, the Advanced Custom Fields Type ’Google Map’ does not make it easy
to query posts based on a radius distance search. This plugin makes this possible.

  How do I use this plugin?

To use this plugin, first install the plugin as normal. The plugin will then work
whenever you add ’lng’ and ’lat’ variables into a search results page url. For example:
example.com/search/?lng=51.023232&lat=12.232323

  How do I add lng and lat values to the search page URL?

The best way to do this, is to use the Google Places Autocomplete API to allow users
to select a location in your search form. Upon selecting a location, you will be
able to access the lng and lat values provided by Google. These can then be populated
into the search result URL.

  Anything else I should know?

Yes, your Advanced Custom Field Type ’Google Map’ will need to be named ’address’.

## Arvostelut

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

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

 [mrank](https://profiles.wordpress.org/mrank/) 30.7.2020

Works perfectly and can be used to create a radius based sorting function with custom
post types. Thank you very much for this!!

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

### 󠀁[It works.](https://wordpress.org/support/topic/ti-works/)󠁿

 [valerio_cas](https://profiles.wordpress.org/valerio_cas/) 30.7.2018 1 reply

Plugin does what it says on the box. This is obviously aimed at developers. You'll
need to add your own code to add the other search fields and to get the location
you are searching from.

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

### 󠀁[Example Code Please](https://wordpress.org/support/topic/example-code-please-2/)󠁿

 [russell44](https://profiles.wordpress.org/russell44/) 21.12.2016 1 reply

Could you post example code of using this plugin. I've created the query string 
with the lat and lng variables, and I'm using the address acf field, but I don't
see how I'm suppose to get the list of locations sorted by their distance. Thanks.

 [ Lue kaikki 3 arvostelua. ](https://wordpress.org/support/plugin/acf-google-maps-radius-search/reviews/)

## Avustajat & Kehittäjät

“ACF Google Maps Radius Search” perustuu avoimeen lähdekoodiin. Seuraavat henkilöt
ovat osallistuneet tämän lisäosan kehittämiseen.

Avustajat

 *   [ raiserweb ](https://profiles.wordpress.org/raiserweb/)

[Käännä “ACF Google Maps Radius Search” omalle kielellesi.](https://translate.wordpress.org/projects/wp-plugins/acf-google-maps-radius-search)

### Oletko kiinnostunut kehitystyöstä?

[Browse the code](https://plugins.trac.wordpress.org/browser/acf-google-maps-radius-search/),
check out the [SVN repository](https://plugins.svn.wordpress.org/acf-google-maps-radius-search/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/acf-google-maps-radius-search/)
by [RSS](https://plugins.trac.wordpress.org/log/acf-google-maps-radius-search/?limit=100&mode=stop_on_copy&format=rss).

## Muutosloki

#### 1.0

 * first release

## Metatiedot

 *  Version **1.0**
 *  Last updated **10 vuotta sitten**
 *  Active installations **40+**
 *  WordPress version ** 3.0.1 or higher **
 *  Tested up to **4.5.33**
 *  Language
 * [English (US)](https://wordpress.org/plugins/acf-google-maps-radius-search/)
 * Tag
 * [acf](https://fi.wordpress.org/plugins/tags/acf/)
 *  [Edistynyt näkymä](https://fi.wordpress.org/plugins/acf-google-maps-radius-search/advanced/)

## Arvosanat

 5 out of 5 stars.

 *  [  3 5-star reviews     ](https://wordpress.org/support/plugin/acf-google-maps-radius-search/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/acf-google-maps-radius-search/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/acf-google-maps-radius-search/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/acf-google-maps-radius-search/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/acf-google-maps-radius-search/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/acf-google-maps-radius-search/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/acf-google-maps-radius-search/reviews/)

## Avustajat

 *   [ raiserweb ](https://profiles.wordpress.org/raiserweb/)

## Tuki

Onko sinulla jotain sanottavaa? Tarvitsetko apua?

 [Tukifoorumi](https://wordpress.org/support/plugin/acf-google-maps-radius-search/)

## Lahjoita

Haluatko tukea tämän lisäosan kehitystä?

 [ Tue tämän lisäosan tekijöitä ](http://raiserweb.com)