How To: Find all POI within a rectangle
To display points on a map, it may be necessary to locate all points of interest (POI) that fall within a rectangular area. At this time, there is no ArcWeb Services method specifically designed for this. However, a 'whereClause' can be used to find the POI.
Use the 'whereClause' parameter to define a bounding extent. This can be used with either the method findNearest or the method findWithin where the radius is set larger than the desired rectangle.
whereClause = "X >= -150.0 AND X <= -30.0 AND Y >= 15.0 AND Y <= 60.0"