Re: Unable to get result using distance query

2012-04-29 Thread Reinout van Rees
On 26-04-12 00:02, vishy wrote: I am using PointField to store longitude and latitude with SRID 4326. All my places are in USA. Now, given a reference point, I do lat = "41.881944" lng = "-87.627778" ref_pnt = fromstr("POINT(%s %s)" % (lng, lat)) You have probably

Unable to get result using distance query

2012-04-25 Thread vishy
Hi, I am using PointField to store longitude and latitude with SRID 4326. All my places are in USA. Now, given a reference point, I do lat = "41.881944" lng = "-87.627778" ref_pnt = fromstr("POINT(%s %s)" % (lng, lat)) distance_from_point = {'m':'50'} r_gis