B4A Question Google_Maps Marker Rotate - prajinpraveen (first post)    May 01, 2016   (1 reaction) used location class, and worked like a charm Dim LocationFrom As Location Dim LocationTo as Location LocationTo.Initialize2(routeto.Latitude,routeto.Longitude) LocationFrom.Initialize2(routebegin.Latitude,routebegin.Longitude) rotateangle =LocationFrom.BearingTo(LocationTo) Other Wrong decimal format for Location object? - udg (first post)    May 09, 2017   (1 reaction) Location.Initialize2(Lat as string, Lon as string)
where Lat/Lon (if using seconds) should be formatted as
DD:MM:SS.SSSSS
My comment is about a possible internal convertion made by the Location object itself. It could read in any decimal separator and "convert" it to the decimal point it expects. S 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 Angle between two points - klaus (first post)    Jul 16, 2019   (4 reactions) Or, if you already use the GPS library: Private Loc1, Loc2 As Location Loc1.Initialize2(Lat1, Lng1) Loc2.Initialize2(Lat2, Lng2) Angle = Loc1.BearingTo(Loc2) B4A Library FusedLocationProviderGMS (Latest) - Ivica Golubovic    Oct 07, 2023   (26 reactions) Initialize2 (Priority As Int, IntervalMillis As Long) As LocationRequest
Constructs a LocationRequest with the given priority and interval, and default values for all other fields.
Initialize3 (Request As LocationRequest) As LocationRequest
Constructs a LocationRequest with values copied from the gi 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) B4A Question Issue with DistanceTo - drgottjr (first post)    May 03, 2020   (3 reactions) i get 66.1 meters.
here's the deal:
1) you NEED to read the documentation relating to the Location object
2) prepare moist towel for some head banging and blood sopping
3) you need to feed location2() 2 strings, not 2 variables declared as strings
specifically:
' works:
L1.Initialize2("- B4A Question Bring app back when enter geofence - jbaillie2461 (first post)    Jun 19, 2023 HI guy just though I would sharte this example got it working thank erel just remember for this example you need to change the gps geo.Center.Initialize2(-29.814433207125315, 30.90207661547709) 'change location! to your location to test it rp.CheckAndRequest(rp.) Wait For B4XPag B4i Tutorial Background location tracking - sdesan (first post)    Jul 30, 2019 I tested the code and works fine. I have inserted a simple msgbox to notify when i'm near a specific GPS point
p1.Initialize2("+42.0559340","+13.9242163") 'target
p3.Initialize2(Location1.Latitude,Location1.Longitude)
Dim Distance As Float = p1.DistanceTo(p3)
i also write in log same notification B4A Question [SOLVED] Google Maps Track Up - JMB (first post)    Aug 24, 2019 Thanks Manfred.
The location variable is a standard Location type rather than a FusedLocation one.
I hadn't spotted the Initialize2 method. That works a treat passing the bearing and lat and lon in.
Thank you! Page: 1   2   3   4   5   6   7   Powered by ColBERT |