Re: What returns from distance function?
I've seen a colleage use the following formula to get distance from the database,
( 6371 * acos( cos( radians(".$fLat.") ) * cos( radians( X(v.geo) ) ) * cos( radians( Y(v.geo) ) - radians(".$fLng.") ) + sin( radians(".$fLat.") ) * sin( radians( X(v.geo) ) ) ) ) AS distance
This results in a distance in KM, geo is a geometry field, fLat/fLng are well, lat and long ;)
Anyways, that might help you find you find out if the distance function related to meters or not.
Subject
Views
Written By
Posted
4986
April 18, 2010 06:01AM
4673
April 18, 2010 11:13AM
2851
April 28, 2010 08:58AM
3031
May 03, 2010 06:51AM
Re: What returns from distance function?
3879
May 07, 2010 01:35AM
2784
May 16, 2010 07:53PM
3013
May 17, 2010 02:52AM
3114
May 11, 2010 06:21PM
2478
July 08, 2010 01:42PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.