I'm trying to figure out how to take two Point objects and determine the distance between them.
It seems that it is trivial to search the DB (well, provided that I'm not using mySQL, which I am) to filter by distance, however, that's not what I'm looking for at the moment. I have a set of Point objects, and I'd like to compute the distance in miles for each. For Point objects a, b, one can "a.distance(b)", however, a number is returned not a Distance object. I'm having trouble finding documentation on what this value represents (I could perhaps plug it into D(????=a.distance(b)).mi). -- 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.