Examples

Example 5.1. Retrieving Places for a Given Place Name Using XML Response

XML is the default response format. This example shows the XML response for the following parameters: documentContent=Sunnyvale+CA and documentType=text/plain.

Request URI and Parameters:

http://yboss.yahooapis.com/geo/placespotter?documentContent=Sunnyvale+CA&documentType=text/plain

Response Data:


Example 5.2. Retrieving Places for a Given Place Name Using JSON Response

This example shows the JSON response for the following parameters: documentContent=Sunnyvale+CA, &outputType=json, and &documentType=text/plain.

Request URI and Parameters:

http://yboss.yahooapis.com/geo/placespotter?documentContent=Sunnyvale+CA&outputType=json&documentType=text/plain

Response Data:


Example 5.3. Setting autoDisambiguate=false

Request URI and Parameters:

http://yboss.yahooapis.com/geo/placespotter?documentContent=Sunnyvale+US&documentType=text/plain&autoDisambiguate=false&outputType=xml

Response Data:


Table of Contents