# Advanced search for geographic position based on other attributes than radius

**URL:** <https://forum.bubble.io/t/advanced-search-for-geographic-position-based-on-other-attributes-than-radius/7980>\
**Category:** Questions\
**Created:** [November 18, 2016, 1:06pm UTC](https://forum.bubble.io/t/advanced-search-for-geographic-position-based-on-other-attributes-than-radius/7980 "2016-11-18T13:06:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Safroman](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/safroman/32/1237_2.png) [@Safroman](https://forum.bubble.io/u/Safroman)\
**Post date:** [November 18, 2016, 1:06pm UTC](https://forum.bubble.io/t/advanced-search-for-geographic-position-based-on-other-attributes-than-radius/7980/1 "2016-11-18T13:06:07Z")

</div>

Hey,

I have a list of locations with an attribute georaphic position. Now a want to select locations based on the “extract” attributes of the geographic position (not only those within a radius around another position)

![](https://us1.discourse-cdn.com/bubble/original/2X/d/dcffbbb00dd9509af73551365e0d0a70d3e69e92.png)

There is more information within the position, but how can I access it like Do a Search for Location where Location’s Geographic Position’s State is “XYZ”

![](https://us1.discourse-cdn.com/bubble/original/2X/5/5afae4a22059cd189e1fd0b5af1de7ac5134ab25.png)

I think I could save the extra information a the point of creating the location in an own field but this does not seem the best solution to me.

I Found already this topic but it does not help since he stores the field.

> [@Geographic Address](http://forum.bubble.io/t/geographic-address/473):
>
> Gentlemen, I am facing a situation and need assistance. I am trying to pass the extract of a current position country to a list of countries under a thing. unfortunately i can do that. i really need this to work to move forward. please see image attached.

Any Ideas?

---

<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 18, 2016, 4:39pm UTC](https://forum.bubble.io/t/advanced-search-for-geographic-position-based-on-other-attributes-than-radius/7980/2 "2016-11-18T16:39:21Z")

</div>

This is not an easy thing for us to add, as it touches database stuff. We’re going to look at search options at some point in the mid term, but in the meantime, you can use the filter option after the search. It’s not optimal speed wise so try to have the search as discriminant as possible to make the list pre filter as small as possible.

---

<div class="post-metadata">

**Author:** ![Safroman](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/safroman/32/1237_2.png) [@Safroman](https://forum.bubble.io/u/Safroman)\
**Post date:** [November 24, 2016, 10:53pm UTC](https://forum.bubble.io/t/advanced-search-for-geographic-position-based-on-other-attributes-than-radius/7980/3 "2016-11-24T22:53:29Z")

</div>

Thanks!  
It worked with the filtering. But I can’t see a big difference in performance.  
Here is a search example in my live version using the radius of 20 kilometers around an address in munich:  
[Radius Search](http://kigorosa.de/ausflugsziel_suche?Entfernung=20%20km&Alter=Jedes%20Alter&Preiskategorie=Preis%20ist%20egal&Adresse=M%C3%BCnchen%2C%20Deutschland&Kategorie=Alle%20Kategorien&Wetter=J&TYP=Allgemeine_Suche&Sortierung=Entfernung)

The other variant using filter after a search at the same place using the “city” attribute of a geographic position. Results are almost the same:  
[Filter Search](http://kigorosa.de/ausflugsziel_suche?TYP=City&City=M%C3%BCnchen&ZipCode=80331&CountryCode=DE&StateCode=BY)

Nevertheless it took me some time to figure it out.  
How it worked:  
Use :filtered function; constraint Advanced: This Things’s Adress :extract CountryCode (or any other Attribute) IS Your Country (I handle the Country and CountryCode via URL parameters and put it as a custom state to the page)

 ![](https://us1.discourse-cdn.com/bubble/original/2X/8/828dbcfdd0e045cdc97fd09e6e6860d1fa9c0d30.png)
