Get Postal Code


#1

Hello ! :slight_smile:

Can anyone please tell me how can I get the postal code of the area using this API :

http://maps.googleapis.com/maps/api/geocode/json?latlng=28.6453758,77.08018990000005&sensor=false

Regards
Manmeet Singh Tuteja


#2

How to work with Lists by Saj
How to work with Lists and Lists of lists (pdf) by appinventor.org
JSON and list of lists: example1 and example2
Taifun


#3

Hi Taifun,

I am not able to get the Postal code from this API. Can you please explain me how I can get only the postal code of the area from this API.

http://maps.googleapis.com/maps/api/geocode/json?latlng=28.6453758,77.08018990000005&sensor=false

Thanks
Manmeet Singh Tuteja


#4

it does not look as you tried anything, did you?
It would really help if you provided a screenshot of your relevant blocks, so we can see what you are trying to do, and where the problem may be.

Taifun


#5

I think that your examples are very easy and I am not able to relate them to this API.
I have attached the screenshot of the blocks. I request you to provide me with a correct solution.

Thanks a lot !!
Manmeet Singh Tuteja


#6

yes exactly, it’s very easy, that’s correct…
your list of list is not available like that, it is hiden in another list and that list is again hidden in another list
therefore first lookup for results
then lookup for address_components
and then parse for the postal code
use Do it to debug your blocks to see the results… try something and adjust your solution, this is an iterative process…
see also tip 4 here https://puravidaapps.com/learn.php
Taifun


#7

Thank you


#8

Hi @Manmeet_Singh,

here’s an example of how to work with API data in Thunkable:

If you have any questions just let me know!


#9

Thanks a lot @Domhnall :slightly_smiling_face: