# Location Component logs location but...Erroring out

**URL:** <https://community.glideapps.com/t/location-component-logs-location-but-erroring-out/71867>\
**Category:** Ask for Help\
**Created:** [March 21, 2024, 1:10am UTC](https://community.glideapps.com/t/location-component-logs-location-but-erroring-out/71867 "2024-03-21T01:10:28Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![vmanda](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/vmanda/32/61562_2.png) [@vmanda](https://community.glideapps.com/u/vmanda)\
**Post date:** [March 21, 2024, 1:10am UTC](https://community.glideapps.com/t/location-component-logs-location-but-erroring-out/71867/1 "2024-03-21T01:10:28Z")

</div>

so I’m now using the Location component, it is logging my location for sure in the proper table. But then on the frontend, it displays an ERROR in red. Can’t figure out exactly _what_ went wrong.

Additionally - now I want to auto-compute the value from the coordinates to an actual address. I might use Radar or Google - but that’s the Maker license. Anyone use it so I can see if it really works?

Thank you!

---

<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:** [March 21, 2024, 1:15am UTC](https://community.glideapps.com/t/location-component-logs-location-but-erroring-out/71867/2 "2024-03-21T01:15:04Z")

</div>

> [@vmanda](#):
>
> Additionally - now I want to auto-compute the value from the coordinates to an actual address. I might use Radar or Google - but that’s the Maker license. Anyone use it so I can see if it really works?

You don’t need an integration for that. You can use the Distance to Location column.

> **[Distance | Glide Docs](https://www.glideapps.com/docs/automation/computed-columns/distance)**
>
> Calculate the distance between two locations.

And yes, it works. I use it extensively.

---

<div class="post-metadata">

**Author:** ![vmanda](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/vmanda/32/61562_2.png) [@vmanda](https://community.glideapps.com/u/vmanda)\
**Post date:** [March 21, 2024, 1:22am UTC](https://community.glideapps.com/t/location-component-logs-location-but-erroring-out/71867/3 "2024-03-21T01:22:21Z")

</div>

So yes, I was able to add a new column and it did a distance from current location and gave me 0 miles. Very good.

Then may be now my requirement needs to be clarified 🙂

so I’m trying to get the current location where the form filler is at and display the actual address where they are - so that is displayed in any reports I generate.

Am I making sense?

---

<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:** [March 21, 2024, 1:36am UTC](https://community.glideapps.com/t/location-component-logs-location-but-erroring-out/71867/4 "2024-03-21T01:36:06Z")

</div>

> [@vmanda](#):
>
> so I’m trying to get the current location where the form filler is at and display the actual address where they are - so that is displayed in any reports I generate.

That makes sense. Again, does the location component in the form not working for that use case?

---

<div class="post-metadata">

**Author:** ![vmanda](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/vmanda/32/61562_2.png) [@vmanda](https://community.glideapps.com/u/vmanda)\
**Post date:** [March 21, 2024, 1:46am UTC](https://community.glideapps.com/t/location-component-logs-location-but-erroring-out/71867/5 "2024-03-21T01:46:32Z")

</div>

Not yet… at least. Now I have the coordinates in the Location field in the table. Now I need to auto-convert that into ‘an address’ I think I do have to use the Radar or Google Maps integration.

There is probably a convoluted way though 🙂  
I have 10 locations of this ‘business’. so I could generate longitude/lattitude info for each of them, and compare them with to the captured location info and see if this submitter is near any of those location… as I said - OVER-convluted… 🙂

---

<div class="post-metadata">

**Author:** ![vmanda](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/vmanda/32/61562_2.png) [@vmanda](https://community.glideapps.com/u/vmanda)\
**Post date:** [March 21, 2024, 1:51am UTC](https://community.glideapps.com/t/location-component-logs-location-but-erroring-out/71867/6 "2024-03-21T01:51:35Z")

</div>

Additional but related question -

So I know I will move to the Maker license, but it would be solely for Radar or Google Maps integration. Will there be an additional cost for using either of those integrations? Or is that integration fully available to me with the Maker license?

---

<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:** [March 21, 2024, 1:52am UTC](https://community.glideapps.com/t/location-component-logs-location-but-erroring-out/71867/7 "2024-03-21T01:52:12Z")

</div>

> [@vmanda](#):
>
> Or is that integration fully available to me with the Maker license?

This should be the case.

> [@vmanda](#):
>
> Now I need to auto-convert that into ‘an address’ I think I do have to use the Radar or Google Maps integration.

You can just have that Radar/Google Maps part as a column pointed to your coordinates column for an input.

---

<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:** [March 21, 2024, 1:57am UTC](https://community.glideapps.com/t/location-component-logs-location-but-erroring-out/71867/8 "2024-03-21T01:57:59Z")

</div>

> [@vmanda](#):
>
> so I could generate longitude/lattitude info for each of them, and compare them with to the captured location info and see if this submitter is near any of those location… as I said - OVER-convluted…

That’s what I would do. It’s trivial, and doesn’t require using any integrations or consume any updates.

---

<div class="post-metadata">

**Author:** ![vmanda](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/vmanda/32/61562_2.png) [@vmanda](https://community.glideapps.com/u/vmanda)\
**Post date:** [March 21, 2024, 2:45am UTC](https://community.glideapps.com/t/location-component-logs-location-but-erroring-out/71867/9 "2024-03-21T02:45:09Z")

</div>

I think I will need help. I have the 10 locations addresses, and I have captured those locations’ long/latt’s . How do I compare the ‘captured’ location long/latt with these and say 'This location is closest to Location #5".

---

<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:** [March 21, 2024, 2:50am UTC](https://community.glideapps.com/t/location-component-logs-location-but-erroring-out/71867/10 "2024-03-21T02:50:31Z")

</div>

Assuming you have all 10 locations in a single table, one per row, add a Distance to Location column. You can then use a Rollup-\>Minimum to find the closest.

 ![CleanShot 2024-03-21 at 10.47.57@2x](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/f/c/fc5fd0bfa71ef857131c4326aad337c064f6f89f.png)

---

<div class="post-metadata">

**Author:** ![vmanda](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/vmanda/32/61562_2.png) [@vmanda](https://community.glideapps.com/u/vmanda)\
**Post date:** [March 21, 2024, 2:54am UTC](https://community.glideapps.com/t/location-component-logs-location-but-erroring-out/71867/11 "2024-03-21T02:54:36Z")

</div>

Thank you will try this and confirm. Thank you so much!

---

<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:** [March 21, 2024, 2:59am UTC](https://community.glideapps.com/t/location-component-logs-location-but-erroring-out/71867/12 "2024-03-21T02:59:24Z")

</div>

Just an extra point…

> [@vmanda](#):
>
> How do I compare the ‘captured’ location long/latt with these and say 'This location is closest to Location #5".

To actually identify the closest location, you will need a couple of extra columns.  
Probably the easiest is as follows:

- Add a Query column that targets the Distance column and sort it in ascending order.
- Add Single Value column to fetch the first location name from the Query column.
