and if you accustomed to spelling out your query strings, you can use:
GetAddressJob.Download("
https://api.open-meteo.com/v1/elevation" & "?latitude=37.42&longitude=-122.08")
OR:
dim latitude as float = 37.42
dim longitude as float = -122.08
GetAddressJob.Download("
https://api.open-meteo.com/v1/elevation" & $"?latitude=${latitude}&longitude=${longitude}"$)
note: GetAddressJob.
Download() instead of GetAddressJob.
Download2()
note: any geoposition measurements are likely to be doubles, not ints
the request returns 1 measurement, so you don't need a list. just ask for:
Dim elevation As float = root.Get("elevation")
Log(elevation)
note: you only test for success. that's bad:
if getaddressjob.success then
' do something
else ' ERROR!
log(gettaddressjob.errormessage
end if