Seems that my question was asked like 6 years ago here and I see in the end that the recommendation is to start a new thread.
So, 6 years later, is there any simpler way to get the country, city and street name based on the latitude and longitude returned from GPS library ?
ub GetAddress (lat As Float, lon As Float)
Dim GetAddressJob As HttpJob
GetAddressJob.Initialize("GetAddress", Me)
GetAddressJob.Download2("https://maps.googleapis.com/maps/api/geocode/json", _
Array As String("latlng", lat & "," & lon))
End Sub
It calls Google's geocode function. You get a whole bunch of info's back (full address, etc.) just by providing lat & lon. Very cool and powerful!
ub GetAddress (lat As Float, lon As Float)
Dim GetAddressJob As HttpJob
GetAddressJob.Initialize("GetAddress", Me)
GetAddressJob.Download2("https://maps.googleapis.com/maps/api/geocode/json", _
Array As String("latlng", lat & "," & lon))
End Sub
It calls Google's geocode function. You get a whole bunch of info's back (full address, etc.) just by providing lat & lon. Very cool and powerful!
Thank you very much KMatle, I was just about to put a question about this as I saw this post while looking in the Geocoder library thread. Have any idea if there is a simple way to parse the returned info and extract the needed fields ?