distance between gps coords

48 views
Skip to first unread message

MadMaadigan

unread,
Mar 17, 2012, 10:27:08 AM3/17/12
to geodjango
Hi

I am new to geodjango, I wonder if someone could help me with this
problem.

What I want to do should be 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. It will be a bulk
operation and efficiency is important. I would rather use geodjango
since I presume the most efficient way to do bulk calculations is in
the internal logic of a spatial db. And the rest of my site is django,
so it would be nice to get everything consistent under the same
framework. Switching between spatialite and postgis is another nice
bonus.

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

Chris Berry

unread,
Mar 17, 2012, 11:03:47 AM3/17/12
to geodjango
Dear Moderators

Please trash this request, think I've figured it out from another thread.

Regards,

jpk

unread,
Mar 18, 2012, 6:15:00 PM3/18/12
to geod...@googlegroups.com
For the sake of future googlers, it would be convenient to copy or link to the solution here, if you can spare the moment to do so.

Cheers!
john

--
You received this message because you are subscribed to the Google Groups "geodjango" group.
To post to this group, send email to geod...@googlegroups.com.
To unsubscribe from this group, send email to geodjango+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/geodjango?hl=en.



--
john p. kiffmeyer
Reply all
Reply to author
Forward
0 new messages