# Location data for non-signed in users

**URL:** <https://community.glideapps.com/t/location-data-for-non-signed-in-users/74276>\
**Category:** Ask for Help\
**Tags:** data-sync\
**Created:** [June 20, 2024, 7:01pm UTC](https://community.glideapps.com/t/location-data-for-non-signed-in-users/74276 "2024-06-20T19:01:21Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lucas\_R](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/lucas_r/32/61017_2.png) [@Lucas\_R](https://community.glideapps.com/u/Lucas_R)\
**Post date:** [June 20, 2024, 7:01pm UTC](https://community.glideapps.com/t/location-data-for-non-signed-in-users/74276/1 "2024-06-20T19:01:21Z")

</div>

Hey Community!

I’m currently trying to manually set up the user location as we had it in the past version of glide app.

I’m using the location component to get the location data of my users. It works pretty well for signed in users but not for non-signed in users. Can anyone help me to understand where this data goes when my user isn’t signed in and click on activate the user location component?

Is there a way to gather this specific data?

Thanks for your help!

---

<div class="post-metadata">

**Author:** ![Eric\_Penn](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/eric_penn/32/73888_2.png) [@Eric\_Penn](https://community.glideapps.com/u/Eric_Penn)\
**Post date:** [June 20, 2024, 7:15pm UTC](https://community.glideapps.com/t/location-data-for-non-signed-in-users/74276/2 "2024-06-20T19:15:55Z")

</div>

I think you could add a one row table and put a user specific column to hold the location component.

In your layout use the one row table as its source

---

<div class="post-metadata">

**Author:** ![Lucas\_R](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/lucas_r/32/61017_2.png) [@Lucas\_R](https://community.glideapps.com/u/Lucas_R)\
**Post date:** [June 24, 2024, 11:35am UTC](https://community.glideapps.com/t/location-data-for-non-signed-in-users/74276/3 "2024-06-24T11:35:54Z")

</div>

On my map there are Restaurants location, doing that won’t allow me to have user location + Restaurants location?

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [June 24, 2024, 12:25pm UTC](https://community.glideapps.com/t/location-data-for-non-signed-in-users/74276/4 "2024-06-24T12:25:16Z")

</div>

Create a Single Value column to bring in the location from the single row table into the restaurant table. Add an extra row to the restaurant table specifically for a User. Then create an IF column to return the location from the single value column if it’s the user row, else return the restaurant location. Use the IF column as the address for your map.

---

<div class="post-metadata">

**Author:** ![Lucas\_R](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/lucas_r/32/61017_2.png) [@Lucas\_R](https://community.glideapps.com/u/Lucas_R)\
**Post date:** [June 24, 2024, 12:53pm UTC](https://community.glideapps.com/t/location-data-for-non-signed-in-users/74276/5 "2024-06-24T12:53:49Z")

</div>

Can you detail me more the process?

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [June 24, 2024, 1:11pm UTC](https://community.glideapps.com/t/location-data-for-non-signed-in-users/74276/6 "2024-06-24T13:11:30Z")

</div>

Where are you stuck? This is all assuming you followed @Eric_Penn’s direction to create a one row table to hold the user’s location in a user specific column. Have you done that yet?

---

<div class="post-metadata">

**Author:** ![Lucas\_R](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/lucas_r/32/61017_2.png) [@Lucas\_R](https://community.glideapps.com/u/Lucas_R)\
**Post date:** [June 24, 2024, 1:35pm UTC](https://community.glideapps.com/t/location-data-for-non-signed-in-users/74276/7 "2024-06-24T13:35:05Z")

</div>

I’ll try to better explain my issue.

I have one user table that contains addresses (restaurants are my users)  
I did create one table with a user specific row to hold the location  
I created a single value row to bring back the location into the user table

Now I don’t understand how to set up the IF to make it works.

On my map I need the user location AND the restaurants addresses being visible by non signed in users and signed in users when they click on “use my location”

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [June 24, 2024, 1:39pm UTC](https://community.glideapps.com/t/location-data-for-non-signed-in-users/74276/8 "2024-06-24T13:39:29Z")

</div>

> [@Lucas\_R](#):
>
> Now I don’t understand how to set up the IF to make it works.

Did you create another row in the user/restaurant table. Could be something simple like a new row with a restaurant name of “user”. Your IF column would look at that restaurant name. If restaurant name is ‘user’ then return the the single value column, else return the restaurant location column.

---

<div class="post-metadata">

**Author:** ![Lucas\_R](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/lucas_r/32/61017_2.png) [@Lucas\_R](https://community.glideapps.com/u/Lucas_R)\
**Post date:** [June 24, 2024, 1:58pm UTC](https://community.glideapps.com/t/location-data-for-non-signed-in-users/74276/10 "2024-06-24T13:58:57Z")

</div>

Ok so on the data side it seems to work.  
On the layout side, not really…

---

<div class="post-metadata">

**Author:** ![Lucas\_R](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/lucas_r/32/61017_2.png) [@Lucas\_R](https://community.glideapps.com/u/Lucas_R)\
**Post date:** [June 24, 2024, 2:05pm UTC](https://community.glideapps.com/t/location-data-for-non-signed-in-users/74276/11 "2024-06-24T14:05:09Z")

</div>

Nevermind it was because of one of my condition. Thanks a lot! I’ll try to work with it
