http://code.google.com/apis/maps/articles/phpsqlsearch.html
I know this is php but it does a good job of explaining make sure to test the distance from one point to itself the geometric functions have upper and lower limits Sent from my Verizon Wireless BlackBerry -----Original Message----- From: Evan Bowling <evan.bowl...@gmail.com> Date: Sun, 7 Feb 2010 15:20:32 To: Django users<django-users@googlegroups.com> Subject: geodjango Point distance Hey all, I am trying to calculate the spherical and spheroidal distance between two points that aren't stored within any model. I found this post from a few years ago and was wondering if it was resolved: http://www.mail-archive.com/django-users@googlegroups.com/msg40120.html >>> from django.contrib.gis.geos import Point >>> print Point(-84,42).distance( Point(-80, 45) ) # yields 5.0 which still >>> corresponds to purely triangular distance -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.