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
5417
April 18, 2010 06:01AM
5001
April 18, 2010 11:13AM
3044
April 28, 2010 08:58AM
3277
May 03, 2010 06:51AM
Re: What returns from distance function?
4093
May 07, 2010 01:35AM
3030
May 16, 2010 07:53PM
3241
May 17, 2010 02:52AM
3334
May 11, 2010 06:21PM
2680
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.