# I want to be able to use my location URL to generate address

**URL:** https://community.glideapps.com/t/i-want-to-be-able-to-use-my-location-url-to-generate-address/74345
**Category:** Ask for Help
**Created:** [June 24, 2024, 10:13am UTC](https://community.glideapps.com/t/i-want-to-be-able-to-use-my-location-url-to-generate-address/74345 "2024-06-24T10:13:59Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Okoh\_Peter](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/okoh_peter/32/71171_2.png) [@Okoh\_Peter](https://community.glideapps.com/u/Okoh_Peter)
#### Post date: [June 24, 2024, 10:13am UTC](https://community.glideapps.com/t/i-want-to-be-able-to-use-my-location-url-to-generate-address/74345/1 "2024-06-24T10:13:59Z")

</div>

I am having an issue. I want to be able to use my location URL generated from GPS coordinates to create an address. I want to check the address generated via GPS coordinates.

---

<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: [June 24, 2024, 1:33pm UTC](https://community.glideapps.com/t/i-want-to-be-able-to-use-my-location-url-to-generate-address/74345/2 "2024-06-24T13:33:30Z")

</div>

What do you mean by your location URL? How are you generating it?

---

<div class="post-metadata">

### Author: ![Okoh\_Peter](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/okoh_peter/32/71171_2.png) [@Okoh\_Peter](https://community.glideapps.com/u/Okoh_Peter)
#### Post date: [June 24, 2024, 4:18pm UTC](https://community.glideapps.com/t/i-want-to-be-able-to-use-my-location-url-to-generate-address/74345/3 "2024-06-24T16:18:43Z")

</div>

it is generated via my GPS Coordinate  
 ![Capture](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/3/6/364c886af82e6374eebfb21fb029688b37ce2bbf.png)  
rdinates

---

<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: [June 24, 2024, 11:50pm UTC](https://community.glideapps.com/t/i-want-to-be-able-to-use-my-location-url-to-generate-address/74345/4 "2024-06-24T23:50:45Z")

</div>

The standard structure is:

```auto
https://www.google.com/maps?q=lat,lon

```

You should have your Construct URL column like this:

```auto
https
www.google.com
maps

```

Query parameters: q =\> gps\_coordinates

---

<div class="post-metadata">

### Author: ![Himaladin](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/himaladin/32/71023_2.png) [@Himaladin](https://community.glideapps.com/u/Himaladin)
#### Post date: [June 25, 2024, 12:06am UTC](https://community.glideapps.com/t/i-want-to-be-able-to-use-my-location-url-to-generate-address/74345/5 "2024-06-25T00:06:28Z")

</div>

You need an API to generate addresses on Google Maps.

> **[Google Maps | Glide Docs](https://www.glideapps.com/docs/automation/integrations/google-maps)**
>
> Geocoding and address completion.

---

<div class="post-metadata">

### Author: ![Okoh\_Peter](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/okoh_peter/32/71171_2.png) [@Okoh\_Peter](https://community.glideapps.com/u/Okoh_Peter)
#### Post date: [June 25, 2024, 11:20am UTC](https://community.glideapps.com/t/i-want-to-be-able-to-use-my-location-url-to-generate-address/74345/6 "2024-06-25T11:20:17Z")

</div>

Thanks for the feedback they were all helpful, but then how can i generate longitude  
 ![Capture](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/b/2/b2545f17510ecc6fd165c2ca18b6fa797b1d7683.png)  
and latitude

---

<div class="post-metadata">

### Author: ![Himaladin](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/himaladin/32/71023_2.png) [@Himaladin](https://community.glideapps.com/u/Himaladin)
#### Post date: [June 25, 2024, 11:36am UTC](https://community.glideapps.com/t/i-want-to-be-able-to-use-my-location-url-to-generate-address/74345/7 "2024-06-25T11:36:30Z")

</div>

Use the javascript field and write the following code:

`return p1.split(',')[0];` for latitude and `return p1.split(',')[1];` for longitude.

 ![Screenshot 2024-06-25 at 18.57.15](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/4/9/49aab93ea8bf50a652d8a237a39b55a76ee2948b.png)

---

<div class="post-metadata">

### Author: ![Okoh\_Peter](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/okoh_peter/32/71171_2.png) [@Okoh\_Peter](https://community.glideapps.com/u/Okoh_Peter)
#### Post date: [June 25, 2024, 1:15pm UTC](https://community.glideapps.com/t/i-want-to-be-able-to-use-my-location-url-to-generate-address/74345/8 "2024-06-25T13:15:27Z")

</div>

Thank you very much, this works.
