# 🧭 Location Component

**URL:** https://community.glideapps.com/t/location-component/10976
**Category:** General
**Created:** [June 16, 2020, 8:49pm UTC](https://community.glideapps.com/t/location-component/10976 "2020-06-16T20:49:58Z")
**Posts on this page:** 20
**Page:** 3

<div class="post-metadata">

### Author: ![Drearystate](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/drearystate/32/49605_2.png) [@Drearystate](https://community.glideapps.com/u/Drearystate)
#### Post date: [January 6, 2021, 3:19am UTC](https://community.glideapps.com/t/location-component/10976/41 "2021-01-06T03:19:41Z")

</div>

@Jeff_Hager Jeff, sorry it took me so long to get back to you. Ok, so something like the IPSTACK API for example, you just plugin the api to your google sheets and it references your site. So for example I plug this into my google sheets and it references [rupturebrain.com](http://rupturebrain.com). That gives me all the ip addresses of everyone that is accessing my site (which in this scenario would be the site I am hosting my Glide App from). That api has commands that we all know just pulls into sheets. As soon as someone logs into my site/glide app it pulls the ip, at the same time when someone logs into the glide app I run a simple script that ties the 2 together. Last instance of each are now one. I now know who is where 🙂

---

<div class="post-metadata">

### Author: ![Drearystate](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/drearystate/32/49605_2.png) [@Drearystate](https://community.glideapps.com/u/Drearystate)
#### Post date: [January 6, 2021, 3:21am UTC](https://community.glideapps.com/t/location-component/10976/42 "2021-01-06T03:21:27Z")

</div>

But, because this may be too hard for people to do themselves I am building a way to do this directly in Glide using webview. Now at the same token some website hosting companies will provide you with those ip addresses directly in real time and you just need to tie that together. Google Analytics does not do this and they provide you with a User\_ID, it can be done in the same manner with the user id it is just a little harder.

---

<div class="post-metadata">

### Author: ![Maryth\_R](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/maryth_r/32/13091_2.png) [@Maryth\_R](https://community.glideapps.com/u/Maryth_R)
#### Post date: [February 8, 2021, 3:46am UTC](https://community.glideapps.com/t/location-component/10976/43 "2021-02-08T03:46:13Z")

</div>

Is there a way to have background location tracking (all this with the user’s permission, similar to life360)?

---

<div class="post-metadata">

### Author: ![abe.sherman](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/abe.sherman/32/11260_2.png) [@abe.sherman](https://community.glideapps.com/u/abe.sherman)
#### Post date: [February 8, 2021, 5:04am UTC](https://community.glideapps.com/t/location-component/10976/44 "2021-02-08T05:04:26Z")

</div>

Is there a way to sort your locations with near by locations?

---

<div class="post-metadata">

### Author: ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)
#### Post date: [February 8, 2021, 5:21am UTC](https://community.glideapps.com/t/location-component/10976/45 "2021-02-08T05:21:41Z")

</div>

If I understand it right Glide always have user’s location if they enable the location tracking, that’s the way they calculate the distance column.

However if devs want to use that location in a map, for example showing current location of multiple users, then the users have to write that to the Sheet using a location component.

---

<div class="post-metadata">

### Author: ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)
#### Post date: [February 8, 2021, 5:22am UTC](https://community.glideapps.com/t/location-component/10976/46 "2021-02-08T05:22:18Z")

</div>

You can use a distance column and sort by distance from lowest to highest.

---

<div class="post-metadata">

### Author: ![MonsterGo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/monstergo/32/18780_2.png) [@MonsterGo](https://community.glideapps.com/u/MonsterGo)
#### Post date: [February 8, 2021, 5:52am UTC](https://community.glideapps.com/t/location-component/10976/47 "2021-02-08T05:52:01Z")

</div>

did you know how to setup this api to glide ?

---

<div class="post-metadata">

### Author: ![abe.sherman](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/abe.sherman/32/11260_2.png) [@abe.sherman](https://community.glideapps.com/u/abe.sherman)
#### Post date: [February 9, 2021, 12:20am UTC](https://community.glideapps.com/t/location-component/10976/48 "2021-02-09T00:20:41Z")

</div>

Thank you that did it, 🙂

Question is there anyway to write that Component thing within the Map?

Like when you click on this? ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/0/9/097757edcc1618a60c7b517f35e0c13e5977daff.png) Maybe a custom pop up? Do you want to update your location for everyone?

---

<div class="post-metadata">

### Author: ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)
#### Post date: [February 9, 2021, 1:34am UTC](https://community.glideapps.com/t/location-component/10976/49 "2021-02-09T01:34:42Z")

</div>

We don’t have an action for that yet.

---

<div class="post-metadata">

### Author: ![Vanguardian\_PH](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/vanguardian_ph/32/21294_2.png) [@Vanguardian\_PH](https://community.glideapps.com/u/Vanguardian_PH)
#### Post date: [February 15, 2021, 5:31pm UTC](https://community.glideapps.com/t/location-component/10976/50 "2021-02-15T17:31:30Z")

</div>

Is there a way to make this location component required? It’s for an errand booking app I am creating and without the coordinates, a rider won’t find his customer

---

<div class="post-metadata">

### Author: ![Food2Soil](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/food2soil/32/659_2.png) [@Food2Soil](https://community.glideapps.com/u/Food2Soil)
#### Post date: [February 25, 2022, 11:10pm UTC](https://community.glideapps.com/t/location-component/10976/51 "2022-02-25T23:10:57Z")

</div>

Can you elaborate on this? How do I take the values from the distance column and sort them? I want to set up my maps to only show the three nearest locations and am not able to figure out how I can create a sort column inside the glide table.

---

<div class="post-metadata">

### Author: ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)
#### Post date: [February 25, 2022, 11:39pm UTC](https://community.glideapps.com/t/location-component/10976/52 "2022-02-25T23:39:28Z")

</div>

If you have the distance column set up already, you can just sort the inline list component ascendingly by that distance value, and limit the number of items to 3.

![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/0/d/0d073423127c58e937737952e5bc0c260facd674.png)

![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/1/8/18191e948065b78f8334c02c7fd6c2d883352d98.png)

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/7/6/7684d745b1ab6d899fffca5f145119f96cf3d2ac.png)

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/f/f/ff1ca1de8162fb868db1d971af63ec044799b7a1.png)

