# Extracting values from Json (Reverse Geocoding Google Map API )

**URL:** <https://community.thunkable.com/t/extracting-values-from-json-reverse-geocoding-google-map-api/668641>\
**Category:** Questions about Thunkable X\
**Created:** [July 10, 2020, 1:35am UTC](https://community.thunkable.com/t/extracting-values-from-json-reverse-geocoding-google-map-api/668641 "2020-07-10T01:35:33Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![boris.hernandez](https://avatars.discourse-cdn.com/v4/letter/b/8edcca/32.png) [@boris.hernandez](https://community.thunkable.com/u/boris.hernandez)\
**Post date:** [July 10, 2020, 1:35am UTC](https://community.thunkable.com/t/extracting-values-from-json-reverse-geocoding-google-map-api/668641/1 "2020-07-10T01:35:33Z")

</div>

Hi,  
I need assistance in extracting the values display under property “long\_name” under “address\_components” list; so I can get the enterie address base on a latitude and logitude values; I’m using the location sensor component and a web api from google maps  
Thanks,

the json that comes out of the google geocoding api is:

{  
“plus\_code” : {  
“compound\_code” : “RHR3+98 Santa Lucia, El Salvador”,  
“global\_code” : “765GRHR3+98”  
},  
“results” : [  
{  
“address\_components” : [  
{  
“long\_name” : “Calle Francisco Gavidia”,  
“short\_name” : “Calle Francisco Gavidia”,  
“types” : [“route”]  
},  
{  
“long\_name” : “Ciudad Arce”,  
“short\_name” : “Cd Arce”,  
“types” : [“locality”, “political”]  
},  
{  
“long\_name” : “Ciudad Arce”,  
“short\_name” : “Cd Arce”,  
“types” : [“administrative\_area\_level\_2”, “political”]  
},  
{  
“long\_name” : “La Libertad”,  
“short\_name” : “La Libertad”,  
“types” : [“administrative\_area\_level\_1”, “political”]  
},  
{  
“long\_name” : “El Salvador”,  
“short\_name” : “SV”,  
“types” : [“country”, “political”]  
}  
],  
“formatted\_address” : “Calle Francisco Gavidia, Cd Arce, El Salvador”,  
“geometry” : {  
“bounds” : {  
“northeast” : {  
“lat” : 13.841047,  
“lng” : -89.44653409999999  
},  
“southwest” : {  
“lat” : 13.8408049,  
“lng” : -89.44662219999999  
}  
},  
“location” : {  
“lat” : 13.8409264,  
“lng” : -89.44657699999999  
},  
“location\_type” : “GEOMETRIC\_CENTER”,  
“viewport” : {  
“northeast” : {  
“lat” : 13.8422749302915,  
“lng” : -89.44522916970848  
},  
“southwest” : {  
“lat” : 13.8395769697085,  
“lng” : -89.44792713029149  
}  
}  
},  
“place\_id” : “ChIJC5bVJcPeYo8R6st1j-xy\_Ms”,  
“types” : [“route”]  
},  
{  
“address\_components” : [  
{  
“long\_name” : “Ciudad Arce Centro”,  
“short\_name” : “Cd Arce Centro”,  
“types” : [“neighborhood”, “political”]  
},  
{  
“long\_name” : “Santa Lucia”,  
“short\_name” : “Santa Lucia”,  
“types” : [“locality”, “political”]  
},  
{  
“long\_name” : “Ciudad Arce”,  
“short\_name” : “Cd Arce”,  
“types” : [“administrative\_area\_level\_2”, “political”]  
},  
{  
“long\_name” : “La Libertad”,  
“short\_name” : “La Libertad”,  
“types” : [“administrative\_area\_level\_1”, “political”]  
},  
{  
“long\_name” : “El Salvador”,  
“short\_name” : “SV”,  
“types” : [“country”, “political”]  
}  
],  
“formatted\_address” : “Cd Arce Centro, Santa Lucia, El Salvador”,  
“geometry” : {  
“bounds” : {  
“northeast” : {  
“lat” : 13.8445803,  
“lng” : -89.44004059999999  
},  
“southwest” : {  
“lat” : 13.8367674,  
“lng” : -89.4481945  
}  
},  
“location” : {  
“lat” : 13.8391144,  
“lng” : -89.4440774  
},  
“location\_type” : “APPROXIMATE”,  
“viewport” : {  
“northeast” : {  
“lat” : 13.8445803,  
“lng” : -89.44004059999999  
},  
“southwest” : {  
“lat” : 13.8367674,  
“lng” : -89.4481945  
}  
}  
},  
“place\_id” : “ChIJ9fji6NzeYo8R3iLj-UUGxg4”,  
“types” : [“neighborhood”, “political”]  
},  
{  
“address\_components” : [  
{  
“long\_name” : “Santa Lucia”,  
“short\_name” : “Santa Lucia”,  
“types” : [“locality”, “political”]  
},  
{  
“long\_name” : “Ciudad Arce”,  
“short\_name” : “Cd Arce”,  
“types” : [“administrative\_area\_level\_2”, “political”]  
},  
{  
“long\_name” : “La Libertad”,  
“short\_name” : “La Libertad”,  
“types” : [“administrative\_area\_level\_1”, “political”]  
},  
{  
“long\_name” : “El Salvador”,  
“short\_name” : “SV”,  
“types” : [“country”, “political”]  
}  
],  
“formatted\_address” : “Santa Lucia, El Salvador”,  
“geometry” : {  
“bounds” : {  
“northeast” : {  
“lat” : 13.8498722,  
“lng” : -89.41884039999999  
},  
“southwest” : {  
“lat” : 13.8189031,  
“lng” : -89.45274350000001  
}  
},  
“location” : {  
“lat” : 13.8354794,  
“lng” : -89.4387562  
},  
“location\_type” : “APPROXIMATE”,  
“viewport” : {  
“northeast” : {  
“lat” : 13.8498722,  
“lng” : -89.41884039999999  
},  
“southwest” : {  
“lat” : 13.8189031,  
“lng” : -89.45274350000001  
}  
}  
},  
“place\_id” : “ChIJb6L\_kSffYo8RB4JT3\_9nCKs”,  
“types” : [“locality”, “political”]  
},  
{  
“address\_components” : [  
{  
“long\_name” : “Ciudad Arce”,  
“short\_name” : “Ciudad Arce”,  
“types” : [“administrative\_area\_level\_2”, “political”]  
},  
{  
“long\_name” : “La Libertad Department”,  
“short\_name” : “La Libertad Department”,  
“types” : [“administrative\_area\_level\_1”, “political”]  
},  
{  
“long\_name” : “El Salvador”,  
“short\_name” : “SV”,  
“types” : [“country”, “political”]  
}  
],  
“formatted\_address” : “Ciudad Arce, El Salvador”,  
“geometry” : {  
“bounds” : {  
“northeast” : {  
“lat” : 13.8794127,  
“lng” : -89.3895721  
},  
“southwest” : {  
“lat” : 13.7587273,  
“lng” : -89.47196959999999  
}  
},  
“location” : {  
“lat” : 13.7977568,  
“lng” : -89.41746409999999  
},  
“location\_type” : “APPROXIMATE”,  
“viewport” : {  
“northeast” : {  
“lat” : 13.8794127,  
“lng” : -89.3895721  
},  
“southwest” : {  
“lat” : 13.7587273,  
“lng” : -89.47196959999999  
}  
}  
},  
“place\_id” : “ChIJSfdXXNDYYo8R767pb8QwJd8”,  
“types” : [“administrative\_area\_level\_2”, “political”]  
},  
{  
“address\_components” : [  
{  
“long\_name” : “La Libertad Department”,  
“short\_name” : “La Libertad Department”,  
“types” : [“administrative\_area\_level\_1”, “political”]  
},  
{  
“long\_name” : “El Salvador”,  
“short\_name” : “SV”,  
“types” : [“country”, “political”]  
}  
],  
“formatted\_address” : “La Libertad Department, El Salvador”,  
“geometry” : {  
“bounds” : {  
“northeast” : {  
“lat” : 14.0608631,  
“lng” : -89.133437  
},  
“southwest” : {  
“lat” : 13.4222451,  
“lng” : -89.6249409  
}  
},  
“location” : {  
“lat” : 13.6817661,  
“lng” : -89.3606298  
},  
“location\_type” : “APPROXIMATE”,  
“viewport” : {  
“northeast” : {  
“lat” : 14.0608631,  
“lng” : -89.133437  
},  
“southwest” : {  
“lat” : 13.4222451,  
“lng” : -89.6249409  
}  
}  
},  
“place\_id” : “ChIJj7ku93kjY48RJGGpDtNMEcI”,  
“types” : [“administrative\_area\_level\_1”, “political”]  
},  
{  
“address\_components” : [  
{  
“long\_name” : “El Salvador”,  
“short\_name” : “SV”,  
“types” : [“country”, “political”]  
}  
],  
“formatted\_address” : “El Salvador”,  
“geometry” : {  
“bounds” : {  
“northeast” : {  
“lat” : 14.4505567,  
“lng” : -87.6682  
},  
“southwest” : {  
“lat” : 13.0473999,  
“lng” : -90.19229999999999  
}  
},  
“location” : {  
“lat” : 13.794185,  
“lng” : -88.89653  
},  
“location\_type” : “APPROXIMATE”,  
“viewport” : {  
“northeast” : {  
“lat” : 14.4505567,  
“lng” : -87.6682  
},  
“southwest” : {  
“lat” : 13.0473999,  
“lng” : -90.19229999999999  
}  
}  
},  
“place\_id” : “ChIJVwZkWaYnY48RMkiFmOsWmm8”,  
“types” : [“country”, “political”]  
}  
],  
“status” : “OK”  
}

---

_[View the full topic](https://community.thunkable.com/t/extracting-values-from-json-reverse-geocoding-google-map-api/668641)._
