mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-26 06:47:17 +10:00
Add docs for default location searches
This commit is contained in:
parent
2686726bd2
commit
2d17e6fe48
2 changed files with 17 additions and 0 deletions
|
|
@ -13,6 +13,12 @@ way to update this template, but currently, we follow a pattern:
|
|||
---
|
||||
## Upcoming version 2018-08-XX
|
||||
|
||||
* [change] Add support for default locations in the
|
||||
LocationAutocompleteInput component. Common searches can be
|
||||
configured to show when the input has focus. This reduces typing and
|
||||
Google Places geolocation API usage. The defaults can be configured
|
||||
in `src/components/LocationAutocompleteInput/GeocoderGoogleMaps.js`.
|
||||
[#894](https://github.com/sharetribe/flex-template-web/pull/894)
|
||||
* [change] Removed the `country` parameter from the search page as it
|
||||
was not used anywhere.
|
||||
[#893](https://github.com/sharetribe/flex-template-web/pull/893)
|
||||
|
|
|
|||
|
|
@ -25,3 +25,14 @@ local development, you can add the variable in the Gitignored `.env` file in the
|
|||
```
|
||||
REACT_APP_GOOGLE_MAPS_API_KEY=my-key-here
|
||||
```
|
||||
|
||||
## Setup common locations to reduce typing
|
||||
|
||||
The location autocomplete input in the landing page and the topbar can
|
||||
be configured to have specific locations shown by default when the
|
||||
user focuses on the input and hasn't yet typed in any searches. This
|
||||
reduces the typing required for common searches, and also reduces the
|
||||
need to use the Google Places geolocation API that much.
|
||||
|
||||
The default locations can be configured in
|
||||
[src/components/LocationAutocompleteInput/GeocoderGoogleMaps.js](../src/components/LocationAutocompleteInput/GeocoderGoogleMaps.js).
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue