B4A Question DistanceTo - iCAB    
Jun 8, 2018Hi All
Does anyone know if this method takes Altitude into consideration as well?
Thanks
iCAB...
link: I just found this link (just in case if someone else is looking)
https://www.b4x.com/android/forum/threads/distance-between-two-gps-p...
link: .Longitude = 0
l2.Altitude = -10000
Log("l1.DistanceTo(l2): " & l1...
B4A Question Issue with DistanceTo - klaus (first post)    
May 3, 2020   
(2 reactions)
The issue was with my variables rather then the DistanceTo method.
That's what I confirmed in post #10 :)....
link: .
Your code is OK for small distances.
It will give less precise values than DistanceTo....
link: Thanks All
The issue was with my variables rather then the DistanceTo method.
In the original...
link: I use this code (i'm not sure that mi code shared are ok). i don't know this other funcion.
...
B4A Question [SOLVED] GPS Library - BearingTo and DistanceTo - emexes (first post)    
Sep 28, 2019Sorry, got distracted by football. I tested BearingTo and DistanceTo in B4A this afternoon per post #2, and the results I got agree with agraham - calculations are of a spherical-like shape, in...
link: Gentleman, thank you for your posts. Turns out I was using two slightly different databases to confi...
link: From the Android documentation for Location.distanceTo
https://developer.android.com/reference...
link: If your mismatches are small, it might be that one model is using a spherical earth, and the other a...
B4A Question Using Location2.DistanceTo in an sql query - RB Smissaert (first post)    
Jun 21, 2018Btw, I have tested trigonometric functions in SQL Lite and they work very fine.
69150
They must be...
link: Btw, I have tested trigonometric functions in SQL Lite and they work very fine.
69150...
link: If I am understanding your need well, maybe this query may give you some clue. The rangeextension I ...
link: is there any other reason?
1. Simpler to write and maintain.
2. No need to worry about escaping issu...
B4A Question GPS library DistanceTo seems wrong - shb777 (first post)    
Sep 8, 2017i think it's returning meters rather than feet...
link: https://stackoverflow.com/questions/30598250/calculating-distance-between-two-points-in-3d
Good old...
link: https://stackoverflow.com/questions/30598250/calculating-distance-between-two-points-in-3d...
link: The distance measurement is always in 2D, if you need it in 3D then you have to calculate differentl...
B4A Question GPS and location.Distanceto - Fillmore (first post)    
Mar 27, 2017That's what I thought, but, when the distance increase, the speed stay at 0... I will try with y...
link: The GPS doesn't really know your speed. It calculates it based on the difference between the cur...
link: Ok, Thanks you Erel.
Dou you think it can works if I can ad the distance only if the speed is >0 ...
link: GPS is not 100% accurate. You will need to do something more sophisticated. Maybe take X locations a...
B4A Question GPS and DistanceTo - Erel (first post)    
Jun 9, 2015There is no such built-in method....
link: Hi,
I know the function "Location1.DistanceTo(Location2)" function returns the distance...
B4A Question distanceto question - klaus (first post)    
Mar 19, 2014The return value is in meters, so your value of 5098218 means 5098.218 km !?
Are you sure your locations are correct ?
To get feet, multiply the meter value by 3.281...
link: I have loc1.DistanceTo(loc2). It returns 5098218. I want to find out if the two distances are more...
B4A Question Distanceto - Erel (first post)    
Jan 10, 2013No type casting is needed if you use doubles as this method expects doubles. If you like you can pos...
link: had problems before. Only with DistanceTo
But the truth is that when I change to double...
link: It is automatic. As you can see in my code the numbers are doubles....
link: Solved
Thanks Erel,
I had latitude and Longitude as double...Changed to String and it worked.
...
B4A Question Location.Distanceto Example Help - netchicken (first post)    
Oct 31, 2011Thank Erel.
I really had a brain futz there. I got it working OK :-)...
link: when you can only store lat and lon?
Location.DistanceTo returns the distance in meters between two...
link: OK, I feel stupid, but I am just not getting this location.distanceto calculation.
location...
link: You can put this exact code in a service. Just call StartService to make it start.
Basic4android Sea...
Page: 1  
2  
3  
4  
5  
6  
7