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
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
See Google maps showing this:
		
		
	
	
		 
	
Version Details:
		 
	
			
			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
			
				B4X:
			
		
		
		    Dim BigBenLongitude As Double = 51.500770
    Dim BigBenLatitude As Double = -0.124622
       
    Dim TescoLat As Double = 51.501137
    Dim TescoLong As Double = -0.125092
   
    Dim L1, L2 As Location
    L1.Initialize2(TescoLat, TescoLong)
    L2.Initialize2(BigBenLatitude, BigBenLongitude)
   
    Dim DistanceInMeters As Long = L1.DistanceTo(L2)
   
    ToastMessageShow("Distance: " & CRLF & DistanceInMeters,True) '7482515See Google maps showing this:
Version Details:
			
				Last edited: 
			
		
	
								
								
									
	
								
							
							 
				 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		