=== BP Distance Search ===
Contributors:       dontdream
Tags:               buddypress, distance, location, members, search
License:            GPLv2 or later
Requires at least:  6.1
Tested up to:       6.8
Stable tag:         1.4.4

Adds a Google Place Autocomplete profile field type for BuddyPress, and enables search by distance with BP Profile Search.

== Description ==

BP Distance Search adds a new <em>Google Place Autocomplete</em> field type to your BuddyPress extended profiles, and registers this field type with <a href="https://wordpress.org/plugins/bp-profile-search/">BP Profile Search</a>.

After installing this plugin:

<ol>
<li>Admin can create new profile field(s) with type <em>Google Place Autocomplete</em></li>
<li>Members can fill in the new profile field(s) on their <em>Profile Edit</em> page</li>
<li>Admin can add the new profile field(s) to a BP Profile Search form, selecting either the <em>distance</em> search mode or one of the usual text search modes <em>contains</em>, <em>is</em>, or <em>is like</em></li>
<li>Visitors can use the search form with the new profile field(s)</li>
</ol>

See the screenshots below depicting the above steps.

== Installation ==

* Get a [Google API key](https://developers.google.com/maps/documentation/javascript/get-api-key)

Get a *Maps JavaScript API* key, and enable the *Geocoding API* and the *Places API*.

* Follow the standard plugin installation procedure, see [Installing Plugins](https://wordpress.org/documentation/article/manage-plugins/#installing-plugins-1)

This plugin doesn't require any configuration, you'll need your API key when you create your first *Google Place Autocomplete* profile field.

== Screenshots ==

1. Admin creates a new profile field with type <em>Google Place Autocomplete</em>
2. Members fill in the new profile field on their <em>Profile Edit</em> page
3. Admin adds the new profile field to a BP Profile Search form
4. Visitors use the search form with the new profile field

== Changelog ==

= 1.4.4 =
* Removed *loading=async* as it doesn't work with WordPress 6.6
= 1.4.3 =
* Fixed old bug that prevented *Loco Translate* from working properly
= 1.4.2 =
* Added *loading=async* when loading the Maps JavaScript API
= 1.4.1 =
* Added code to help users select a location from the dropdown list
= 1.4 =
* Added message reminding users to select a location from the dropdown list
= 1.3 =
* Added support for the BuddyBoss Platform built-in profile search
= 1.2 =
* Added ability to sort the search results by distance
* Added ability to show the distance in the member details area
* Updated for BP Profile Search 5.1
= 1.1 =
* Added location pin to get the current location
= 1.0.3 =
* Fixed bug in back-end profile editing
= 1.0.2 =
* Fixed conflict with the BuddyPress *Date Selector* field type
= 1.0.1 =
* Added call to *load_plugin_textdomain*
= 1.0 =
* Initial version released to the WordPress Plugin Directory
