B4A Library FusedLocationProviderGMS (Latest) - Ivica Golubovic    Oct 07, 2023   (26 reactions) Locations that are (nearly) antipodal may produce meaningless results.
DistanceTo (Dest As LocationF) As Float
Returns the approximate distance in meters between this location and the given location. Distance is defined using the WGS84 ellipsoid.
HasAccuracy As Boolean
Returns true if this location B4A Question [SOLVED] GPS Library - BearingTo and DistanceTo - agraham (first post)    Sep 28, 2019   (2 reactions) From the Android documentation for Location.distanceTo
https://developer.android..html#distanceTo(android.location.Location)
Returns the approximate distance in meters between this location and the given location. Distance is defined using the WGS84 ellipsoid. B4A Code Snippet Measure distance between 2 LatLng points - klaus (first post)    May 24, 2021   (4 reactions) To get more precise results you could have used the DistanceTo method from the GPS libary.
Private Location1, Location2 As Location
Location1.Initialize(Lat1, Lng1)
Location2.Initialize(Lat2, Lng2)
Distance = Location1.DistanceTo(Location2) Italian DataBase con coordinate autovelox - Filippo (first post)    Apr 03, 2024   (1 reaction) Invece di usare "Location.DistanceTo", ti consiglio di usare questo:
https://www.b4x..31499/#content
questo perchè "Location.DistanceTo" ti da sempre la distanza in linia diretta da un punto all'altro. Italian capire se degli indirizzi sono all'interno di un cerchio - marcick (first post)    Jun 09, 2022   (2 reactions) Dim l1 As Location l1.Initialize l1.Latitude = 45.1 l1.Longitude = 8 Dim l2 As Location l2.Initialize l2.Latitude = 45.2 l2.Longitude = 8 Log("l1.DistanceTo(l2): " & l1.DistanceTo(l2)) B4A Question How to draw a GPS Route WHITOUT a maps app - Sailboat11 (first post)    Oct 16, 2022 Location.DistanceTo in smaller walking applications using seconds isn't very accurate. The course part of the GPS library works well to identify turns or changes in direction. There are some good examples of heavy math on the forum. They give consistent reliable results. The graphic below uses L B4A Question GoogleMaps - Johan Hormaza (first post)    Mar 02, 2022   (2 reactions) Dim l1, l2 As Location
l1.Initialize2(gmap.MyLocation.Latitude,gmap.MyLocation.Longitude)
l2.Initialize2(RootMap.Get("LatitudB"), RootMap.Get("LongitudB"))
'ahora necesitamos la distancia entre nuestra ubicación y la ubicación de destino
B4A Question Location - klaus (first post)    Apr 21, 2020 You can use:
Distance = CenterLocation.DistanceTo(LocationToCheck)
If Distance <= Radius Then
' insides
Else
' outsides
End If
You know the location of your center and you know the locations to check, so can calculate the distance between those with DistanceTo method of the Location object B4A Question Issue with DistanceTo - Keith Flanagan    May 02, 2020   (1 reaction) Hi All
I think there is a problem with the DistanceTo method in Location.
When I run the following code I get a return value of 7482515 for something that is only 52ish meters away.
Any ideas what may be wrong here? Thanks
Dim BigBenLongitude As Double = 51.500770
Dim BigBenLatitude As D B4A Question GPS app distance calculation - DonManfred (first post)    Aug 13, 2020   (4 reactions) You can create two Location objects (GPS library) and then calculate the distance with Location1.DistanceTo(Location2). Page: 1   2   3   4   5   6   7   Powered by ColBERT |