Search field by address and others at the same time

Hello bubbles,

Currently, I have a search box that finds hotels for users by the hotel’s address, which i store in my database as geo address (as it should). e.g. if someone looks for milano and i have hotels in within the milano address, it will show all of them. That works great.

However, I also store the “city” bame and I want the search box to return searches based on the “city” field in the database as well and also based on the neighbourhood which I also store.

(the reason is sometimes the hotel is just outside the city, and I want to include that case too)

This is a bit tricky, as in in prepare around you have to pass a geo address, and each three type you have has different geo type.

Can you show the database for that type list of field you have ?

address is geo, neighbourhood is text, city is text.

You cannot combine two type of things in Bubble.io.

Can kindly tell what exactly you are trying to achieve here sir, and whats you building. I guess a map which shows all the available places around user current location or searched location right.

1 Like

For city, Can’t I just extract or transform the city text field into a geo address which is just a city

You can but it will also limit the search for that you specify as you says.

Now i think you also mention you want that one place just outside of city to show up also. Or am I wrong.

As long the city that the user searches in the box matches the text city, it’s ok. how would I do that?