# Dynamic geolocation functionality

**URL:** <https://forum.bubble.io/t/dynamic-geolocation-functionality/44945>\
**Category:** Need help\
**Created:** [December 18, 2018, 5:54pm UTC](https://forum.bubble.io/t/dynamic-geolocation-functionality/44945 "2018-12-18T17:54:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![edinkelmann](https://avatars.discourse-cdn.com/v4/letter/e/cab0a1/32.png) [@edinkelmann](https://forum.bubble.io/u/edinkelmann)\
**Post date:** [December 18, 2018, 5:54pm UTC](https://forum.bubble.io/t/dynamic-geolocation-functionality/44945/1 "2018-12-18T17:54:11Z")

</div>

The user should be able to search for a location listed in my database on google maps.

However I cannot get the method to work.

Insert searchBox, then I would like to select dynamic choices to only reflect locations in my database, as oppose to geographic places which will return all locations on Google maps.

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/a/a/aa173448a18b2f40864ab71b010878ddb4fdfc96.png)

When selecting dynamic choices, Bubble’s not allowing me to search for the address field specified in my database. It’s only returning text values. Is there another way to achieve my goal?

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/a/a/aa57d480ab7911367eaf45cf3df74b97e87ad09c.png)

---

<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:** [December 19, 2018, 4:50pm UTC](https://forum.bubble.io/t/dynamic-geolocation-functionality/44945/2 "2018-12-19T16:50:18Z")

</div>

In order to search based off of an address/location, your data type should use the field type of geographic address (not text).

So, if we’re looking at “Event” as the data type, it might have the following fields:

- Event\_name (field type: text)
- Event\_location (field type: geographic address)
- Event\_date (field type: date)
- Etc…

In the search box, the user should be able to type in any geographic address they want. For example,. they may type in Brooklyn, NY, but your intent is to show events within a 20 mile radius of Brooklyn by default (So, keep this set to geographic places).

Then, your data source for your **map** will be based around a “List” of events that relate to that geographic area (similar to the screenshot below)

 ![00%20AM](https://us1.discourse-cdn.com/bubble/original/3X/d/b/db1389e6c0afdd7a06ba6b60666d086f9c65e0eb.png)

* * *

Dan (creator of [LearnTo](https://learnto.app?source=forum) - 15+ hours of Bubble tutorials and [live coaching](https://dansmolkin.com/consulting))

---

<div class="post-metadata">

**Author:** ![edinkelmann](https://avatars.discourse-cdn.com/v4/letter/e/cab0a1/32.png) [@edinkelmann](https://forum.bubble.io/u/edinkelmann)\
**Post date:** [February 14, 2019, 5:04pm UTC](https://forum.bubble.io/t/dynamic-geolocation-functionality/44945/3 "2019-02-14T17:04:18Z")

</div>

Hi Dan,

Thanks that worked well!

How will you propose to include event\_date and event\_type with event\_location to reflect relevant markers on the map. The event date doesn’t have to be the exact date, it can vary by say 10 days, but event type must be exact?  
Your assistance is much appreciated!!

---

<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:** [February 15, 2019, 4:48pm UTC](https://forum.bubble.io/t/dynamic-geolocation-functionality/44945/4 "2019-02-15T16:48:20Z")

</div>

This preview of a lesson from [LearnTo](https://learnto.app) should help…

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [February 26, 2019, 5:57pm UTC](https://forum.bubble.io/t/dynamic-geolocation-functionality/44945/5 "2019-02-26T17:57:55Z")

</div>

Closed on February 26, 2019, 5:57pm UTC

This topic was automatically closed after 70 days. New replies are no longer allowed.
