# Geolocation doesn't work properly

**URL:** <https://forum.adalo.com/t/geolocation-doesnt-work-properly/29367>\
**Category:** Get Help\
**Created:** [July 11, 2022, 5:28pm UTC](https://forum.adalo.com/t/geolocation-doesnt-work-properly/29367 "2022-07-11T17:28:05Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mike\_Borok](https://avatars.discourse-cdn.com/v4/letter/m/e274bd/32.png) [@Mike\_Borok](https://forum.adalo.com/u/Mike_Borok)\
**Post date:** [July 11, 2022, 5:28pm UTC](https://forum.adalo.com/t/geolocation-doesnt-work-properly/29367/1 "2022-07-11T17:28:05Z")

</div>

Hi!

I’m new to Adalo and just start my journey. While passing one of the lessons (Location 101) I ran into two issues:

1. When I place a location input element on page and set its value to “custom” I expect it will let me input location. But it just says “API keys with referer restrictions cannot be used with this API”
2. When I try to get logged in user current device location and display it through magic text it shows message “Location data is not available”.

Please, share your advise, how can I finally make it work?

Anticipating some questions:

1. I have a Google Map API key set up.
2. Billing account is connected.
3. Restrictions are set to HTTP and only one item _[adalo.com](http://adalo.com)_
4. All 5 required APIs are enabled  
 ![1](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/1/f/1feac1b7e685edd90b315fe57dea4a3323b9bc1a.jpeg)  
 ![2](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/9/7/97306388795836ee7028ab932c171a0676929066.jpeg)  
 ![Enabled APIs](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/7/3/73cfe214ca778a9ecd9a1fb4ab804cf40f3994f2.jpeg)  
 ![Key restrictions](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/3/f/3f19bd4b6d74c9569b5cce03d261b74100c914c2.jpeg)  
 ![API restrictions](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/e/b/eb7f9bf88efca255c5ab0af4aab596c17c4c41be.jpeg)

---

<div class="post-metadata">

**Author:** ![Dilon](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/dilon/32/39815_2.png) [@Dilon](https://forum.adalo.com/u/Dilon)\
**Post date:** [July 12, 2022, 9:24am UTC](https://forum.adalo.com/t/geolocation-doesnt-work-properly/29367/2 "2022-07-12T09:24:24Z")

</div>

Hi @Mike_Borok,

Welcome to the community 🥳

> [@Mike\_Borok](#):
>
> When I place a location input element on page and set its value to “custom” I expect it will let me input location. But it just says “API keys with referer restrictions cannot be used with this API”

Can you try changing the restrictions to None and see if that works? If you set restrictions I think you need to add your App URL there to have access for it!

> [@Mike\_Borok](#):
>
> When I try to get logged in user current device location and display it through magic text it shows message “Location data is not available”.

Did you added the Location Permission action to allow location before displaying it? I also get this error If I have the location permission action on that screen. Not sure why. Maybe Barrett ( @barrettnash ) can add some more information here about that?

Thank you

---

<div class="post-metadata">

**Author:** ![barrettnash](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/barrettnash/32/12951_2.png) [@barrettnash](https://forum.adalo.com/u/barrettnash)\
**Post date:** [July 12, 2022, 12:32pm UTC](https://forum.adalo.com/t/geolocation-doesnt-work-properly/29367/4 "2022-07-12T12:32:32Z")

</div>

Hey Mike, thanks for taking Location 101. Let me know if there is anywhere you get stuck or needs to be updated.

Also let me know if you find any improvements that you think other watchers would find helpful 😃

---

<div class="post-metadata">

**Author:** ![Mike\_Borok](https://avatars.discourse-cdn.com/v4/letter/m/e274bd/32.png) [@Mike\_Borok](https://forum.adalo.com/u/Mike_Borok)\
**Post date:** [July 12, 2022, 4:36pm UTC](https://forum.adalo.com/t/geolocation-doesnt-work-properly/29367/5 "2022-07-12T16:36:33Z")

</div>

@anon64517257 @Dilon  
Guys, that worked! I removed restrictions and voila!

PS Just thought it’ll be enough to put restriction to [adalo.com](http://adalo.com) with asterisk on both sides.

Anyways, many thanks to you!

---

<div class="post-metadata">

**Author:** ![Dilon](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/dilon/32/39815_2.png) [@Dilon](https://forum.adalo.com/u/Dilon)\
**Post date:** [July 12, 2022, 5:57pm UTC](https://forum.adalo.com/t/geolocation-doesnt-work-properly/29367/6 "2022-07-12T17:57:04Z")

</div>

Awesome @Mike_Borok!

Wishing you the best of luck!

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/system/32/40401_2.png) [@system](https://forum.adalo.com/u/system)\
**Post date:** [July 22, 2022, 5:57pm UTC](https://forum.adalo.com/t/geolocation-doesnt-work-properly/29367/7 "2022-07-22T17:57:58Z")

</div>

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.
