
The suggested tags web service will allow you to get a list of suggested tags for a given location.
If you're building something cool with the suggested tags web service, please let us know or just swing on by the mailing list and shoot the breeze with other developers/users. Do it all in the zonetag-dev discussion group.
http://zonetag.research.yahooapis.com/services/rest/V1/suggestedTags.php?
See information on constructing REST queries
| Parameter | Value | Description |
|---|---|---|
| apptoken | string (required) | The application token. You can get your app token here. |
| cellid | Integer - up to 7 digits | The cellid of the cellular tower |
| lac | Integer - up to 7 digits | The Location Area Code (LAC) of the cellular tower |
| mnc | Integer - up to 3 digits | The Mobile Network Code (MNC) of the cellular tower |
| mcc | Integer - up to 3 digits | The Mobile Country Code (MCC) of the cellular tower |
| cellhistory | mnc:lac:cellid@timeoffset | Collection of individual terms that gives the user's location history. |
| timeoffset | Integer | Time offset in seconds from the moment the last reading was recorded (only used as part of the cellhistory parameter) |
| latitude | float: -90 to 90 | The latitude of the starting location. |
| longitude | float: -180 to 180 | The longitude of the starting location. If both latitude and longitude are specified, they will take priority over all other location data. If only one of latitude or longitude is specified, both will be ignored. |
| zip | Integer | The zip code of the starting location. |
| output | xml | Desired output format for tag suggestions. |
| ctxttime | integer | Local time of desired tag suggestions (UNIX time). Default is set to current time(PST). |
| Field | Description |
|---|---|
| suggestion | Envelope element that contains the suggestion information |
| id | Id of the suggestion list. |
| location | Contains estimated location of the requested suggestions. |
| city | City name of the current location |
| state | State name of the given suggestion (if applicable) |
| country | Country of the given suggestion. |
| zipcode | Postal code of the given suggestions |
| categories | Envelope node containing the list of the various tag categories |
| catid | Id number of the given category |
| name | Name of the category. |
| tags | Envelope node containing the various tags |
| text | Text of the suggested tag. |
| tagid | Unique id of the suggested tag (if applicable). |
| catid | Category of the suggested tag (if applicable). |
The following is a sample response for the cellid 4995-6045-380-310:
List error codes here
| Error code | Description |
|---|---|
| 1 | Invalid apptoken. |
| 2 | Invalid usertoken. |
| 3 | Application rate-limit exceeded. |
| 4 | User rate-limit exceeded. |
| 10 | Invalid location values. |
| 11 | Invalid cellid. |
| 12 | Invalid lac. |
| 13 | Invalid mnc. |
| 14 | Invalid mcc. |
| 15 | Invalid latitude. |
| 16 | Invalid longitude. |
The following is a sample error message:
We are only a prototype, small and tiny. So be nice and observe polite etiquette in your requests rates.
ZoneTag web services are offered to you for non-commercial use, and are governed by the Yahoo! APIs Terms of Use and the ZoneTag web services Terms of Use.
Copyright © 2008 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Copyright Policy - Job Openings