Returns SQL query for limiting POIs on a given polygon
public static GetGeoSearchSQLCons ( mixed $p_coordinates, string $p_polygonType = 'rectangle', string $p_tableAlias = 'l' ) : mixed | ||
$p_coordinates | mixed | An array of coordinate lon/lat pairs |
$p_polygonType | string | Polygon type: rectangle (two corners), or polygons with clockwise or counterclockwise corners |
$p_tableAlias | string | Table prefix for the SQL query |
return | mixed |