---

<div class="post-metadata">

### Author: ![Food2Soil](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/food2soil/32/659_2.png) [@Food2Soil](https://community.glideapps.com/u/Food2Soil)
#### Post date: [March 11, 2022, 8:33pm UTC](https://community.glideapps.com/t/location-component/10976/53 "2022-03-11T20:33:50Z")

</div>

Works perfectly. Thankyou!

---

<div class="post-metadata">

### Author: ![Igal\_Y](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/igal_y/32/56424_2.png) [@Igal\_Y](https://community.glideapps.com/u/Igal_Y)
#### Post date: [March 31, 2023, 7:51pm UTC](https://community.glideapps.com/t/location-component/10976/54 "2023-03-31T19:51:31Z")

</div>

Hi, can you please elaborate or share your script to force the toggle button of the location component to always be ON ? Thanks

---

<div class="post-metadata">

### Author: ![Drearystate](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/drearystate/32/49605_2.png) [@Drearystate](https://community.glideapps.com/u/Drearystate)
#### Post date: [March 31, 2023, 10:12pm UTC](https://community.glideapps.com/t/location-component/10976/55 "2023-03-31T22:12:37Z")

</div>

I’m sorry. I no longer use Glide’s platform. I actually built my own platform that does the things that Glide does not.

---

<div class="post-metadata">

### Author: ![Manikandan\_R](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/manikandan_r/32/43482_2.png) [@Manikandan\_R](https://community.glideapps.com/u/Manikandan_R)
#### Post date: [April 1, 2023, 5:17am UTC](https://community.glideapps.com/t/location-component/10976/56 "2023-04-01T05:17:35Z")

</div>

Which one [nullkode.io?whether](http://nullkode.io?whether) it is working?

---

<div class="post-metadata">

### Author: ![Drearystate](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/drearystate/32/49605_2.png) [@Drearystate](https://community.glideapps.com/u/Drearystate)
#### Post date: [April 1, 2023, 7:08pm UTC](https://community.glideapps.com/t/location-component/10976/57 "2023-04-01T19:08:07Z")

</div>

[nullkode.in](http://nullkode.in)

---

<div class="post-metadata">

### Author: ![Drearystate](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/drearystate/32/49605_2.png) [@Drearystate](https://community.glideapps.com/u/Drearystate)
#### Post date: [April 1, 2023, 7:08pm UTC](https://community.glideapps.com/t/location-component/10976/58 "2023-04-01T19:08:26Z")

</div>

the .io was a landing page i never updated

---

<div class="post-metadata">

### Author: ![Drearystate](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/drearystate/32/49605_2.png) [@Drearystate](https://community.glideapps.com/u/Drearystate)
#### Post date: [April 1, 2023, 7:10pm UTC](https://community.glideapps.com/t/location-component/10976/59 "2023-04-01T19:10:25Z")

</div>

There is going to be a huge update soon. Once I roll it out you will be editing each page individually, right now with all the pages viewable at once it can get a little laggy.

---

<div class="post-metadata">

### Author: ![Manikandan\_R](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/manikandan_r/32/43482_2.png) [@Manikandan\_R](https://community.glideapps.com/u/Manikandan_R)
#### Post date: [April 3, 2023, 12:22pm UTC](https://community.glideapps.com/t/location-component/10976/60 "2023-04-03T12:22:52Z")

</div>

Hi

Create a free plan in your nocode. without using what you are created,asking us to and use is not a good thing to start with.

Allow people to create and they decide whether it is ok to go or not.

[Previous page](https://community.glideapps.com/t/location-component/10976.md?page=2)

[Next page](https://community.glideapps.com/t/location-component/10976.md?page=4)
