# Is there a way to set maps to a 10km radius of where user is located when it opens?

**URL:** <https://community.glideapps.com/t/is-there-a-way-to-set-maps-to-a-10km-radius-of-where-user-is-located-when-it-opens/46648>\
**Category:** Ask for Help\
**Created:** [August 13, 2022, 7:23am UTC](https://community.glideapps.com/t/is-there-a-way-to-set-maps-to-a-10km-radius-of-where-user-is-located-when-it-opens/46648 "2022-08-13T07:23:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amelia\_Barry](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/amelia_barry/32/15368_2.png) [@Amelia\_Barry](https://community.glideapps.com/u/Amelia_Barry)\
**Post date:** [August 13, 2022, 7:23am UTC](https://community.glideapps.com/t/is-there-a-way-to-set-maps-to-a-10km-radius-of-where-user-is-located-when-it-opens/46648/1 "2022-08-13T07:23:04Z")

</div>

When a user opens a map is it possible for them to see a 10km radius of where they are rather than the full map?

---

<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:** [August 13, 2022, 1:42pm UTC](https://community.glideapps.com/t/is-there-a-way-to-set-maps-to-a-10km-radius-of-where-user-is-located-when-it-opens/46648/2 "2022-08-13T13:42:56Z")

</div>

If you add a distance column, you can get the distance from the user to each location. Then you can filter your map to show anything less than or equal to 10 km.

---

<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:** [August 14, 2022, 12:22am UTC](https://community.glideapps.com/t/is-there-a-way-to-set-maps-to-a-10km-radius-of-where-user-is-located-when-it-opens/46648/3 "2022-08-14T00:22:53Z")

</div>

Also note that you should have a plan B for this. If the user does not allow the app to read their location, you’ll be left with empty distances for all rows. I don’t know if Glide considers empty as “less than 10”, but something worth considering.

Or, you can add an if-then-else column to cover it. If the distance column is not empty, return the distance column, else return 0. Have the filter on the if-then-else column.
