Developer Network Home - Help

ZoneTag Location Services : Cell Location

ZoneTag : Cell Location API

The cell location web service allows you to access the ZoneTag Location Services and get the best known location for a given GSM cell tower ID.

1-2-3 getting started guide

  1. Get an app token. Go here.
  2. Ah, that's pretty much it. Oh yeah, read the following for the Request and Response parameters.
  3. Optional: Personalize location results for your users. This is only for adventurous developers who want to test out the not-yet-released V2 of the APIs. Email us.

Developer Support and Community

If you're building something cool with the cell location web services, 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.

Request URL

http://zonetag.research.yahooapis.com/services/rest/V1/cellLookup.php

Request parameters

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 (required) The cellid of the cellular tower
lac Integer - up to 7 digits (required) The Location Area Code (LAC) of the cellular tower
mnc Integer - up to 3 digits (required) The Mobile Network Code (MNC) of the cellular tower
mcc Integer - up to 3 digits (required) The Mobile Country Code (MCC) of the cellular tower
results integer: default 3, max 10 The number of results to return.
compressed 0 (default) or 1 Setting to 1 will result in a compressed XML version with no redundant location tags.
cellhistory mnc:lac:cellid@timeoffset Collection of individual cell ids that gives the users 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.

Sample Request URL

http://zonetag.research.yahooapis.com/services/rest/V1/cellLookup.php?apptoken=ZoneTagDemoToken&cellid=48627380&lac=201&mnc=15&mcc=234

Response fields

Field Description
Location Contains each location response
Country Country of the celltower. May contain the following attributes :

  • source: Source of the given information.
  • cell: Cell from which the location information was derived. Possible values are current, nearby and history.

State State of the celltower (not available for all locations). May contain the following attributes :

  • source: Source of the given information.
  • cell: Cell from which the location information was derived. Possible values are current, nearby and history.

City City of the celltower. May contain the following attributes :

  • source: Source of the given information.
  • cell: Cell from which the location information was derived. Possible values are current, nearby and history.

Zipcode Postal code of the cell tower. May contain the following attributes :

  • source: Source of the given information.
  • cell: Cell from which the location information was derived. Possible values are current, adjacent and history.

Name Name of the parent element. this is only used in compressed format results.

Sample Response

The following is a sample response for the query for the cellid 4995-6045-380-310:

The following is the response in compressed format for the query for the cellid 4995-6045-380-310:

Errors

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.

Sample Error Message

The following is a sample error message:

Rate Limit

We are only a prototype, small and tiny. So be nice and observe polite etiquette in your requests rates.

Terms of Use

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