Geolocation API with Opencage Data (NEW!)

I’ll make an example. We have a very long time to solve such a simple problem.

2 Likes

Done. No Variables :smile:

@actech please review

1 Like

@Tijender_Singh

And I am very happy to say that, my blocks work :star_struck: -

Thanks! :blush:

1 Like

how :frowning:

not working for me :frowning:

label5 not getting changed no reponse and not even hello in buyer or lable 5

Remove the if … block, just keep my code with API block.

1 Like

Your solution works, but it is an unstable solution. The data in the response only comes with the successful result of the request when the status = 200. But this does not always happen. Therefore we need check on errors and to obtain status = 200

2 Likes

Yes, It will be nice to check.

But my solution works! :star_struck:

Thanks! :blush:

1 Like

status is 200 on button
when error set to text it says undefined… but i dont get anything label5

Try to find a slow and unstable internet bad web-server and your solution will not work :smile:

3 Likes

I have one fact - Have no internet, none of our solutions will work. :joy:

2 Likes

can you share your project link once

@Tijender_Singh Did you set the API URL?
Show your full block please :blush:

1 Like

opencageapi is just variable name key stored in the variable is from mapbox

Sample

https://x.thunkable.com/projects/5db840eec0928f911f2726d4/project/properties/designer/

2 Likes

Check if your GPS Location is on or not…

1 Like

its on… i get lat and long in the button name

If you give me a link to your project will make it easier to understand the problem

2 Likes

Please post your link here, I can see too…

1 Like

.fh

@actech Perfect!

1 Like