# \[New Feature\] Geographic search box improvements

**URL:** <https://forum.bubble.io/t/new-feature-geographic-search-box-improvements/42754>\
**Category:** Announcements\
**Created:** [November 19, 2018, 7:25pm UTC](https://forum.bubble.io/t/new-feature-geographic-search-box-improvements/42754 "2018-11-19T19:25:36Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![emmanuel](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/emmanuel/32/27657_2.png) [@emmanuel](https://forum.bubble.io/u/emmanuel)\
**Post date:** [November 19, 2018, 7:25pm UTC](https://forum.bubble.io/t/new-feature-geographic-search-box-improvements/42754/1 "2018-11-19T19:25:36Z")

</div>

Hello,

Last update for the day 🙂 We added some improvements to the Search Box element when used to find addresses. You can now define a location and a radius (in meter) to search around, which will help narrowing down the list of items that should be shown to users for more relevant results.

 ![Search%20Box](https://us1.discourse-cdn.com/bubble/original/3X/e/6/e6cbb0696484b7cd5ce3a26b6778ccdb93d61148.png)

> **[Introduction](https://manual.bubble.io/)**
>
> Welcome to the Bubble Docs.

These settings are optional, if you don’t set a location it will behave like before.

---

<div class="post-metadata">

**Author:** ![petter](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/petter/32/98626_2.png) [@petter](https://forum.bubble.io/u/petter)\
**Post date:** [November 19, 2018, 7:28pm UTC](https://forum.bubble.io/t/new-feature-geographic-search-box-improvements/42754/2 "2018-11-19T19:28:46Z")

</div>

What a day! 🙂

This is great!

---

<div class="post-metadata">

**Author:** ![JohnMark](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/johnmark/32/42431_2.png) [@JohnMark](https://forum.bubble.io/u/JohnMark)\
**Post date:** [November 19, 2018, 7:34pm UTC](https://forum.bubble.io/t/new-feature-geographic-search-box-improvements/42754/3 "2018-11-19T19:34:47Z")

</div>

I was impatient to see my orange-Gift icon this month, thanks. 😀

---

<div class="post-metadata">

**Author:** ![ryan8](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/ryan8/32/202501_2.png) [@ryan8](https://forum.bubble.io/u/ryan8)\
**Post date:** [November 19, 2018, 7:41pm UTC](https://forum.bubble.io/t/new-feature-geographic-search-box-improvements/42754/4 "2018-11-19T19:41:58Z")

</div>

That is cool!!! all though the orange gift icon is not showing in my app. uhh oh. does that mean im not getting gifts ☹

---

<div class="post-metadata">

**Author:** ![NigelG](https://avatars.discourse-cdn.com/v4/letter/n/ea5d25/32.png) [@NigelG](https://forum.bubble.io/u/NigelG)\
**Post date:** [November 19, 2018, 7:42pm UTC](https://forum.bubble.io/t/new-feature-geographic-search-box-improvements/42754/5 "2018-11-19T19:42:35Z")

</div>

The change was made a few days ago I think ?

---

<div class="post-metadata">

**Author:** ![dan1](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/dan1/32/23411_2.png) [@dan1](https://forum.bubble.io/u/dan1)\
**Post date:** [November 19, 2018, 7:42pm UTC](https://forum.bubble.io/t/new-feature-geographic-search-box-improvements/42754/6 "2018-11-19T19:42:55Z")

</div>

Thank you, thank you, thank you. I’m looking forward to implementing this soon!

---

<div class="post-metadata">

**Author:** ![ryan8](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/ryan8/32/202501_2.png) [@ryan8](https://forum.bubble.io/u/ryan8)\
**Post date:** [November 19, 2018, 7:45pm UTC](https://forum.bubble.io/t/new-feature-geographic-search-box-improvements/42754/7 "2018-11-19T19:45:09Z")

</div>

oh i must have missed it… i get so excited over that icon… more so then is healthy i think 🙂

---

<div class="post-metadata">

**Author:** ![J805](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/j805/32/41267_2.png) [@J805](https://forum.bubble.io/u/J805)\
**Post date:** [November 19, 2018, 7:45pm UTC](https://forum.bubble.io/t/new-feature-geographic-search-box-improvements/42754/8 "2018-11-19T19:45:12Z")

</div>

This is really nice. Thanks! Is there a way to use this same search input to display and choose groupings of data? That would be fantastic. 🙂

> [@\[New Feature\] Grouping and Aggregating Data](http://forum.bubble.io/t/new-feature-grouping-and-aggregating-data/27795):
>
> Hi all, We’ve heard from many of you that you’d like an efficient way of displaying your app’s data in a chart or table. For instance, maybe you’d like to be able to show a graph of new user signups by month, or show a table of total sales by region and account. We now have a tool for supporting this kind of operation. It’s called “:group by”, and you apply it on top of a search or other list of data items in order to group and summarize the list. The basic conce…

---

<div class="post-metadata">

**Author:** ![dan1](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/dan1/32/23411_2.png) [@dan1](https://forum.bubble.io/u/dan1)\
**Post date:** [November 19, 2018, 10:03pm UTC](https://forum.bubble.io/t/new-feature-geographic-search-box-improvements/42754/9 "2018-11-19T22:03:56Z")

</div>

@emmanuel - when using my own API keys, it is not returning any results. Any insights? Others encountering the same issue?

For background.

- I’ve tested multiple keys in multiple apps and in safe mode.
- The associated keys have all Maps APIs enabled.
- Have tested using Bubble v4 and v5.
- Results _are_ properly returned when I do not provide an API key (using Bubble’s defaults).

---

<div class="post-metadata">

**Author:** ![emmanuel](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/emmanuel/32/27657_2.png) [@emmanuel](https://forum.bubble.io/u/emmanuel)\
**Post date:** [November 19, 2018, 11:01pm UTC](https://forum.bubble.io/t/new-feature-geographic-search-box-improvements/42754/10 "2018-11-19T23:01:24Z")

</div>

You should make sure the API console has Google Places activated (on Google’s end)

---

<div class="post-metadata">

**Author:** ![dan1](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/dan1/32/23411_2.png) [@dan1](https://forum.bubble.io/u/dan1)\
**Post date:** [November 20, 2018, 1:39am UTC](https://forum.bubble.io/t/new-feature-geographic-search-box-improvements/42754/11 "2018-11-20T01:39:46Z")

</div>

@emmanuel - correct, I have Google Places enabled.

My Google console is showing new requests under Places API for Web when I use other maps-related components. (If you have an API key I can test against, happy to do so). Let me know if you’d like a bug report.

---

<div class="post-metadata">

**Author:** ![Jici](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jici/32/30722_2.png) [@Jici](https://forum.bubble.io/u/Jici)\
**Post date:** [November 20, 2018, 1:58am UTC](https://forum.bubble.io/t/new-feature-geographic-search-box-improvements/42754/12 "2018-11-20T01:58:27Z")

</div>

Cool and thanks!  
@dan1

I have created a topic about that in bug sections and have been in talk about this issue since two weeks now…

> [@Issue with autocomplete (search) with Geographic place](http://forum.bubble.io/t/issue-with-autocomplete-search-with-geographic-place/42770/):
>
> Bubble ask me to ask you… because they don’T know (want?) to fix this issue. I see that the search Geographic place doesn’t work the same if you set your own Google Maps API keys in setting that without it. You can experience this here: Search “Thon hotel” in this page: [http://skjema.fotobaren.no/version-test/test2](http://skjema.fotobaren.no/version-test/test2) You will see some address in Vietnam and finally no results at the end. Do the same search here: [https://buzzgame.bubbleapps.io/version-test/test](https://buzzgame.bubbleapps.io/version-test/test) you will see differents (And e…

---

<div class="post-metadata">

**Author:** ![leonidas.petrou4](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/leonidas.petrou4/32/26711_2.png) [@leonidas.petrou4](https://forum.bubble.io/u/leonidas.petrou4)\
**Post date:** [November 20, 2018, 2:22pm UTC](https://forum.bubble.io/t/new-feature-geographic-search-box-improvements/42754/13 "2018-11-20T14:22:13Z")

</div>

Hi @dan1 … I have the same situation as you and the same thing is happening to me. Try adding “formatted address” to the “Limit results around” as in the screenshot below:

![searchbox](https://us1.discourse-cdn.com/bubble/original/3X/7/6/76c1796bc7c6b73fda118fce77d92b72fd0ed5ef.png)

This solved the problem of displaying the results, but the results are not narrowed down by the set radius. So that is, even if I set my radius to 100 meters, the search box will display results in other countries.

---

<div class="post-metadata">

**Author:** ![dan1](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/dan1/32/23411_2.png) [@dan1](https://forum.bubble.io/u/dan1)\
**Post date:** [November 20, 2018, 4:34pm UTC](https://forum.bubble.io/t/new-feature-geographic-search-box-improvements/42754/14 "2018-11-20T16:34:52Z")

</div>

@leonidas.petrou4 - thanks for the suggestion. Seeing the same thing on my end. (Current geographic position’s formatted address yields results, but does not actually apply the radius). Pre-defined addresses (ex. current place’s address) does not yield results.

I’m thinking there’s still something amiss here. Eager to hear from any others if they have their own Google Maps API keys and are able to implement successfully.

@petter, @NigelG, @keith? Any luck?

---

<div class="post-metadata">

**Author:** ![keith](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/keith/32/56020_2.png) [@keith](https://forum.bubble.io/u/keith)\
**Post date:** [November 20, 2018, 4:47pm UTC](https://forum.bubble.io/t/new-feature-geographic-search-box-improvements/42754/15 "2018-11-20T16:47:38Z")

</div>

This may be similar to the recent problem with Google Timezone API. Bubble was only signing calls when using Bubble’s key. It was oddly broken when using one’s own key.

There’s some sort of bug here. @Jici built demo projects that show this in another thread. I think it’s busted at the moment and Bubble needs to look at it.

---

<div class="post-metadata">

**Author:** ![petter](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/petter/32/98626_2.png) [@petter](https://forum.bubble.io/u/petter)\
**Post date:** [November 20, 2018, 5:41pm UTC](https://forum.bubble.io/t/new-feature-geographic-search-box-improvements/42754/16 "2018-11-20T17:41:14Z")

</div>

@dan1  
Haven’t had a chance to test this with my own keys, but did a quick test with Bubble’s keys, and the geographical constraint doesn’t seem to apply. It shows results from all over the world.

---

<div class="post-metadata">

**Author:** ![george111](https://avatars.discourse-cdn.com/v4/letter/g/a9a28c/32.png) [@george111](https://forum.bubble.io/u/george111)\
**Post date:** [November 21, 2018, 12:55pm UTC](https://forum.bubble.io/t/new-feature-geographic-search-box-improvements/42754/17 "2018-11-21T12:55:13Z")

</div>

Location restriction works well for me using Bubble’s API key, but not using my own Google API key (which returns results from across the world).

Interestingly, adding “formatted address” actually _breaks_ the restriction for me (ie restriction only works without it).

---

<div class="post-metadata">

**Author:** ![neerja](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/neerja/32/29814_2.png) [@neerja](https://forum.bubble.io/u/neerja)\
**Post date:** [November 21, 2018, 9:50pm UTC](https://forum.bubble.io/t/new-feature-geographic-search-box-improvements/42754/18 "2018-11-21T21:50:05Z")

</div>

We have updated search results behavior to be more consistent with and without key.

> [@Issue with autocomplete (search) with Geographic place](http://forum.bubble.io/t/issue-with-autocomplete-search-with-geographic-place/42770/22):
>
> @Jici We have pushed a fix to make search results behavior consistent without key and with key. Since most app makers start without key and see places in search results, adding a key will continue to show place results. Previously, search results officially only supported addresses.

Regarding the radius constraints not applying in some cases, we ran multiple tests and the issue appears to be Google API overriding constraints.

---

<div class="post-metadata">

**Author:** ![george111](https://avatars.discourse-cdn.com/v4/letter/g/a9a28c/32.png) [@george111](https://forum.bubble.io/u/george111)\
**Post date:** [November 23, 2018, 3:23pm UTC](https://forum.bubble.io/t/new-feature-geographic-search-box-improvements/42754/19 "2018-11-23T15:23:05Z")

</div>

Thanks Neerja. I think there’s some problem when your users are using their own domain.

Using my own domain, it’s still not working for me (using location restriction I get autocomplete results when I **don’t** input my Google API key into Bubble, but I get no results when I **do** input it).

However, when I remove my own domain it works fine.

Any chance of a fix?

---

<div class="post-metadata">

**Author:** ![neerja](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/neerja/32/29814_2.png) [@neerja](https://forum.bubble.io/u/neerja)\
**Post date:** [November 23, 2018, 3:46pm UTC](https://forum.bubble.io/t/new-feature-geographic-search-box-improvements/42754/20 "2018-11-23T15:46:48Z")

</div>

@george111 Adding your own domain should not impact results. And with the latest fix, you should be able to see the same results with and without key. Try without a custom domain but with key and if you see results, then try with domain and check console for errors.

[Next page](https://forum.bubble.io/t/new-feature-geographic-search-box-improvements/42754.md?page=2)
