<div dir="ltr">Hi,<div><br></div><div style>You could create a geometric column storing points based on coordinates, then use a spatial query to also include near locations.</div><div style><br></div><div style>Recent threads on this list can give you hints:</div>
<div style>   • on creating a geographic column based on lat long values</div><div style>   • on using st_dwithin or nearest neighbor to find locations 7 miles apart.</div><div style><br></div><div style>Nicolas</div></div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On 19 December 2012 10:51, nevillekb <span dir="ltr"><<a href="mailto:nevillekb@gmail.com" target="_blank">nevillekb@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
I have a table in postgresql 9.2 that stores the latitude and longitude of<br>
locations as integer values.<br>
<br>
I intend to do something like when a user searches for a location, he also<br>
gets information on other locations that are within a 7 mile radius of that<br>
searched location.<br>
<br>
How do i use postGIS for this since i am new to it. Any idea.?<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://postgis.17.n6.nabble.com/Using-PostGIS-for-latitude-longitude-tp5002097.html" target="_blank">http://postgis.17.n6.nabble.com/Using-PostGIS-for-latitude-longitude-tp5002097.html</a><br>

Sent from the PostGIS - User mailing list archive at Nabble.com.<br>
_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org">postgis-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users</a><br>
</blockquote></div><br></div>