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>