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
5312
April 18, 2010 06:01AM
4941
April 18, 2010 11:13AM
3002
April 28, 2010 08:58AM
3230
May 03, 2010 06:51AM
Re: What returns from distance function?
4064
May 07, 2010 01:35AM
2979
May 16, 2010 07:53PM
3197
May 17, 2010 02:52AM
3302
May 11, 2010 06:21PM
2639
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.