# Is it possible to have a button bring you to a certain page based on location?

**URL:** <https://community.thunkable.com/t/is-it-possible-to-have-a-button-bring-you-to-a-certain-page-based-on-location/1641884>\
**Category:** Questions about Thunkable X\
**Created:** [December 1, 2021, 9:21am UTC](https://community.thunkable.com/t/is-it-possible-to-have-a-button-bring-you-to-a-certain-page-based-on-location/1641884 "2021-12-01T09:21:41Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![fcretu125x62ec0](https://avatars.discourse-cdn.com/v4/letter/f/3ab097/32.png) [@fcretu125x62ec0](https://community.thunkable.com/u/fcretu125x62ec0)\
**Post date:** [December 1, 2021, 9:21am UTC](https://community.thunkable.com/t/is-it-possible-to-have-a-button-bring-you-to-a-certain-page-based-on-location/1641884/1 "2021-12-01T09:21:41Z")

</div>

Hello I tried to figure out if there is a way to make a button for my app that brings you to the correct page but I can’t seem to figure it out. Does anybody know if that is possible?

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [December 1, 2021, 10:32am UTC](https://community.thunkable.com/t/is-it-possible-to-have-a-button-bring-you-to-a-certain-page-based-on-location/1641884/2 "2021-12-01T10:32:57Z")

</div>

Welcome to Thunkable.

Do you mean to `navigate to another screen`?

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/b/3b0a71b424460125d48e3f45c0a68232b1e6d210.png)

---

<div class="post-metadata">

**Author:** ![fcretu125x62ec0](https://avatars.discourse-cdn.com/v4/letter/f/3ab097/32.png) [@fcretu125x62ec0](https://community.thunkable.com/u/fcretu125x62ec0)\
**Post date:** [December 1, 2021, 10:38am UTC](https://community.thunkable.com/t/is-it-possible-to-have-a-button-bring-you-to-a-certain-page-based-on-location/1641884/3 "2021-12-01T10:38:09Z")

</div>

I mean as the app located that the user is in France for example so it would bring them to the French page and if somebody from Spain does it as well it directs them to the Spain page

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [December 1, 2021, 10:40am UTC](https://community.thunkable.com/t/is-it-possible-to-have-a-button-bring-you-to-a-certain-page-based-on-location/1641884/4 "2021-12-01T10:40:32Z")

</div>

Use `If statements`. Of course you need to use the `Location Services` with it.

---

<div class="post-metadata">

**Author:** ![fcretu125x62ec0](https://avatars.discourse-cdn.com/v4/letter/f/3ab097/32.png) [@fcretu125x62ec0](https://community.thunkable.com/u/fcretu125x62ec0)\
**Post date:** [December 1, 2021, 10:44am UTC](https://community.thunkable.com/t/is-it-possible-to-have-a-button-bring-you-to-a-certain-page-based-on-location/1641884/5 "2021-12-01T10:44:23Z")

</div>

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/6/46fdab09ec45e3dda45f60bd3b17847509637023.png)  
This is what I have so far. I hope its good. And could you tell me where to find where are the things that I can put for else if

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [December 1, 2021, 11:45am UTC](https://community.thunkable.com/t/is-it-possible-to-have-a-button-bring-you-to-a-certain-page-based-on-location/1641884/6 "2021-12-01T11:45:44Z")

</div>

To get the name of the area you need to use Google GeoServices such as

[http://maps.googleapis.com/maps/api/geocode/json?latlng=50,50&sensor=true&key=](http://maps.googleapis.com/maps/api/geocode/json?latlng=50,50&sensor=true&key=){{your map API key}}

enter the correct latitude, longitude in place of 50,50.

You need to register with Google and get a MAP key to use this option.

You can also use the other method which does not require API key

[https://www.google.com/maps/search/?api=1&query=47.5951518%2C-122.3316393](https://www.google.com/maps/search/?api=1&query=47.5951518%2C-122.3316393&authuser=0)

but this will show it as a map so you will need a `Web Viewer`

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)\
**Post date:** [March 1, 2022, 11:45am UTC](https://community.thunkable.com/t/is-it-possible-to-have-a-button-bring-you-to-a-certain-page-based-on-location/1641884/7 "2022-03-01T11:45:54Z")

</div>

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