B4X:
Dim GetAddressJob As HttpJob
GetAddressJob.Initialize("GetAddress", Me)
GetAddressJob.Download2("https://api.open-meteo.com/v1/elevation", Array As String("latitude", lat & "&" & "longitude" & lon))
Wait For (GetAddressJob) JobDone(GetAddressJob As HttpJob)
If GetAddressJob.Success Then
Dim parser As JSONParser
parser.Initialize(GetAddressJob.GetString)
Dim root As Map = parser.NextObject
Dim elevation As List = root.Get("elevation")
For Each colelevation As Int In elevation
Log("info" & colelevation)
Next
End If
GetAddressJob.Release
Hello, when I parse the address above, it gives this error. I would be happy if you help.. thanks..
ResponseError. Reason: , Response: {"error":true,"reason":"Value at path 'latitude.0' was not of type 'Float'. Data found at 'latitude.0' was not Float."}