Geodjango- get the distance between 2 points

المشرف العام

Administrator
طاقم الإدارة
What I want to do is quite simple, I have 2 locations defined by gps coords, lat / long like returned by google maps:

http://gmaps-samples.googlecode.com/svn/trunk/geocoder/singlegeocode.html

I need to calculate the distance between them. I know I could use the google API but I'll be processing bulk queries so I'd rather do it on my own server.

I've spent a few hours with the docs, installed geodjango OK, but I can't seem to find an example of this. Everything in the literature is way more complicated than I need.

Thanks for any feedback



أكثر...
 
أعلى