if you have the coordinates x, y of location and a table with the
location ( "puntos_venta") of the outlets, you can find the closest consultation with the following:<br><br>SELECT id, nombre FROM puntos_venta ORDER BY distance(the_geom,GeomFromText('POINT(x y)',-1)) ASC LIMIT 1<br>

<br>Cordial Saludo,<br><br>Jaime Mejía<br>
<br><br><div class="gmail_quote">2009/6/13  <span dir="ltr"><<a href="mailto:juapabsan@tutopia.com">juapabsan@tutopia.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<p>Buen dia lista.</p><p> </p><p>Agradeceria informacion a lo siguiente,</p><p> </p><p>Quisiera saber si es posible con postgis lo siguiente.</p><p> </p><p>Si tengo un punto de venta ubicado en  una direccion (o ubicacion), y me hacen una llamada, como puedo saber o como lo remito al punto de venta (POS) mas cercano?</p>

<p> </p><p>Es posible con postgis hacer esto?</p><p> </p>Good day list. 
<br>
<br> 
<br>
<br> Would appreciate information on the following, 
<br>
<br> 
<br>
<br> Let me know if it is possible that with PostGIS. 
<br>
<br> 
<br>
<br> If I have a retail outlet located at an address (or location), and
I make a call, or how can I know what it refers to point of sale (POS)
nearest? <br>
<br> 
<br>
<br> PostGIS is possible to do this?<p> 
</p><br><br>_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</a><br>
<a href="http://postgis.refractions.net/mailman/listinfo/postgis-users" target="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br>
<br></blockquote></div><br>