Reverse geocode opencage

Hi, I am new to kodular and I am unable to parse JSON. I am currently using the JsonUtils1 extension but I am getting errors using that. This is my json.
{
“documentation” : “OpenCage Geocoding API Documentation”,
“licenses” : [
{
“name” : “see attribution guide”,
“url” : “Credits and Sources
}
],
“rate” : {
“limit” : 2500,
“remaining” : 1386,
“reset” : 1630972800
},
“results” : [
{
“bounds” : {
“northeast” : {
“lat” : 51.9528202,
“lng” : 7.6325938
},
“southwest” : {
“lat” : 51.9525445,
“lng” : 7.6323594
}
},
“components” : {
“ISO_3166-1_alpha-2” : “DE”,
“ISO_3166-1_alpha-3” : “DEU”,
“_category” : “building”,
“_type” : “building”,
“city” : “M\u00fcnster”,
“city_district” : “M\u00fcnster-Mitte”,
“continent” : “Europe”,
“country” : “Germany”,
“country_code” : “de”,
“house_number” : “7”,
“neighbourhood” : “Josef”,
“political_union” : “European Union”,
“postcode” : “48153”,
“road” : “Friedrich-Ebert-Stra\u00dfe”,
“state” : “North Rhine-Westphalia”,
“state_code” : “NW”,
“suburb” : “Innenstadtring”
},
“confidence” : 10,
“formatted” : “Friedrich-Ebert-Stra\u00dfe 7, 48153 M\u00fcnster, Germany”,
“geometry” : {
“lat” : 51.9526599,
“lng” : 7.632473
}
}
],
“status” : {
“code” : 200,
“message” : “OK”
},
“stay_informed” : {
“blog” : “https://blog.opencagedata.com”,
“twitter” : “https://twitter.com/OpenCage
},
“thanks” : “For using an OpenCage API”,
“timestamp” : {
“created_http” : “Mon, 06 Sep 2021 09:05:48 GMT”,
“created_unix” : 1630919148
},
“total_results” : 1

I want to retrieve the formatted block’s value.


Pls guide me for the same.

You don’t need a Extension .
Search in comunnity:

1 Like

Hi, @Rogerio_Rios I tried using the solution in the community link you gave. But sadly, It didn’t work due to my API being in a different format.These are the blocks I used.Can you give me an idea of the blocks I will have to use?.

I think the results column is a list and we need to parse that. I tried using the list index selection but got no results.Due to the presence of []brackets

I hope you can use locationIQ reverse geo coding would be better… per day 5000 req

2 Likes

Thanks I figured it out using location IQ service

1 Like

This :point_down::point_down::point_down::point_down::point_down:

Another solution that already existed :face_with_monocle:in the community…🤷

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