This example is for people who like to live, or at least dine, dangerously. Using data from the U.S. Geological Survey's RSS feed of recent earthquakes, this pipe uses For Each: Replace and an enclosed Yahoo! Local sub-module to find a restaurant near each quake's epicenter.
First, we fetch the USGS quake feed, then pass it through the Location Extractor module. This adds a y:location element to the feed, which we'll need further down the pipe.
We pipe this output into a For Each: Replace module, and then we drag a Yahoo! Local module into it as a sub-module. We configure For Each: Replace to return only the first item from each Yahoo! Local search.
Within the Yahoo! Local sub-module, we enter "restaurant" as the service we want to find, set the search radius to twenty miles, and then select item.y:location from the drop-down list as our target location. Notice how all the elements from the first feed are automatically available in the drop-down, including the y:location added by the Location Extractor module.
And since the output feed contains geolocation data, the Pipe Preview will even display all the restaurants on a convenient map.
Pipe Web Address: http://pipes.yahoo.com/pipes_team/HmS_i_NS3BG1gg552h2EvQ