# Calculating distance from one point to the user's home

**URL:** <https://community.glideapps.com/t/calculating-distance-from-one-point-to-the-users-home/9541>\
**Category:** Ask for Help\
**Created:** [May 21, 2020, 1:00pm UTC](https://community.glideapps.com/t/calculating-distance-from-one-point-to-the-users-home/9541 "2020-05-21T13:00:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stephanie\_Bonnet](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/stephanie_bonnet/32/105_2.png) [@Stephanie\_Bonnet](https://community.glideapps.com/u/Stephanie_Bonnet)\
**Post date:** [May 21, 2020, 1:00pm UTC](https://community.glideapps.com/t/calculating-distance-from-one-point-to-the-users-home/9541/1 "2020-05-21T13:00:48Z")

</div>

Hi, I’m sure there must be a clever way to enable automatic distance calculation based on the coordinates in the map? My use case is the following: my app has a list of hotels. Currently in France people can only travel 100Km from their home so ideally I’d like the users to be able to enter their home address on an hotel individual card and being told how many km from their home the hotel is based on the coordinates that I have recorded for the hotel.  
Any idea how to do this? Thanks in advance

---

<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:** [May 21, 2020, 1:01pm UTC](https://community.glideapps.com/t/calculating-distance-from-one-point-to-the-users-home/9541/2 "2020-05-21T13:01:53Z")

</div>

Send me a personal message, I might be able to set it up for you based on the methods I have in this post.

> [@Concept for 5km delivery constraint & time taken to travel](https://community.glideapps.com/t/concept-for-5km-delivery-constraint-time-taken-to-travel/8946):
>
> Hi Gliders, Inspired by this posts regarding how some businesses can’t offer a delivery outside their 5km radius. I developed a solution to calculate distance between customer’s input address and the business’ fixed address. The use of postcode was proposed in some threads, but I don’t think it would have the same effect as taking the exact distance via Google. My test app link: [geocodetest.glideapp.io](http://geocodetest.glideapp.io) Demonstration video: [ezgif-1-223b6941057e] User flow: Sign in via mail, if user h…

---

<div class="post-metadata">

**Author:** ![Stephanie\_Bonnet](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/stephanie_bonnet/32/105_2.png) [@Stephanie\_Bonnet](https://community.glideapps.com/u/Stephanie_Bonnet)\
**Post date:** [May 24, 2020, 2:13pm UTC](https://community.glideapps.com/t/calculating-distance-from-one-point-to-the-users-home/9541/3 "2020-05-24T14:13:35Z")

</div>

Thanks to the fabulous @ThinhDinh, I now have this setup in the app. Highly recommend asking him for help, he’s very knowledgeable and generous with his expertise and time.

---

<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:** [May 24, 2020, 2:20pm UTC](https://community.glideapps.com/t/calculating-distance-from-one-point-to-the-users-home/9541/4 "2020-05-24T14:20:54Z")

</div>

Thanks so much Stephanie, it was an honour to help you!
