Star-Dust

Expert
Licensed User
Longtime User
I have laid the foundations for a multiplatform version.
At the moment it is in the B4A version and is being tested, subsequently I will make the necessary modifications to also work on B4I...

Several commands have changed because in B4A and B4I they become asynchronous and you will need to use 'WAIT FOR'. This means that the B4J source will not be perfectly compatible with the B4A/B4i source

 

Star-Dust

Expert
Licensed User
Longtime User
Update rel. 1.17
  • LatLonToAddress (lat As Double, lon As Double) As ResumableSub
    Returns the address from coordiantes
    WAIT FOR (GMapExt.LatLonToAddress(Latitude,Longitude)) COMPLETE (Address As String)
B4X:
Private Sub Gmap_Click (Point As LatLng)
    Log($"Click: ${Point.Latitude} - ${Point.Longitude}"$)
    WAIT FOR (GMapExt.LatLonToAddress(Point.Latitude,Point.Longitude)) COMPLETE (Address As String)
    Log(Address)
End Sub
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…