# Staff distance from customer locations

**URL:** https://community.glideapps.com/t/staff-distance-from-customer-locations/35788
**Category:** Ask for Help
**Created:** [December 10, 2021, 2:17pm UTC](https://community.glideapps.com/t/staff-distance-from-customer-locations/35788 "2021-12-10T14:17:00Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Siglide1110](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/siglide1110/32/15991_2.png) [@Siglide1110](https://community.glideapps.com/u/Siglide1110)
#### Post date: [December 10, 2021, 2:17pm UTC](https://community.glideapps.com/t/staff-distance-from-customer-locations/35788/1 "2021-12-10T14:17:01Z")

</div>

I’d like to display all employees within 3 miles distance from a customer location and display this as list on the customers page?

---

<div class="post-metadata">

### Author: ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)
#### Post date: [December 10, 2021, 3:31pm UTC](https://community.glideapps.com/t/staff-distance-from-customer-locations/35788/2 "2021-12-10T15:31:19Z")

</div>

> **[Location component](https://docs.glideapps.com/all/reference/components/pickers/location-component)**
>
> Log your current location

---

<div class="post-metadata">

### Author: ![Siglide1110](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/siglide1110/32/15991_2.png) [@Siglide1110](https://community.glideapps.com/u/Siglide1110)
#### Post date: [December 10, 2021, 3:41pm UTC](https://community.glideapps.com/t/staff-distance-from-customer-locations/35788/3 "2021-12-10T15:41:04Z")

</div>

I’m looking to compare a single address from one tab with a list of staff addresses in another to find all staff within three mile radius.

Thanks

---

<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: [December 10, 2021, 11:29pm UTC](https://community.glideapps.com/t/staff-distance-from-customer-locations/35788/4 "2021-12-10T23:29:51Z")

</div>

You should be able to select a customer, have a button action or an action before viewing the customer details that will write the customer address to a user specific column somewhere (such as the user profile row), then pull that address into the the staff table using a single value column. Then you can create a distance column that will determine the distance between the staff address and the customer address. Then just display an inline list of staff with a filter to only show those within a distance of 3 miles.

---

<div class="post-metadata">

### Author: ![Siglide1110](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/siglide1110/32/15991_2.png) [@Siglide1110](https://community.glideapps.com/u/Siglide1110)
#### Post date: [December 21, 2021, 4:56pm UTC](https://community.glideapps.com/t/staff-distance-from-customer-locations/35788/5 "2021-12-21T16:56:38Z")

</div>

Thanks, I’ll give this a try and let you know how I get on!
