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

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?

1 Like

Welcome to Thunkable.

Do you mean to navigate to another screen?

image

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

1 Like

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


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

1 Like

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={{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

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

1 Like

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