Api data return

Hi All

This API works and returns data and I am able to extract and isolate some variables, so I know it works

APIresponse

but please can someone look at the JSON and tell me why I cannot extract the value for RELEVANCE

Thanks

t

Still Stuck

1 Like

give me the json. i will try

Thanks

## {“Response”:{“MetaInfo”:{“Timestamp”:“2021-10-02T15:13:30.555+0000”},“View”:[{"_type":“SearchResultsViewType”,“ViewId”:0,“Result”:[{“Relevance”:0.85,“MatchLevel”:“houseNumber”,“MatchQuality”:{“Country”:1.0,“Street”:[0.85],“HouseNumber”:1.0,“PostalCode”:0.78},“MatchType”:“pointAddress”,“Location”:{“LocationId”:“NT_qxGXgb3G3cd.7rBUiG7R6C_3A”,“LocationType”:“point”,“DisplayPosition”:{“Latitude”:-34.03144,“Longitude”:24.91555},“NavigationPosition”:[{“Latitude”:-34.03162,“Longitude”:24.91537}],“MapView”:{“TopLeft”:{“Latitude”:-34.0303158,“Longitude”:24.9141935},“BottomRight”:{“Latitude”:-34.0325642,“Longitude”:24.9169065}},“Address”:{“Label”:“7 Blombos St, Jeffreys Bay, 6330, South Africa”,“Country”:“ZAF”,“State”:“Eastern Cape”,“County”:“Kouga”,“City”:“Jeffreys Bay”,“District”:“Noorskloofpunt”,“Street”:“Blombos St”,“HouseNumber”:“7”,“PostalCode”:“6330”,“AdditionalData”:[{“value”:“South Africa”,“key”:“CountryName”},{“value”:“Eastern Cape”,“key”:“StateName”},{“value”:“Kouga”,“key”:“CountyName”}]}}}]}]}}

There is error in your Json :

1 Like

How can there be?

Thats what was returned. I didnt change anything

besides, this works perfectly

So, Sill no solution.

This part has no errors

“Response”:{
“MetaInfo”:{
“Timestamp”:"“2021-10-02T15":“13”:30.555+0000”
},
“View”:[
{
“_type”:“SearchResultsViewType”,
“ViewId”:0,
“Result”:[
{
" Relevance":0.85,
“MatchLevel”:“houseNumber”,
“MatchQuality”:{

I think your problem is that key Relevance has actually an empty space before R so you have to check for key Relevance

1 Like

Hi Dora, I solved it with this

Thanks. It was just a guess :grinning:

2 Likes

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