Title: ACF Google Maps Radius Search
Author: raiserweb
Published: <strong>16 junho, 2016</strong>
Last modified: 7 junho, 2016

---

Pesquisar plugins

Este plugin **não foi testado com os 3 lançamentos principais mais recentes do WordPress**.
Ele pode não ser mais mantido ou suportado e pode ter problemas de compatibilidade
quando usado com versões mais recentes do WordPress.

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

# ACF Google Maps Radius Search

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

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

 * [Detalhes](https://br.wordpress.org/plugins/acf-google-maps-radius-search/#description)
 * [Avaliações](https://br.wordpress.org/plugins/acf-google-maps-radius-search/#reviews)
 *  [Instalação](https://br.wordpress.org/plugins/acf-google-maps-radius-search/#installation)
 * [Desenvolvimento](https://br.wordpress.org/plugins/acf-google-maps-radius-search/#developers)

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

## Descrição

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’.

## Instalação

 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

## Perguntas frequentes

  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’.

## Avaliações

![](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 julho, 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 julho, 2018 1 resposta

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 dezembro, 2016 1 resposta

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.

 [ Leia todas as 3 avaliações ](https://wordpress.org/support/plugin/acf-google-maps-radius-search/reviews/)

## Colaboradores e desenvolvedores

“ACF Google Maps Radius Search” é um programa de código aberto. As seguintes pessoas
contribuíram para este plugin.

Colaboradores

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

[Traduzir o “ACF Google Maps Radius Search” para seu idioma.](https://translate.wordpress.org/projects/wp-plugins/acf-google-maps-radius-search)

### Interessado no desenvolvimento?

[Navegue pelo código](https://plugins.trac.wordpress.org/browser/acf-google-maps-radius-search/),
consulte o [repositório SVN](https://plugins.svn.wordpress.org/acf-google-maps-radius-search/)
ou assine o [registro de desenvolvimento](https://plugins.trac.wordpress.org/log/acf-google-maps-radius-search/)
por [RSS](https://plugins.trac.wordpress.org/log/acf-google-maps-radius-search/?limit=100&mode=stop_on_copy&format=rss).

## Registro de alterações

#### 1.0

 * first release

## Meta

 *  Versão **1.0**
 *  Última atualização **10 anos atrás**
 *  Instalações ativas **50+**
 *  Versão do WordPress ** 3.0.1 ou superior **
 *  Testado até **4.5.33**
 *  Idioma
 * [English (US)](https://wordpress.org/plugins/acf-google-maps-radius-search/)
 * Tag
 * [acf](https://br.wordpress.org/plugins/tags/acf/)
 *  [Visualização avançada](https://br.wordpress.org/plugins/acf-google-maps-radius-search/advanced/)

## Classificações

 5 de 5 estrelas.

 *  [  3 avaliações com 5 estrelas     ](https://wordpress.org/support/plugin/acf-google-maps-radius-search/reviews/?filter=5)
 *  [  0 avaliação com 4 estrela     ](https://wordpress.org/support/plugin/acf-google-maps-radius-search/reviews/?filter=4)
 *  [  0 avaliação com 3 estrela     ](https://wordpress.org/support/plugin/acf-google-maps-radius-search/reviews/?filter=3)
 *  [  0 avaliação com 2 estrela     ](https://wordpress.org/support/plugin/acf-google-maps-radius-search/reviews/?filter=2)
 *  [  0 avaliação com 1 estrela     ](https://wordpress.org/support/plugin/acf-google-maps-radius-search/reviews/?filter=1)

[Sua avaliação](https://wordpress.org/support/plugin/acf-google-maps-radius-search/reviews/#new-post)

[Ver todas avaliações](https://wordpress.org/support/plugin/acf-google-maps-radius-search/reviews/)

## Colaboradores

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

## Suporte

Tem algo a dizer? Precisa de ajuda?

 [Ver fórum de suporte](https://wordpress.org/support/plugin/acf-google-maps-radius-search/)

## Doar

Gostaria de contribuir para o desenvolvimento deste plugin?

 [ Doe para este plugin ](http://raiserweb.com)