English

How To: Find all POI within a rectangle

Summary

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.

Procedure

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.

Example:
whereClause = "X >= -150.0 AND X <= -30.0 AND Y >= 15.0 AND Y <= 60.0"