Find a Pizza Restaurant Nearby
Example: Point in polygon search
Click on the map to show Pizza restaurants (from Yahoo! Local Search) that are within 3 minute drive time.
You can use the geometry service to determine spatial relationships between two sets of geometries. The query task can also calculate spatial relationships, but the geometry service exposes more relationship types and can be used with geometries that do not come from ArcGIS Server. For example, this sample finds pizza restaurants from Yahoo! Local within a 3 minute drive of a point that you click. The pizza restaurants are not part of a map service. They are just graphics on the map whose locations come from Yahoo! The drive time polygon is not part of a map service either. It is returned as the result of a geoprocessing service.