Just use Lat/Lon. You can fidget over which ojection to use later as long as 
your data is good. (WGS84 is the best btw)

I agree lat long sounds beautiful to me! Well thats good.


For geolocation, you can use the HTML5 Geolocation API that will use the 
person's browser to give you a location usually accurate to 200m (better if 
they're on a phone with gps), more than enough given your search radius of 
200miles.

Oh okay ill keep that in mind in case i make a iphone app cause right now i 
like the idea of lat long.

For distance lookups, go with a simple bounding box algorithm (bounded by map 
edges, distance calc by pythagoras). Again exact positioning is NOT ESSENTIAL 
for your use case, especially on the 25mi scale.

What about a circle? Use lat long equated to a city or address and do a circle 
with that point in lat long and find all the data within the circle?

If you ever find yourself needing better/more accurate position calculation. 
use postgis, but never install from source, use your distro's packages (it Just 
Works tm). Should be called 'postgresql-9.1-postgis' on most distros. do a 
search. make sure you have libproj and libgeos installed as well.

Is "it just works" a programming catch phrase? Haha. Yes the distros this next 
time not the other way.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/W95IyM6TCqcJ.
To post to this group, send email to django-users@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.

Reply via email to