thanx<span> ibrahim,<br>I was following the tutorial "using PHP/PostgreSql with Google Maps" by mapperz,  they have given an idea how to go about it, but it is very abstract and incomplete.<br>Is there any tutorial of similar kind?<br>
<br><br><br><br></span><div class="gmail_quote">On Fri, Feb 12, 2010 at 1:03 PM, ibrahim saricicek <span dir="ltr"><<a href="mailto:ibrahimsaricicek@gmail.com">ibrahimsaricicek@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi;<br><br>dont know how you'll get the coordinates of a path from google maps, but if you get you should use;<br><br>select <br>st_dwithin((GeomFromText('LINESTRING(x1,y1,...xn,yn)',4326),(your_poi.the_geom),0.001)) limit 5<br>

<br>or <br><br>select st_intersects(st_buffer((GeomFromText('LINESTRING(x1,y1,...xn,yn)',4326),0.001), (your_poi.the_geom))) limit 5<br><br><br>'LINESTRING(x1,y1,...xn,yn)' = path from google maps,<br>4326= Wgs84 projection<br>

0.001= radius of buffer in degrees<br>limit 5 = number of your pois in buffer<br><br>regards..<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><br clear="all"><br>-- <br>Maj Rajesh Gupta<br>Mtech(IT)<br>IIT-Kharagpur<br>Mob: 9232020789<br><br>