You are looking at the HTML representation of the XML format.
HTML is good for debugging, but is unsuitable for application use.
Specify the format parameter to change the output format.
To see the non HTML representation of the XML format, set format=xml.
See the complete documentation, or API help for more information.
<?xml version="1.0"?>
<api>
  <query>
    <pages>
      <page pageid="5" ns="0" title="API">
        <revisions>
          <rev user="Admin" timestamp="2024-10-25T03:49:21Z" comment="https links" contentformat="text/x-wiki" contentmodel="wikitext" xml:space="preserve">{|align=right  
|__TOC__ 
|}
&lt;div style=&quot;font-size: 180%;&quot;&gt;&lt;span style=&quot;color:#505D89&quot;&gt;'''API'''&lt;/span&gt;&lt;/div&gt;&lt;br&gt;

This wiki page describes all available API functions.&lt;br&gt;
Please contact &lt;u&gt;[mailto:[email protected] Unwired Labs]&lt;/u&gt; if you have any suggestions for improvement or bugs to report.

==API key==
Most of the API calls require an API key. This API key can be obtained by registering &lt;u&gt;[https://opencellid.org/ here]&lt;/u&gt;.&lt;br&gt;
All uploaded data will be stored along with this API key. This offers many functions, including the deletion of data from users that provide incorrect data.&lt;br&gt;
It also allows the identification of users that are violating the community server usage policy.

Some smartphone apps also require an API key, for example the &lt;u&gt;[https://play.google.com/store/apps/details?id=info.zamojski.soft.towercollector Tower Collector]&lt;/u&gt;.

In the examples below &quot;apiKey&quot; is used as a place holder for this parameter.

==WebServiceURL==
The base URL (&lt;WebServiceURL&gt;) for the OpenCellID API service. This should be either &lt;code&gt;http://opencellid.org&lt;/code&gt; or &lt;code&gt;https://opencellid.org&lt;/code&gt;.&lt;br&gt;
'''Note:''' HTTPS is recommended for secure communication.&lt;br&gt;

==&quot;changeable&quot; attribute==
The meaning of the &quot;changeable&quot; value returned by some methods is the following:&lt;br&gt;
*some cell positions in the database are precise; for example, the GSM network provider O2 in Germany provides GPS information along with the Cell ID information and software is able to extract this information for OpenCellID.&lt;br&gt;
*in this case, new measurements for the cell are stored and shown on the map; however, their GPS positions are not used for calculating the GPS position of the cell tower.

changeable=1:&lt;br&gt;
the GPS position of the cell tower has been calculated from all available measurements

changeable=0:&lt;br&gt;
the GPS position of the cell tower is precise; no measurements have been used to calculate it.

==Filtering of data==

The following filters are currently applied to all incoming data and decide if a measurement is suspicious or valid.&lt;br&gt;
Suspect data is inserted into a database table with suspect data which can be re-examined at a later stage if required.

{| class=&quot;wikitable sortable&quot; style=&quot;font-size: 85%; text-align: left;&quot;
|-
! scope=&quot;col&quot; | Parameter
! scope=&quot;col&quot; | Rules
|-
| title=Parameter | act 
| tilte=&quot;Rules&quot; | must be one of supported type:&lt;br&gt;1xRTT, CDMA, eHRPD, IS95A, IS95B, EVDO_0, EVDO_A, EVDO_B, UMTS, HSPA+, HSDPA, HSUPA, HSPA, LTE, LTECATM, NR, NBIOT, EDGE, GPRS, GSM
|-
| title=&quot;Parameter&quot; | MCC
| title=&quot;Rules&quot; | must be known in the database
|-
| title=&quot;Parameter&quot; | MCC
| title=&quot;Rules&quot; | must be in the range of 100 to 999
|-
| title=&quot;Parameter&quot; | MNC/SID
| title=&quot;Rules&quot; | must be known in the database
|-
| title=&quot;Parameter&quot; | MNC
| title=&quot;Rules&quot; | must be in the range of 0 to 999 for GSM, UMTS, LTE, NR and NBIOT
|-
| title=&quot;Parameter&quot; | MNC/SID
| title=&quot;Rules&quot; | must be in the range of 0 to 32767 for CDMA
|-
| title=&quot;Parameter&quot; | LAC/TAC/NID
| title=&quot;Rules&quot; | must be in the range of 1 to 65535 for all radios except NR, 0 to 16777215 for NR.
|-
| title=&quot;Parameter&quot; | CID
| title=&quot;Rules&quot; | must be in the range of 1 to 65535 for GSM
|-
| title=&quot;Parameter&quot; | CID
| title=&quot;Rules&quot; | must be in the range of 1 to 268435455 for UMTS and LTE, 1 to 68719476735 for NR
|-
| title=&quot;Parameter&quot; | CID/BID
| title=&quot;Rules&quot; | must be in the range 1 to 65535 for CDMA
|-
| title=&quot;Parameter&quot; | longitude
| title=&quot;Rules&quot; | must be float (not integer)
|-
| title=&quot;Parameter&quot; | longitude
| title=&quot;Rules&quot; | must be in the range: (-180,0) U (0,180)
|-
| title=&quot;Parameter&quot; | longitude
| title=&quot;Rules&quot; | must be != 0
|-
| title=&quot;Parameter&quot; | latitude
| title=&quot;Rules&quot; | must be float (not integer)
|-
| title=&quot;Parameter&quot; | latitude
| title=&quot;Rules&quot; | must be in the range: (-90,0) U (0,90)
|-
| title=&quot;Parameter&quot; | latitude
| title=&quot;Rules&quot; | must be != 0
|}

{| class=&quot;wikitable sortable&quot; style=&quot;font-size: 85%; text-align: left;&quot;
|-
! scope=&quot;col&quot; | Parameters
! scope=&quot;col&quot; | Rules
|-
| title=Parameter | MCC,MNC,LAC,CID,longitude,latitude
| tilte=&quot;Rules&quot; | must have unique coordinates for the cell
|-
| title=&quot;Parameter&quot; | MCC,longitude,latitude
| title=&quot;Rules&quot; | must have coordinates in the home country
|-
| title=&quot;Parameter&quot; | MCC,MNC,LAC,CID,longitude,latitude
| title=&quot;Rules&quot; | must be closer than 150 km away from the cell (only in case of precise cells)
|}

The following filters are currently applied to optional fields in all incoming data.&lt;br&gt;
If an optional field has invalid value, then only the value is rejected.

{| class=&quot;wikitable sortable&quot; style=&quot;font-size: 85%; text-align: left;&quot;
|-
! scope=&quot;col&quot; | Parameter
! scope=&quot;col&quot; | Rules
|-
| title=Parameter | measured_at 
| tilte=&quot;Rules&quot; | must be in one of supported date formats:&lt;br&gt;- timestamp (milliseconds since 1/1/1970 00:00:00 GMT),&lt;br&gt;- &quot;yyyy-MM-dd HH:mm:ss&quot;,&lt;br&gt;- &quot;yyyyMMddHHmmss&quot;,&lt;br&gt;- &quot;yyyy-MM-dd HH:mm:ss.SSSZ&quot;,&lt;br&gt;- &quot;yyyy-MM-dd&quot;
|-
| title=&quot;Parameter&quot; | signal
| title=&quot;Rules&quot; | 
{| class=&quot;wikitable sortable&quot; style=&quot;font-size: 85%; text-align: left;&quot;
|-
! scope=&quot;col&quot; | Technology
! scope=&quot;col&quot; | Rules
|-
| title=&quot;Technology&quot; | GSM
| title=&quot;Rules&quot; | RSSI in dBm in the range of -51 to -113 or ASU in the range of 0 to 31
|-
| title=&quot;Technology&quot; | UMTS
| title=&quot;Rules&quot; | RSCP in dBm in the range of -25 to -121 or ASU in the range of -5 to 91
|-
| title=&quot;Technology&quot; | LTE
| title=&quot;Rules&quot; | RSRP in dBm in the range of -45 to -137 or ASU in the range of 0 to 95
|-
| title=&quot;Technology&quot; | NR
| title=&quot;Rules&quot; | RSRP in dBm in the range of -44 to -140 or ASU in the range of 0 to 97
|-
| title=&quot;Technology&quot; | CDMA
| title=&quot;Rules&quot; | RSSI in dBm in the range of -75 to -100 or ASU in the range of 1 to 16
|}
|-
| title=&quot;Parameter&quot; | rating
| title=&quot;Rules&quot; | must be in metres in the range of 0 to 35000
|-
| title=&quot;Parameter&quot; | speed
| title=&quot;Rules&quot; | must be in metres/second in the range of 0 to 300
|-
| title=&quot;Parameter&quot; | direction
| title=&quot;Rules&quot; | must be in the range of 0 to 360
|-
| title=&quot;Parameter&quot; | ta
| title=&quot;Rules&quot; | only for GSM and LTE; must be in the range of 0 to 63
|-
| title=&quot;Parameter&quot; | psc
| title=&quot;Rules&quot; | only for UMTS; must be in the range of 0 to 511
|-
| title=&quot;Parameter&quot; | pci
| title=&quot;Rules&quot; | only for LTE; must be in the range of 0 to 503
|-
| title=&quot;Parameter&quot; | txp
| title=&quot;Rules&quot; | must be in the range of -200 to 100
|-
| title=&quot;Parameter&quot; | tsrf
| title=&quot;Rules&quot; | must be in the range of -100 to 100
|}

==Payload legend==

A typical payload for API requests and Measurement submissions may include some or all of the following parameters:

{| class=&quot;wikitable sortable&quot; style=&quot;font-size: 85%; text-align: left;&quot;
|-
! scope=&quot;col&quot; | Parameter
! scope=&quot;col&quot; | Data type
! scope=&quot;col&quot; | Description
! scope=&quot;col&quot; | Optional
|-
| title=&quot;Parameter&quot; | &lt;apiKey&gt;
| title=&quot;Data type&quot; | string
| title=&quot;Description&quot; | API key assigned to the user submitting the measurement
| title=&quot;Optional&quot; | no
|-
| title=&quot;Parameter&quot; | &lt;lat&gt;
| title=&quot;Data type&quot; | double
| title=&quot;Description&quot; | Latitude
| title=&quot;Optional&quot; | no
|-
| title=&quot;Parameter&quot; | &lt;lon&gt;
| title=&quot;Data type&quot; | double
| title=&quot;Description&quot; | Longitude
| title=&quot;Optional&quot; | no
|-
| title=&quot;Parameter&quot; | &lt;mcc&gt;
| title=&quot;Data type&quot; | integer
| title=&quot;Description&quot; | Mobile country code
| title=&quot;Optional&quot; | no&lt;br&gt;(except CDMA)
|-
| title=&quot;Parameter&quot; | &lt;mnc&gt;
| title=&quot;Data type&quot; | integer
| title=&quot;Description&quot; | Mobile network code or system identifier
| title=&quot;Optional&quot; | no&lt;br&gt;(except CDMA if sid is provided)
|-
| title=&quot;Parameter&quot; | &lt;lac&gt;
| title=&quot;Data type&quot; | integer 
| title=&quot;Description&quot; | Local area code, tracking area code or network id
| title=&quot;Optional&quot; | no&lt;br&gt;(except CDMA if nid is provided or LTE or NR if tac is provided)
|-
| title=&quot;Parameter&quot; | &lt;cellid&gt;
| title=&quot;Data type&quot; | integer
| title=&quot;Description&quot; | Cell tower id or base station id
| title=&quot;Optional&quot; | no&lt;br&gt;(except CDMA if bid is provided)
|-
| title=&quot;Parameter&quot; | &lt;signal&gt;
| title=&quot;Data type&quot; | integer
| title=&quot;Description&quot; | Signal level: either in dBm or as defined in TS 27.007 8.5; both is accepted.
| title=&quot;Optional&quot; | yes
|-
| title=&quot;Parameter&quot; | &lt;measured_at&gt;
| title=&quot;Data type&quot; | date
| title=&quot;Description&quot; | When the measurement was measured.&lt;br&gt;Supported date formats:&lt;br&gt;- timestamp (milliseconds since 1/1/1970 00:00:00 GMT)&lt;br&gt;- &quot;yyyy-MM-dd HH:mm:ss&quot;&lt;br&gt;- &quot;yyyyMMddHHmmss&quot;&lt;br&gt;- &quot;yyyy-MM-dd HH:mm:ss.SSSZ&quot;&lt;br&gt;- &quot;yyyy-MM-dd&quot;&lt;br&gt;Time zone: UTC
| title=&quot;Optional&quot; | yes
|-
| title=&quot;Parameter&quot; | &lt;rating&gt;
| title=&quot;Data type&quot; | double
| title=&quot;Description&quot; | GPS quality/accuracy information (metres)
| title=&quot;Optional&quot; | yes
|-
| title=&quot;Parameter&quot; | &lt;speed&gt;
| title=&quot;Data type&quot; | double
| title=&quot;Description&quot; | Speed when creating the measurement, in metres/second
| title=&quot;Optional&quot; | yes
|-
| title=&quot;Parameter&quot; | &lt;direction&gt;
| title=&quot;Data type&quot; | double
| title=&quot;Description&quot; | Heading direction when creating the measurement&lt;br&gt;(0=north, 90=east)
| title=&quot;Optional&quot; | yes
|-
| title=&quot;Parameter&quot; | &lt;act&gt;
| title=&quot;Data type&quot; | string
| title=&quot;Description&quot; | Network access type; currently supported:&lt;br&gt;1xRTT, CDMA, eHRPD, IS95A, IS95B, EVDO_0, EVDO_A, EVDO_B, UMTS, HSPA+, HSDPA, HSUPA, HSPA, TDSCDMA, LTE, LTECATM, NR, NBIOT, EDGE, GPRS, GSM&lt;br&gt;
{| class=&quot;wikitable sortable&quot; style=&quot;font-size: 85%; text-align: left;&quot;
|-
! scope=&quot;col&quot; | Technology
! scope=&quot;col&quot; | Type
! scope=&quot;col&quot; | Description
|-
| title=&quot;Technology&quot; | CDMA
| title=&quot;Type&quot; | 1xRTT
| title=&quot;Description&quot; | single-carrier Radio Transmission Technology (2.5G)
|-
| title=&quot;Technology&quot; | CDMA
| title=&quot;Type&quot; | CDMA (includes IS95A, IS95B)
| title=&quot;Description&quot; | Code division multiple access
|-
| title=&quot;Technology&quot; | CDMA
| title=&quot;Type&quot; | eHRPD
| title=&quot;Description&quot; | Enhanced High Rate Packet Data
|-
| title=&quot;Technology&quot; | CDMA
| title=&quot;Type&quot; | EVDO_0
| title=&quot;Description&quot; | Evolution-Data Optimized Revision 0
|-
| title=&quot;Technology&quot; | CDMA
| title=&quot;Type&quot; | EVDO_A
| title=&quot;Description&quot; | Evolution-Data Optimized Revision A
|-
| title=&quot;Technology&quot; | CDMA
| title=&quot;Type&quot; | EVDO_B
| title=&quot;Description&quot; | Evolution-Data Optimized Revision B
|-
| title=&quot;Technology&quot; | UMTS
| title=&quot;Type&quot; | UMTS
| title=&quot;Description&quot; | UMTS access
|-
| title=&quot;Technology&quot; | UMTS
| title=&quot;Type&quot; | HSPA+
| title=&quot;Description&quot; | High speed Packet Access
|-
| title=&quot;Technology&quot; | UMTS
| title=&quot;Type&quot; | HSDPA
| title=&quot;Description&quot; | High Speed Downlink Packet Access
|-
| title=&quot;Technology&quot; | UMTS
| title=&quot;Type&quot; | HSUPA
| title=&quot;Description&quot; | High Speed Uplink Packet Access
|-
| title=&quot;Technology&quot; | UMTS
| title=&quot;Type&quot; | HSPA
| title=&quot;Description&quot; | = &quot;HSDPA/HSUPA&quot; = High Speed Packet Access (both downlink and uplink)
|-
| title=&quot;Technology&quot; | UMTS
| title=&quot;Type&quot; | TDSCDMA
| title=&quot;Description&quot; | = &quot;TDSCDMA&quot; = Time Division Synchronous Code Division Multiple Access (TD-SCDMA)
|-
| title=&quot;Technology&quot; | LTE
| title=&quot;Type&quot; | LTE
| title=&quot;Description&quot; | Long term evolution
|-
| title=&quot;Technology&quot; | LTE
| title=&quot;Type&quot; | LTECATM
| title=&quot;Description&quot; | Long term evolution CAT-M network
|-
| title=&quot;Technology&quot; | NR
| title=&quot;Type&quot; | NR
| title=&quot;Description&quot; | New Radio (5G)
|-
| title=&quot;Technology&quot; | NBIOT
| title=&quot;Type&quot; | NBIOT
| title=&quot;Description&quot; | Narrowband IoT
|-
| title=&quot;Technology&quot; | iDEN
| title=&quot;Type&quot; | iDEN
| title=&quot;Description&quot; | Integrated Digital Enhanced Network
|-
| title=&quot;Technology&quot; | GSM
| title=&quot;Type&quot; | EDGE
| title=&quot;Description&quot; | Enhanced Data Rates for GSM Evolution
|-
| title=&quot;Technology&quot; | GSM
| title=&quot;Type&quot; | GPRS
| title=&quot;Description&quot; | GPRS access
|}
| title=&quot;Optional&quot; | yes
|-
| title=&quot;Parameter&quot; | &lt;ta&gt;
| title=&quot;Data type&quot; | integer
| title=&quot;Description&quot; | Timing advance; only for GSM and LTE
| title=&quot;Optional&quot; | yes
|-
| title=&quot;Parameter&quot; | &lt;psc&gt;
| title=&quot;Data type&quot; | integer
| title=&quot;Description&quot; | Primary scrambling code; only for UMTS and TDSCDMA
| title=&quot;Optional&quot; | yes
|-
| title=&quot;Parameter&quot; | &lt;tac&gt;
| title=&quot;Data type&quot; | integer
| title=&quot;Description&quot; | Tracking area code; only for LTE or NR
| title=&quot;Optional&quot; | yes
|-
| title=&quot;Parameter&quot; | &lt;pci&gt;
| title=&quot;Data type&quot; | integer
| title=&quot;Description&quot; | Physical cell Id; only for LTE or NR
| title=&quot;Optional&quot; | yes
|-
| title=&quot;Parameter&quot; | &lt;sid&gt;
| title=&quot;Data type&quot; | integer
| title=&quot;Description&quot; | System identifier; only for CDMA
| title=&quot;Optional&quot; | yes
|-
| title=&quot;Parameter&quot; | &lt;nid&gt;
| title=&quot;Data type&quot; | integer
| title=&quot;Description&quot; | Network id; only for CDMA
| title=&quot;Optional&quot; | yes
|-
| title=&quot;Parameter&quot; | &lt;bid&gt;
| title=&quot;Data type&quot; | integer
| title=&quot;Description&quot; | Base station id; only for CDMA
| title=&quot;Optional&quot; | yes
|-
| title=&quot;Parameter&quot; | &lt;devn&gt;
| title=&quot;Data type&quot; | string
| title=&quot;Description&quot; | Device name as concatenated strings with the manufacturer and the model name; max 50 characters
| title=&quot;Optional&quot; | yes
|-
| title=&quot;Parameter&quot; | &lt;txp&gt;
| title=&quot;Data type&quot; | integer
| title=&quot;Description&quot; | TX power in dBm
| title=&quot;Optional&quot; | yes
|-
| title=&quot;Parameter&quot; | &lt;tsrf&gt;
| title=&quot;Data type&quot; | integer
| title=&quot;Description&quot; | Temperature in the RF module; in degrees Celsius; only with &lt;txp&gt; parameter
| title=&quot;Optional&quot; | yes
|}


==Error codes==

The following error codes might be returned by OpenCellID services:

{| class=&quot;wikitable sortable&quot; style=&quot;font-size: 85%; text-align: left;&quot;
|-
! scope=&quot;col&quot; | Error code
! scope=&quot;col&quot; | HTTP code
! scope=&quot;col&quot; | Description 
|-
| title=&quot;Error code&quot; | 1
| title=&quot;HTTP code&quot; | 200
| title=&quot;Description &quot; | Cell not found
|-
| title=&quot;Error code&quot; | 2
| title=&quot;HTTP code&quot; | 401 
| title=&quot;Description &quot; | Invalid API key
|-
| title=&quot;Error code&quot; | 3
| title=&quot;HTTP code&quot; | 400 
| title=&quot;Description &quot; | Invalid input data
|-
| title=&quot;Error code&quot; | 4
| title=&quot;HTTP code&quot; | 403
| title=&quot;Description &quot; | Your API key must be white listed in order to run this operation. This service is free of charge as long as your application contributes to the OpenCellID project. Should your application meet this requirement, please contact [email protected] for the authorisation of your API key.&lt;br&gt;&lt;br&gt;For further details please visit:&lt;br&gt;https://wiki.opencellid.org/wiki/Commercial_users&lt;br&gt;https://wiki.opencellid.org/wiki/Request_whitelisting&lt;br&gt;&lt;br&gt;You can alternatively download the database here:&lt;br&gt;https://opencellid.org/downloads/
|-
| title=&quot;Error code&quot; | 5
| title=&quot;HTTP code&quot; | 500
| title=&quot;Description &quot; | Internal server error
|-
| title=&quot;Error code&quot; | 6
| title=&quot;HTTP code&quot; | 503
| title=&quot;Description &quot; | Too many requests. Try later again.
|-
| title=&quot;Error code&quot; | 7
| title=&quot;HTTP code&quot; | 429
| title=&quot;Description &quot; | Daily limit 1000 requests exceeded for your API key.&lt;br&gt;&lt;br&gt;For further details please visit:&lt;br&gt;https://wiki.opencellid.org/wiki/Commercial_users&lt;br&gt;&lt;br&gt;You can alternatively download the database here:&lt;br&gt;https://opencellid.org/downloads/
|}

==Adding a single measurement==

GET/POST request to
&lt;pre&gt;
https://&lt;WebServiceURL&gt;/measure/add
&lt;/pre&gt;

===Parameters===
&lt;WebServiceURL&gt;: the URL to the web service

===Payload===
key=&lt;apiKey&gt;&amp;lat=&lt;lat&gt;&amp;lon=&lt;lon&gt;&amp;mcc=&lt;mcc&gt;&amp;mnc=&lt;mnc&gt;&amp;lac=&lt;lac&gt;&amp;cellid=&lt;cellid&gt;&amp;signal=&lt;signal&gt;&amp;measured_at=&lt;measured_at&gt;&amp;rating=&lt;rating&gt;&amp;speed=&lt;speed&gt;&amp;direction=&lt;direction&gt;&amp;act=&lt;act&gt;&amp;ta=&lt;ta&gt;&amp;psc=&lt;psc&gt;&amp;tac=&lt;tac&gt;&amp;pci=&lt;pci&gt;&amp;sid=&lt;sid&gt;&amp;nid=&lt;nid&gt;&amp;bid=&lt;bid&gt;&amp;devn=&lt;devn&gt;&amp;txp=&lt;txp&gt;&amp;tsrf=&lt;tsrf&gt;

Where


===Response===
Upon successful insert, HTTP 200 is returned with the string &quot;Your measurement has been inserted.&quot;

===Example===
&lt;u&gt;https://opencellid.org/measure/add?key=xxx&amp;lat=10.11&amp;lon=11.12&amp;mcc=100&amp;mnc=10&amp;lac=11&amp;cellid=12&amp;rating=10&amp;direction=90&amp;act=GPRS&lt;/u&gt;&lt;br&gt;
&lt;u&gt;https://opencellid.org/measure/add?key=xxx&amp;lat=10.11&amp;lon=11.12&amp;mcc=100&amp;mnc=10&amp;lac=11&amp;cellid=12&amp;rating=10.1&amp;direction=90.3&amp;speed=12.3&amp;act=GPRS&amp;ta=3&lt;/u&gt;&lt;br&gt;
&lt;u&gt;https://opencellid.org/measure/add?key=xxx&amp;lat=10.11&amp;lon=11.12&amp;mcc=100&amp;mnc=10&amp;lac=11&amp;cellid=12&amp;rating=10.1&amp;direction=90.3&amp;speed=12.3&amp;act=HSPA+&amp;psc=3&lt;/u&gt;&lt;br&gt;
&lt;u&gt;https://opencellid.org/measure/add?key=xxx&amp;lat=10.11&amp;lon=11.12&amp;mcc=100&amp;mnc=10&amp;lac=11&amp;cellid=12&amp;rating=10.1&amp;direction=90.3&amp;speed=12.3&amp;act=LTE&amp;pci=3&lt;/u&gt;&lt;br&gt;
&lt;u&gt;https://opencellid.org/measure/add?key=xxx&amp;lat=10.11&amp;lon=11.12&amp;mcc=100&amp;mnc=10&amp;tac=11&amp;cellid=12&amp;rating=10.1&amp;direction=90.3&amp;speed=12.3&amp;act=LTE&amp;pci=3&lt;/u&gt;&lt;br&gt;
&lt;u&gt;https://opencellid.org/measure/add?key=xxx&amp;lat=10.11&amp;lon=11.12&amp;mcc=100&amp;mnc=10&amp;lac=11&amp;cellid=12&amp;rating=10.1&amp;direction=90.3&amp;speed=12.3&amp;act=1xRTT&lt;/u&gt;&lt;br&gt;
&lt;u&gt;https://opencellid.org/measure/add?key=xxx&amp;lat=10.11&amp;lon=11.12&amp;mcc=100&amp;sid=10&amp;nid=11&amp;bid=12&amp;rating=10.1&amp;direction=90.3&amp;speed=12.3&amp;act=1xRTT&lt;/u&gt;&lt;br&gt;
&lt;u&gt;https://opencellid.org/measure/add?key=xxx&amp;lat=10.11&amp;lon=11.12&amp;sid=10&amp;nid=11&amp;bid=12&amp;rating=10.1&amp;direction=90.3&amp;speed=12.3&amp;act=eHRPD&lt;/u&gt;&lt;br&gt;
&lt;u&gt;https://opencellid.org/measure/add?key=xxx&amp;lat=10.11&amp;lon=11.12&amp;mcc=100&amp;mnc=10&amp;lac=11&amp;cellid=12&amp;act=GSM&amp;devn=Samsung%20GT-S5830L&amp;txp=-45&amp;tsrf=22&lt;/u&gt;

===Time needed for processing newly uploaded measurements===
After uploading new measurements to the OpenCellID community servers they are added to our waiting queues and processed in the background.
We aim the real-time processing, but maximum time depends on traffic on OpenCellID servers. Current throughput of our servers is around 15000 measurements per second.

Measurements are processed in 3 steps: 

# parsing and filtering raw data
# updating measurement statistics and storing measurements in the database
# updating existing cell towers information or adding new cell towers to the database

Our waiting queues for cell towers and for measurements are independent, so you can see your measurements in the OpenCellID database but related cell towers might be not updated yet. This means that if you upload a measurement of a cell tower that was not in the database before and the waiting queue for cell towers has some data to process, you have to expect some times (usually few minutes) until the queue delivers the newly uploaded cell tower information.

==Uploading measurements from a CSV file==

POST request to
&lt;pre&gt;
https://&lt;WebServiceURL&gt;/measure/uploadCsv
&lt;/pre&gt;

===Parameters===
&lt;WebServiceURL&gt;: the URL to the web service

===Payload===
CSV file of the following format:
&lt;pre&gt;
mcc,mnc,lac,cellid,lon,lat,signal,measured_at,rating,speed,direction,act,ta,psc,tac,pci,sid,nid,bid
100,2,434,9200,9.436598,52.892139,4,1389472208000,5.4,0,0,GPRS,3,,,,,,
100,2,434,9200,9.441658,52.890351,4,1389472225000,20.1,10.4,90.1,HSPA+,,4,,,,,
100,2,434,9200,9.441658,52.890351,4,1389472225000,20.1,10.4,90.1,LTE,,,,4,,,
100,2,,9200,9.441658,52.890351,4,1389472225000,20.1,10.4,90.1,LTE,,,434,4,,,
100,2,432,9200,9.441658,52.890351,4,1389472225000,20.1,10.4,90.1,LTE,,,432,4,,,
100,1234,432,9201,9.441658,52.890351,4,1389472225000,20.1,10.4,90.1,eHRPD,,,,,,,
100,1234,432,9201,9.441658,52.890351,4,1389472225000,20.1,10.4,90.1,eHRPD,,,,,1234,432,9201
100,,,,9.441658,52.890351,4,1389472225000,20.1,10.4,90.1,1xRTT,,,,,1234,432,9201
,,,,9.441658,52.890351,4,1389472225000,20.1,10.4,90.1,eHRPD,,,,,1234,432,9201
...
&lt;/pre&gt;
Column names recognised:&lt;br&gt;
mcc, mnc, lac, cellid, lat, lon, signal, measured_at, rating, speed, direction, act, ta, psc, tac, pci, sid, nid, bid

Maximum file size:&lt;br&gt;
2 MB; upload multiple files if you want to upload more data.

Supplemented by the parameter ''key=&lt;apiKey&gt;'' as form POST field, which is the user's API key.


===Response===
Upon successful insert, HTTP 200 is returned with the string &quot;0,OK&quot;.

===Business logic===
The request is handled by de.enaikoon.gpssuite.web.measure.NewMeasureController.

===cURL command===
&lt;syntaxhighlight lang=&quot;bash&quot;&gt;
curl -F &quot;key=apiKey&quot; -F &quot;datafile=@/path/to/file/mydata.csv;type=text/plain&quot; https://opencellid.org/measure/uploadCsv
&lt;/syntaxhighlight&gt;

===Time needed for processing newly uploaded measurements===
After uploading new measurements to the OpenCellID community servers they are added to our waiting queues and processed in the background.
We aim the real-time processing, but maximum time depends on traffic on OpenCellID servers. Current throughput of our servers is around 15000 measurements per second.

Measurements are processed in 3 steps: 

# parsing and filtering raw data
# updating measurement statistics and storing measurements in the database
# updating existing cell towers information or adding new cell towers to the database

Our waiting queues for cell towers and for measurements are independent, so you can see your measurements in the OpenCellID database but related cell towers might be not updated yet. This means that if you upload a measurement of a cell tower that was not in the database before and the waiting queue for cell towers has some data to process, you have to expect some times (usually few minutes) until the queue delivers the newly uploaded cell tower information.

===FAQ===
&lt;b&gt;What does &quot;optional&quot; mean?&lt;/b&gt;&lt;br&gt;
&quot;optional&quot; means that this field is not required in the csv file.&lt;br&gt;
Minimal csv file looks as follows:&lt;br&gt;
&lt;pre&gt;
mcc,mnc,lac,cellid,lon,lat
262,2,434,9200,9.436598,52.892139
&lt;/pre&gt;

&lt;b&gt;What does &quot;Supplemented by the parameter key=&lt;apiKey&gt; as form POST field, which is the user's API key&quot; mean?&lt;/b&gt;&lt;br&gt;
This means that the user must send his data (apiKey and csv file) in the same way as from the following form:&lt;br&gt;
&lt;syntaxhighlight lang=&quot;html5&quot;&gt;
&lt;form method=&quot;post&quot; action=&quot;https://opencellid.org/measure/uploadCsv&quot; enctype=&quot;multipart/form-data&quot;&gt;
  apiKey: &lt;input type=&quot;text&quot; name=&quot;key&quot; /&gt;
  CSV (max 2MB): &lt;input type=&quot;file&quot; name=&quot;datafile&quot; /&gt;
  &lt;input type=&quot;submit&quot; name=&quot;upload&quot; value=&quot;Upload&quot;/&gt;
&lt;/form&gt;
&lt;/syntaxhighlight&gt;

&lt;b&gt;What does the following error mean?&lt;/b&gt;&lt;br&gt;
&lt;syntaxhighlight lang=&quot;xml&quot;&gt;
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;rsp stat=&quot;fail&quot;&gt;&lt;err info=&quot;cell not found&quot; code=&quot;1&quot;/&gt;&lt;/rsp&gt;
&lt;/syntaxhighlight&gt;

This error message means that no cell was found for the given user criteria (mcc-mnc-lac-cid combination was not found in database).

&lt;b&gt;Can I upload CDMA using mcc-mnc-lac-cellid parameters?&lt;/b&gt;&lt;br&gt;
Yes, you can use mnc as sid, lac as nid and cellid as bid.

==Uploading measurements from a JSON file==

POST request to
&lt;pre&gt;
https://&lt;WebServiceURL&gt;/measure/uploadJson
&lt;/pre&gt;

===Parameters===
&lt;WebServiceURL&gt;: the URL to the web service

===Payload===
JSON file (send in ''datafile'' parameter) of the following format:

&lt;syntaxhighlight lang=&quot;javascript&quot;&gt;
{
    &quot;measurements&quot;: [
        {
            &quot;lon&quot;: 9.436598,
            &quot;lat&quot;: 52.892139,
            &quot;mcc&quot;: 100,
            &quot;mnc&quot;: 2,
            &quot;lac&quot;: 434,
            &quot;cellid&quot;: 9200,
            &quot;measured_at&quot;: 1389472224000,
            &quot;signal&quot;: -80,
            &quot;rating&quot;: 5.4,
            &quot;speed&quot;: 2.32,
            &quot;direction&quot;: 93.22,
            &quot;act&quot;: &quot;EDGE&quot;,
            &quot;ta&quot;: 3
        },
        {
            &quot;lon&quot;: 9.441658,
            &quot;lat&quot;: 52.890351,
            &quot;mcc&quot;: 100,
            &quot;mnc&quot;: 2,
            &quot;lac&quot;: 3,
            &quot;cellid&quot;: 9200,
            &quot;measured_at&quot;: 1389472225000,
            &quot;signal&quot;: -80,
            &quot;speed&quot;: 11.21,
            &quot;act&quot;: &quot;HSDPA&quot;,
            &quot;psc&quot;: 2
        },
        {
            &quot;lon&quot;: 9.441658,
            &quot;lat&quot;: 52.890351,
            &quot;mcc&quot;: 100,
            &quot;mnc&quot;: 2,
            &quot;lac&quot;: 321,
            &quot;cellid&quot;: 9200,
            &quot;measured_at&quot;: 1389472226000,
            &quot;signal&quot;: -80,
            &quot;rating&quot;: 11.21,
            &quot;act&quot;: &quot;LTE&quot;,
            &quot;pci&quot;: 2
        },
        {
            &quot;lon&quot;: 9.441658,
            &quot;lat&quot;: 52.890351,
            &quot;mcc&quot;: 100,
            &quot;mnc&quot;: 2,
            &quot;tac&quot;: 321,
            &quot;cellid&quot;: 9200,
            &quot;measured_at&quot;: 1389472227000,
            &quot;signal&quot;: -80,
            &quot;act&quot;: &quot;LTE&quot;
        },
        {
            &quot;lon&quot;: 9.441658,
            &quot;lat&quot;: 52.890351,
            &quot;mcc&quot;: 100,
            &quot;mnc&quot;: 12345,
            &quot;lac&quot;: 1,
            &quot;cellid&quot;: 2,
            &quot;measured_at&quot;: 1389472228000,
            &quot;signal&quot;: -80,
            &quot;act&quot;: &quot;eHRPD&quot;
        },
        {
            &quot;lon&quot;: 9.441658,
            &quot;lat&quot;: 52.890351,
            &quot;mcc&quot;: 100,
            &quot;sid&quot;: 12345,
            &quot;nid&quot;: 1,
            &quot;bid&quot;: 2,
            &quot;measured_at&quot;: 1389472229000,
            &quot;signal&quot;: -80,
            &quot;act&quot;: &quot;EVDO_0&quot;
        }
    ]
}
&lt;/syntaxhighlight&gt;

Field names recognised:&lt;br&gt;
mcc, mnc, lac, cellid, lat, lon, signal, measured_at, rating, speed, direction, act, ta, psc, tac, pci, sid, nid, bid

Maximum file size:&lt;br&gt;
2 MB; upload multiple files if you want to upload more data.

Supplemented by the parameter ''key=&lt;apiKey&gt;'' as form POST field, which is the user's API key.

===Response===
Upon successful insert, HTTP 200 is returned with ''application/json'' content type and following json document as a content: ''{&quot;code&quot;:0,&quot;status&quot;:&quot;OK&quot;}''

===Business logic===
The request is handled by de.enaikoon.gpssuite.web.measure.NewMeasureController.

===cURL command===
&lt;syntaxhighlight lang=&quot;bash&quot;&gt;
curl -F &quot;key=apiKey&quot; -F &quot;datafile=@/path/to/file/mydata.json;type=text/plain&quot; https://opencellid.org/measure/uploadJson
&lt;/syntaxhighlight&gt;

===Time needed for processing newly uploaded measurements===
After uploading new measurements to the OpenCellID community servers they are added to our waiting queues and processed in the background.
We aim the real-time processing, but maximum time depends on traffic on OpenCellID servers. Current throughput of our servers is around 15000 measurements per second.

Measurements are processed in 3 steps: 

# parsing and filtering raw data
# updating measurement statistics and storing measurements in the database
# updating existing cell towers information or adding new cell towers to the database

Our waiting queues for cell towers and for measurements are independent, so you can see your measurements in the OpenCellID database but related cell towers might be not updated yet. This means that if you upload a measurement of a cell tower that was not in the database before and the waiting queue for cell towers has some data to process, you have to expect some times (usually few minutes) until the queue delivers the newly uploaded cell tower information.

===FAQ===
&lt;b&gt;What does &quot;optional&quot; mean?&lt;/b&gt;&lt;br&gt;
&quot;optional&quot; means that this field is not required in the json file.&lt;br&gt;
Minimal json file looks as follows:&lt;br&gt;
&lt;syntaxhighlight lang=&quot;javascript&quot;&gt;
{
    &quot;measurements&quot;: [
        {
            &quot;lon&quot;: 9.436598,
            &quot;lat&quot;: 52.892139,
            &quot;mcc&quot;: 262,
            &quot;mnc&quot;: 2,
            &quot;lac&quot;: 434,
            &quot;cellid&quot;: 9200
        }
    ]
}
&lt;/syntaxhighlight&gt;

&lt;b&gt;What does &quot;Supplemented by the parameter key=&lt;apiKey&gt; as form POST field, which is the user's API key&quot; mean?&lt;/b&gt;&lt;br&gt;
This means that the user must send his data (apiKey and json file) in the same way as from the following form:&lt;br&gt;
&lt;syntaxhighlight lang=&quot;html5&quot;&gt;
&lt;form method=&quot;post&quot; action=&quot;https://opencellid.org/measure/uploadJson&quot; enctype=&quot;multipart/form-data&quot;&gt;
  apiKey: &lt;input type=&quot;text&quot; name=&quot;key&quot; /&gt;
  JSON (max 2MB): &lt;input type=&quot;file&quot; name=&quot;datafile&quot; /&gt;
  &lt;input type=&quot;submit&quot; name=&quot;upload&quot; value=&quot;Upload&quot;/&gt;
&lt;/form&gt;
&lt;/syntaxhighlight&gt;

&lt;b&gt;What does the following error mean?&lt;/b&gt;&lt;br&gt;
&lt;syntaxhighlight lang=&quot;xml&quot;&gt;
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;rsp stat=&quot;fail&quot;&gt;&lt;err info=&quot;cell not found&quot; code=&quot;1&quot;/&gt;&lt;/rsp&gt;
&lt;/syntaxhighlight&gt;

This error message means that no cell was found for the given user criteria (mcc-mnc-lac-cid combination was not found in database).

&lt;b&gt;Can I upload CDMA using mcc-mnc-lac-cellid parameters?&lt;/b&gt;&lt;br&gt;
Yes, you can use mnc as sid, lac as nid and cellid as bid.

==Uploading measurements from CLF3 file==

POST request to
&lt;pre&gt;
https://&lt;WebServiceURL&gt;/measure/uploadClf
&lt;/pre&gt;

===Parameters===
&lt;WebServiceURL&gt;: The URL to the web service

===Payload===
CLF version 3.0 file (to be sent in datafile parameter) of the following format:
&lt;pre&gt;
//mcc+mnc;cellid;lac;rnc;lat;lon;ratio;data;rfu
26202;07812;03101;0;45.894375;31.51312;0;City Square;0
&lt;/pre&gt;
Columns are semicolon separated and have the following strict order:&lt;br&gt;
mcc+mnc, lac, cellid, rnc, lat, lon, ratio, data, rfu

There is no header in CLF3 files.
Therefore the columns must be provided in the order given above and all values must be there.&lt;br&gt;

You can add comments to CLF3 files.&lt;br&gt;
Comments in CLF3 start with // and extend to the end of the physical line.

Maximum file size:&lt;br&gt;
2 MB; upload multiple files if you want to upload more data.

Supplemented by the parameter key=&lt;apiKey&gt; as form POST field, which is the user's API key

{| class=&quot;wikitable sortable&quot; style=&quot;font-size: 85%; text-align: left;&quot;
|-

Supported columns:
! scope=&quot;col&quot; | Column name
! scope=&quot;col&quot; | Data type
! scope=&quot;col&quot; | Description
! scope=&quot;col&quot; | Optional
|-
| title=&quot;Column name&quot; | &lt;mcc+mnc&gt;
| title=&quot;Data type&quot; | string 
| title=&quot;Description&quot; | Mobile country code and mobile network code
| title=&quot;Optional&quot; | no 
|-
| title=&quot;Column name&quot; | lac 
| title=&quot;Data type&quot; | integer 
| title=&quot;Description&quot; | Local area code
| title=&quot;Optional&quot; | no
|-
| title=&quot;Column name&quot; | cellid 
| title=&quot;Data type&quot; | integer 
| title=&quot;Description&quot; | Cell tower id
| title=&quot;Optional&quot; | no
|-
| title=&quot;Column name&quot; | rnc 
| title=&quot;Data type&quot; | integer 
| title=&quot;Description&quot; | Radio network controller;&lt;br&gt;provide &quot;0&quot;, (zero, without the quotation marks) or an empty string in case there is no rnc value.
| title=&quot;Optional&quot; | no
|-
| title=&quot;Column name&quot; | lat 
| title=&quot;Data type&quot; | double 
| title=&quot;Description&quot; | Latitude 
| title=&quot;Optional&quot; | no
|-
| title=&quot;Column name&quot; | lon
| title=&quot;Data type&quot; | double 
| title=&quot;Description&quot; | Latitude 
| title=&quot;Optional&quot; | no
|-
| title=&quot;Column name&quot; | ratio 
| title=&quot;Data type&quot; | integer 
| title=&quot;Description&quot; | Accuracy of the cell coordinates. Use -1 for the exact position. 
| title=&quot;Optional&quot; | yes 
|-
| title=&quot;Column name&quot; | data 
| title=&quot;Data type&quot; | string 
| title=&quot;Description&quot; | Short cell description
| title=&quot;Optional&quot; | yes 
|-
| title=&quot;Column name&quot; | rfu 
| title=&quot;Data type&quot; | string 
| title=&quot;Description&quot; |  Not really used; use 0 if unknown
| title=&quot;Optional&quot; | yes 
|}

===Response===
On successful insert return HTTP 200 with the string &quot;0,OK&quot;.

===Business logic===
The request is handled by de.enaikoon.gpssuite.web.measure.NewMeasureController.
===Time needed for processing newly uploaded measurements===
After uploading new measurements to the OpenCellID community servers they are added to our waiting queues and processed in the background.
We aim the real-time processing, but maximum time depends on traffic on OpenCellID servers. Current throughput of our servers is around 15000 measurements per second.

Measurements are processed in 3 steps: 

# parsing and filtering raw data
# updating measurement statistics and storing measurements in the database
# updating existing cell towers information or adding new cell towers to the database

Our waiting queues for cell towers and for measurements are independent, so you can see your measurements in the OpenCellID database but related cell towers might be not updated yet. This means that if you upload a measurement of a cell tower that was not in the database before and the waiting queue for cell towers has some data to process, you have to expect some times (usually few minutes) until the queue delivers the newly uploaded cell tower information.

==Getting cell position==

GET/POST request to
&lt;pre&gt;
https://&lt;WebServiceURL&gt;/cell/get
&lt;/pre&gt;

===Parameters===
&lt;WebServiceURL&gt;: the URL to the web service

===Headers===

'''JSON:'''&lt;br&gt;Content-Type: application/json;charset=UTF-8

'''XML:'''&lt;br&gt;Content-Type: text/xml;charset=utf-8

'''AT:'''&lt;br&gt;Content-Type: text/plain;charset=utf-8

===Payload===
key=&lt;apiKey&gt;&amp;mcc=&lt;mcc&gt;&amp;mnc=&lt;mnc&gt;&amp;lac=&lt;lac&gt;&amp;cellid=&lt;cellid&gt;&amp;radio=&lt;radio&gt;&amp;format=&lt;format&gt;

Where

{| class=&quot;wikitable sortable&quot; style=&quot;font-size: 85%; text-align: left;&quot;
|-
! scope=&quot;col&quot; | Parameter
! scope=&quot;col&quot; | Data type
! scope=&quot;col&quot; | Description
! scope=&quot;col&quot; | Optional

|-
| title=&quot;Parameter&quot; | &lt;apiKey&gt;
| title=&quot;Data type&quot; | string
| title=&quot;Description&quot; | API key assigned to the user
| title=&quot;Optional&quot; | no
|-
| title=&quot;Parameter&quot; | &lt;mcc&gt;
| title=&quot;Data type&quot; | integer
| title=&quot;Description&quot; | Mobile country code
| title=&quot;Optional&quot; | no
|-
| title=&quot;Parameter&quot; | &lt;mnc&gt;
| title=&quot;Data type&quot; | integer
| title=&quot;Description&quot; | Mobile network code or system identifier
| title=&quot;Optional&quot; | no
|-
| title=&quot;Parameter&quot; | &lt;lac&gt;
| title=&quot;Data type&quot; | integer 
| title=&quot;Description&quot; | Local area code, tracking area code or network id
| title=&quot;Optional&quot; | no
|-
| title=&quot;Parameter&quot; | &lt;cellid&gt;
| title=&quot;Data type&quot; | integer
| title=&quot;Description&quot; | Cell id or base station id
| title=&quot;Optional&quot; | no
|-
| title=&quot;Parameter&quot; | &lt;radio&gt;
| title=&quot;Data type&quot; | string
| title=&quot;Description&quot; | You can specifiy GSM, UMTS, LTE, NBIOT, NR or CDMA as the radio of returned cell. Otherwise first matched cell will be returned.
| title=&quot;Optional&quot; | yes
|-
| title=&quot;Parameter&quot; | &lt;format&gt;
| title=&quot;Data type&quot; | string
| title=&quot;Description&quot; | You can specifiy xml, at or json as output. Default is xml.
| title=&quot;Optional&quot; | yes
|}

===Response===

====XML====
Upon successful request, HTTP 200 is returned with XML of the following format:
&lt;syntaxhighlight lang=&quot;xml&quot;&gt;
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;rsp stat=&quot;ok&quot;&gt;
  &lt;cell lat=&quot;52.891587&quot; 
        lon=&quot;9.438145&quot; 
        mcc=&quot;262&quot; 
        mnc=&quot;2&quot; 
        lac=&quot;434&quot; 
        cellid=&quot;9200&quot; 
        averageSignalStrength=&quot;-81&quot; 
        range=&quot;123&quot; 
        samples=&quot;13&quot; 
        changeable=&quot;1&quot; 
        radio=&quot;GSM&quot;/&gt;
&lt;/rsp&gt;
&lt;/syntaxhighlight&gt;


&lt;syntaxhighlight lang=&quot;xml&quot;&gt;
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;rsp stat=&quot;ok&quot;&gt;
  &lt;cell lat=&quot;51.206&quot; 
        lon=&quot;20.424&quot; 
        mcc=&quot;260&quot; 
        mnc=&quot;2&quot; 
        lac=&quot;52712&quot; 
        cellid=&quot;59350690&quot; 
        averageSignalStrength=&quot;-96&quot; 
        range=&quot;1234&quot; 
        samples=&quot;5&quot; 
        changeable=&quot;1&quot; 
        radio=&quot;UMTS&quot; 
        rnc=&quot;905&quot; 
        cid=&quot;40610&quot;/&gt;
&lt;/rsp&gt;
&lt;/syntaxhighlight&gt;


&lt;syntaxhighlight lang=&quot;xml&quot;&gt;
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;rsp stat=&quot;ok&quot;&gt;
  &lt;cell lat=&quot;51.90994&quot; 
        lon=&quot;19.505&quot; 
        mcc=&quot;260&quot; 
        mnc=&quot;6&quot; 
        lac=&quot;12&quot; 
        cellid=&quot;864246&quot; 
        averageSignalStrength=&quot;-100&quot; 
        range=&quot;12345&quot; 
        samples=&quot;4&quot; 
        changeable=&quot;1&quot; 
        radio=&quot;LTE&quot; 
        tac=&quot;12&quot;/&gt;
&lt;/rsp&gt;
&lt;/syntaxhighlight&gt;


&lt;syntaxhighlight lang=&quot;xml&quot;&gt;
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;rsp stat=&quot;ok&quot;&gt;
  &lt;cell lat=&quot;42.46&quot; 
        lon=&quot;-73.245&quot; 
        mcc=&quot;310&quot; 
        mnc=&quot;119&quot; 
        lac=&quot;48&quot; 
        cellid=&quot;4127&quot; 
        averageSignalStrength=&quot;-90&quot; 
        range=&quot;123&quot; 
        samples=&quot;5&quot; 
        changeable=&quot;1&quot; 
        radio=&quot;CDMA&quot; 
        sid=&quot;119&quot; 
        nid=&quot;48&quot; 
        bid=&quot;4127&quot;/&gt;
&lt;/rsp&gt;
&lt;/syntaxhighlight&gt;

====JSON====
&lt;syntaxhighlight lang=&quot;javascript&quot;&gt;
{
  &quot;lon&quot;: -73.245,
  &quot;lat&quot;: 42.46,
  &quot;mcc&quot;: 310,
  &quot;mnc&quot;: 119,
  &quot;lac&quot;: 48,
  &quot;cellid&quot;: 4127,
  &quot;averageSignalStrength&quot;: -90,
  &quot;range&quot;: 123,
  &quot;samples&quot;: 5,
  &quot;changeable&quot;: true,
  &quot;radio&quot;: &quot;CDMA&quot;,
  &quot;sid&quot;: 119,
  &quot;nid&quot;: 48,
  &quot;bid&quot;: 4127
}
&lt;/syntaxhighlight&gt;

====AT====
&lt;syntaxhighlight lang=&quot;text&quot;&gt;
+Location:42.46,-73.245,1483228800
&lt;/syntaxhighlight&gt;

===Business logic===
The request is handled by de.enaikoon.gpssuite.web.cell.CellController.&lt;br&gt;
It uses de.enaikoon.m2m.gsmcellmanagment.dao.mongodb.GsmCellDao to calculate the average cell measurement, and builds an XML string to return to the user.

===Example===
&lt;u&gt;https://opencellid.org/cell/get?key=xxx&amp;mcc=260&amp;mnc=2&amp;lac=10250&amp;cellid=26511&lt;/u&gt;&lt;br&gt;
&lt;u&gt;https://opencellid.org/cell/get?key=xxx&amp;mcc=260&amp;mnc=2&amp;lac=10250&amp;cellid=26511&amp;radio=UMTS&lt;/u&gt;&lt;br&gt;
&lt;u&gt;https://opencellid.org/cell/get?key=xxx&amp;mcc=260&amp;mnc=2&amp;lac=10250&amp;cellid=26511&amp;format=json&lt;/u&gt;

===Availability===
This feature is available free of charge in case your application contributes data to OpenCellID at the same time.&lt;br&gt;
In case you want to use this service without contributing to OpenCellID please refer to &lt;u&gt;[[Commercial_users|the commercial users guideline]]&lt;/u&gt;.&lt;br&gt;
An automated check for providing this service to white-listed apiKeys only was activated on Jun 15th, 2014

&lt;!-- 
==Getting the raw measurements used to compute the position of a cell==

GET/POST request to
&lt;pre&gt;
https://&lt;WebServiceURL&gt;/cell/getMeasures
&lt;/pre&gt;

===Parameters===
&lt;WebServiceURL&gt;: the URL to the web service

===Payload===
key=&lt;apiKey&gt;&amp;mcc=&lt;mcc&gt;&amp;mnc=&lt;mnc&gt;&amp;lac=&lt;lac&gt;&amp;cellid=&lt;cellid&gt;&amp;radio=&lt;radio&gt;&amp;limit=&lt;limit&gt;&amp;offset=&lt;offset&gt;&amp;format=&lt;format&gt;

Where

{| class=&quot;wikitable sortable&quot; style=&quot;font-size: 85%; text-align: left;&quot;
|-
! scope=&quot;col&quot; | Parameter
! scope=&quot;col&quot; | Data type
! scope=&quot;col&quot; | Description
! scope=&quot;col&quot; | Optional
|-
| title=&quot;Parameter&quot; | &lt;apiKey&gt;
| title=&quot;Data type&quot; | string
| title=&quot;Description&quot; | API key assigned to the user
| title=&quot;Optional&quot; | no
|-
| title=&quot;Parameter&quot; | &lt;mcc&gt;
| title=&quot;Data type&quot; | integer
| title=&quot;Description&quot; | Mobile country code
| title=&quot;Optional&quot; | no
|-
| title=&quot;Parameter&quot; | &lt;mnc&gt;
| title=&quot;Data type&quot; | integer
| title=&quot;Description&quot; | Mobile network code or system identifier
| title=&quot;Optional&quot; | no
|-
| title=&quot;Parameter&quot; | &lt;lac&gt;
| title=&quot;Data type&quot; | integer 
| title=&quot;Description&quot; | Local area code, tracking area code or network id
| title=&quot;Optional&quot; | no
|-
| title=&quot;Parameter&quot; | &lt;cellid&gt;
| title=&quot;Data type&quot; | integer
| title=&quot;Description&quot; | Cell id or base station id
| title=&quot;Optional&quot; | no
|-
| title=&quot;Parameter&quot; | &lt;radio&gt;
| title=&quot;Data type&quot; | string
| title=&quot;Description&quot; | You can specifiy GSM, UMTS, LTE, NR, NBIOT or CDMA as the radio of returned data. Otherwise first matched cell will be returned with its measurements.
| title=&quot;Optional&quot; | yes
|-
| title=&quot;Parameter&quot; | &lt;limit&gt;
| title=&quot;Data type&quot; | integer
| title=&quot;Description&quot; | A number defining max size of the returned list.&lt;br&gt;Default and max value is 1000.
| title=&quot;Optional&quot; | yes
|-
| title=&quot;Parameter&quot; | &lt;offset&gt;
| title=&quot;Data type&quot; | integer
| title=&quot;Description&quot; | The field says to skip that many measurements before beginning to return measurements.&lt;br&gt;Default is 0.
| title=&quot;Optional&quot; | yes
|-
| title=&quot;Parameter&quot; | &lt;format&gt;
| title=&quot;Data type&quot; | string
| title=&quot;Description&quot; | You can specifiy xml or json as output. Default is xml.
| title=&quot;Optional&quot; | yes
|}

For the total number of measurements used to compute the position of a cell, please use /cell/getMeasuresSize (described below).

===Response===

====XML====
Upon successful request, HTTP 200 is returned with XML in the following format:&lt;br&gt;
&lt;syntaxhighlight lang=&quot;xml&quot;&gt;
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;rsp stat=&quot;ok&quot;&gt;
  &lt;cell lat=&quot;42.47&quot; 
        lon=&quot;-73.24&quot; 
        mcc=&quot;310&quot; 
        mnc=&quot;119&quot; 
        lac=&quot;48&quot; 
        cellid=&quot;4217&quot; 
        averageSignalStrength=&quot;-91&quot; 
        range=&quot;123&quot; 
        samples=&quot;2&quot; 
        changeable=&quot;1&quot; 
        radio=&quot;CDMA&quot; 
        sid=&quot;119&quot; 
        nid=&quot;48&quot; 
        bid=&quot;4217&quot;&gt;
    &lt;measure id=&quot;53cfd12ee4b033313ec44a01&quot; 
             lat=&quot;42.469&quot; 
             lon=&quot;-73.24&quot; 
             mcc=&quot;310&quot; 
             mnc=&quot;119&quot; 
             lac=&quot;48&quot; 
             cellid=&quot;4217&quot; 
             created_at=&quot;1400128406300&quot; 
             measured_at=&quot;1400127406300&quot; 
             signal=&quot;-90&quot; 
             rating=&quot;10.1&quot; 
             speed=&quot;20.2&quot; 
             direction=&quot;30.0&quot; 
             radio=&quot;CDMA&quot; 
             sid=&quot;119&quot; 
             nid=&quot;48&quot; 
             bid=&quot;4217&quot;/&gt;
    &lt;measure id=&quot;53cfd177e4b033313ec44e51&quot; 
             lat=&quot;42.471&quot; 
             lon=&quot;-73.24&quot; 
             mcc=&quot;310&quot; 
             mnc=&quot;119&quot; 
             lac=&quot;48&quot; 
             cellid=&quot;4217&quot; 
             created_at=&quot;1400128493848&quot; 
             measured_at=&quot;1400127493848&quot; 
             signal=&quot;-92&quot; 
             rating=&quot;20.0&quot; 
             speed=&quot;40.0&quot; 
             direction=&quot;40.0&quot; 
             radio=&quot;CDMA&quot; 
             sid=&quot;119&quot; 
             nid=&quot;48&quot; 
             bid=&quot;4217&quot;/&gt;
  &lt;/cell&gt;
&lt;/rsp&gt;
&lt;/syntaxhighlight&gt;

====JSON====
&lt;syntaxhighlight lang=&quot;javascript&quot;&gt;
{
  &quot;cell&quot;: {
    &quot;lon&quot;: 20.42,
    &quot;lat&quot;: 51.2,
    &quot;mcc&quot;: 260,
    &quot;mnc&quot;: 2,
    &quot;lac&quot;: 52702,
    &quot;cellid&quot;: 59350690,
    &quot;averageSignalStrength&quot;: -90,
    &quot;range&quot;: 123,
    &quot;samples&quot;: 2,
    &quot;changeable&quot;: true,
    &quot;radio&quot;: &quot;UMTS&quot;,
    &quot;rnc&quot;: 905,
    &quot;cid&quot;: 40610
  },
  &quot;measurements&quot;: [
    {
      &quot;id&quot;: &quot;52d3db7ccd214d12357b9fee&quot;,
      &quot;lon&quot;: 20.42,
      &quot;lat&quot;: 51.2,
      &quot;mcc&quot;: 260,
      &quot;mnc&quot;: 2,
      &quot;lac&quot;: 52702,
      &quot;cellid&quot;: 59350690,
      &quot;created_at&quot;: 1399614776134,
      &quot;measured_at&quot;: 1398477214000,
      &quot;signal&quot;: -90,
      &quot;rating&quot;: 10.1,
      &quot;speed&quot;: 20.4,
      &quot;direction&quot;: 90.8,
      &quot;radio&quot;: &quot;UMTS&quot;,
      &quot;rnc&quot;: 905,
      &quot;cid&quot;: 40610
    },
    {
      &quot;id&quot;: &quot;52d3db7ccd214d12357b9ff2&quot;,
      &quot;lon&quot;: 20.42,
      &quot;lat&quot;: 51.2,
      &quot;mcc&quot;: 260,
      &quot;mnc&quot;: 2,
      &quot;lac&quot;: 52702,
      &quot;cellid&quot;: 59350690,
      &quot;created_at&quot;: 1380559325000,
      &quot;measured_at&quot;: 1379477219000,
      &quot;signal&quot;: -90,
      &quot;radio&quot;: &quot;UMTS&quot;,
      &quot;rnc&quot;: 905,
      &quot;cid&quot;: 40610,
      &quot;psc&quot;: 2
    }
  ]
}
&lt;/syntaxhighlight&gt;

===Business logic===
The request is handled by de.enaikoon.gpssuite.web.measure.CellController.

===Example===
&lt;u&gt;https://www.opencellid.org/cell/getMeasures?key=xxx&amp;mcc=260&amp;mnc=2&amp;lac=10250&amp;cellid=26511&amp;limit=10&amp;offset=1&lt;/u&gt;&lt;br&gt;
&lt;u&gt;https://www.opencellid.org/cell/getMeasures?key=xxx&amp;mcc=260&amp;mnc=2&amp;lac=10250&amp;cellid=26511&amp;radio=UMTS&amp;limit=10&amp;offset=1&amp;format=json&lt;/u&gt;

===Availability===
This feature is available free of charge in case your application contributes data to OpenCellID at the same time.&lt;br&gt;
In case you want to use this service without contributing to OpenCellID please refer to &lt;u&gt;[[Commercial_users|the commercial users guideline]]&lt;/u&gt;.&lt;br&gt;
An automated check for providing this service to white-listed apiKeys only was activated on Jun 15th, 2014

==Getting the number of all measures used to compute the position of a cell==

GET/POST request to
&lt;pre&gt;
https://&lt;WebServiceURL&gt;/cell/getMeasuresSize
&lt;/pre&gt;

===Parameters===
&lt;WebServiceURL&gt;: the URL to the web service

===Payload===
key=&lt;apiKey&gt;&amp;mcc=&lt;mcc&gt;&amp;mnc=&lt;mnc&gt;&amp;lac=&lt;lac&gt;&amp;cellid=&lt;cellid&gt;&amp;radio=&lt;radio&gt;&amp;format=&lt;format&gt;

Where

{| class=&quot;wikitable sortable&quot; style=&quot;font-size: 85%; text-align: left;&quot;
|-
! scope=&quot;col&quot; | Parameter
! scope=&quot;col&quot; | Data type
! scope=&quot;col&quot; | Description
! scope=&quot;col&quot; | Optional
|-
| title=&quot;Parameter&quot; | &lt;apiKey&gt;
| title=&quot;Data type&quot; | string
| title=&quot;Description&quot; | API key assigned to the user
| title=&quot;Optional&quot; | no
|-
| title=&quot;Parameter&quot; | &lt;mcc&gt;
| title=&quot;Data type&quot; | integer
| title=&quot;Description&quot; | Mobile country code
| title=&quot;Optional&quot; | no
|-
| title=&quot;Parameter&quot; | &lt;mnc&gt;
| title=&quot;Data type&quot; | integer
| title=&quot;Description&quot; | Mobile network code or system identifier
| title=&quot;Optional&quot; | no
|-
| title=&quot;Parameter&quot; | &lt;lac&gt;
| title=&quot;Data type&quot; | integer 
| title=&quot;Description&quot; | Local area code, tracking area code or network id
| title=&quot;Optional&quot; | no
|-
| title=&quot;Parameter&quot; | &lt;cellid&gt;
| title=&quot;Data type&quot; | integer
| title=&quot;Description&quot; | Cell id or base station id
| title=&quot;Optional&quot; | no
|-
| title=&quot;Parameter&quot; | &lt;radio&gt;
| title=&quot;Data type&quot; | string
| title=&quot;Description&quot; | You can specifiy GSM, UMTS, LTE, NR, NBIOT or CDMA as the radio of returned data. Otherwise first matched cell will be returned with its measurements.
| title=&quot;Optional&quot; | yes
|-
| title=&quot;Parameter&quot; | &lt;format&gt;
| title=&quot;Data type&quot; | string
| title=&quot;Description&quot; | You can specifiy xml or json as output. Default is xml.
| title=&quot;Optional&quot; | no
|}

===Response===

====XML====
Upon successful request, HTTP 200 is returned with XML in the following format:&lt;br&gt;
&lt;syntaxhighlight lang=&quot;xml&quot;&gt;
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;rsp stat=&quot;ok&quot;&gt;
  &lt;measurements count=&quot;123&quot;/&gt;
&lt;/rsp&gt;
&lt;/syntaxhighlight&gt;
====JSON====
&lt;syntaxhighlight lang=&quot;javascript&quot;&gt;
{
  &quot;count&quot;: 123
}
&lt;/syntaxhighlight&gt;

===Business logic===
The request is handled by de.enaikoon.gpssuite.web.measure.CellController.

===Example===
&lt;u&gt;https://www.opencellid.org/cell/getMeasuresSize?key=xxx&amp;mcc=260&amp;mnc=2&amp;lac=10250&amp;cellid=26511&amp;radio=GSM&lt;/u&gt;&lt;br&gt;
&lt;u&gt;https://www.opencellid.org/cell/getMeasuresSize?key=xxx&amp;mcc=260&amp;mnc=2&amp;lac=10250&amp;cellid=26511&amp;format=json&lt;/u&gt;

===Availability===
This feature is available free of charge in case your application contributes data to OpenCellID at the same time.&lt;br&gt;
In case you want to use this service without contributing to OpenCellID please refer to &lt;u&gt;[[Commercial_users|the commercial users guideline]]&lt;/u&gt;.&lt;br&gt;
An automated check for providing this service to white-listed apiKeys only was activated on Jun 15th, 2014
--&gt;
==Getting the list of cells in a specified area==

GET request to
&lt;pre&gt;
https://&lt;WebServiceURL&gt;/cell/getInArea
&lt;/pre&gt;

===Parameters===
&lt;WebServiceURL&gt;: the URL to the web service

===Payload===
key=&lt;apiKey&gt;&amp;BBOX=&lt;latmin&gt;,&lt;lonmin&gt;,&lt;latmax&gt;,&lt;lonmax&gt;&amp;mcc=&lt;mcc&gt;&amp;mnc=&lt;mnc&gt;&amp;lac=&lt;lac&gt;&amp;radio=&lt;radio&gt;&amp;limit=&lt;limit&gt;&amp;offset=&lt;offset&gt;&amp;format=&lt;format&gt;

Where

{| class=&quot;wikitable sortable&quot; style=&quot;font-size: 85%; text-align: left;&quot;
|-
! scope=&quot;col&quot; | Parameter
! scope=&quot;col&quot; | Data type
! scope=&quot;col&quot; | Description
! scope=&quot;col&quot; | Optional
|-
| title=&quot;Parameter&quot; | &lt;apiKey&gt;
| title=&quot;Data type&quot; | string
| title=&quot;Description&quot; | API key assigned to the user
| title=&quot;Optional&quot; | no
|-
| title=&quot;Parameter&quot; | &lt;latmin&gt;
| title=&quot;Data type&quot; | double
| title=&quot;Description&quot; | Minimal bounding latitude
| title=&quot;Optional&quot; | no
|-
| title=&quot;Parameter&quot; | &lt;lonmin&gt;
| title=&quot;Data type&quot; | double
| title=&quot;Description&quot; | Minimal bounding longitude
| title=&quot;Optional&quot; | no
|-
| title=&quot;Parameter&quot; | &lt;latmax&gt;
| title=&quot;Data type&quot; | double
| title=&quot;Description&quot; | Maximal bounding latitude
| title=&quot;Optional&quot; | no
|-
| title=&quot;Parameter&quot; | &lt;lonmax&gt;
| title=&quot;Data type&quot; | double
| title=&quot;Description&quot; | Maximal bounding longitude
| title=&quot;Optional&quot; | no
|-
| title=&quot;Parameter&quot; | &lt;mcc&gt;
| title=&quot;Data type&quot; | integer
| title=&quot;Description&quot; | Mobile country code; If you want to restrict the result to a specific country
| title=&quot;Optional&quot; | yes
|-
| title=&quot;Parameter&quot; | &lt;mnc&gt;
| title=&quot;Data type&quot; | integer
| title=&quot;Description&quot; | Mobile network code or system identifier; If you want to restrict the result
| title=&quot;Optional&quot; | yes
|-
| title=&quot;Parameter&quot; | &lt;lac&gt;
| title=&quot;Data type&quot; | integer
| title=&quot;Description&quot; | Local area code, tracking area code or network id; If you want to restrict the result
| title=&quot;Optional&quot; | yes
|-
| title=&quot;Parameter&quot; | &lt;radio&gt;
| title=&quot;Data type&quot; | string 
| title=&quot;Description&quot; | You can specifiy GSM, UMTS, LTE, NR, NBIOT or CDMA as the radio of returned cells. Otherwise cells with any radios will be returned.
| title=&quot;Optional&quot; | yes
|-
| title=&quot;Parameter&quot; | &lt;limit&gt;
| title=&quot;Data type&quot; | integer
| title=&quot;Description&quot; | A number defining maximum size of the returned list. Default and maximum value is 1000.
| title=&quot;Optional&quot; | yes
|-
| title=&quot;Parameter&quot; | &lt;offset&gt;
| title=&quot;Data type&quot; | integer
| title=&quot;Description&quot; | The field says to skip that many cells before beginning to return cells. Default is 0.
| title=&quot;Optional&quot; | yes
|-
| title=&quot;Parameter&quot; | &lt;format&gt;
| title=&quot;Data type&quot; | string 
| title=&quot;Description&quot; | You can specify kml, xml, csv or json as output. Default is kml.&lt;br&gt;In csv type of output, there is a first line defining the content of the list.
| title=&quot;Optional&quot; | yes
|}

For the total number of cells in a specified area, please use /cell/getInAreaSize (described below).

===Response===
Upon successful request, HTTP 200 is returned with one of the following output structures:

====XML====
&lt;syntaxhighlight lang=&quot;xml&quot;&gt;
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;rsp stat=&quot;ok&quot;&gt;
  &lt;cell lat=&quot;52.9523755&quot; 
        lon=&quot;9.252112&quot; 
        mcc=&quot;262&quot; 
        mnc=&quot;2&quot; 
        lac=&quot;1434&quot; 
        cellid=&quot;17275&quot; 
        averageSignalStrength=&quot;-70&quot; 
        range=&quot;123&quot; 
        samples=&quot;12&quot; 
        changeable=&quot;1&quot; 
        radio=&quot;GSM&quot;/&gt;
  &lt;cell lat=&quot;52.9463072&quot; 
        lon=&quot;9.258809&quot; 
        mcc=&quot;262&quot; 
        mnc=&quot;2&quot; 
        lac=&quot;1434&quot; 
        cellid=&quot;17276&quot; 
        averageSignalStrength=&quot;-98&quot; 
        range=&quot;1234&quot; 
        samples=&quot;11&quot; 
        changeable=&quot;1&quot; 
        radio=&quot;LTE&quot; 
        tac=&quot;1434&quot;/&gt;
  &lt;cell lat=&quot;52.9367185&quot; 
        lon=&quot;9.27343925&quot; 
        mcc=&quot;260&quot; 
        mnc=&quot;16256&quot; 
        lac=&quot;1434&quot; 
        cellid=&quot;17272&quot; 
        averageSignalStrength=&quot;-93&quot; 
        range=&quot;12345&quot; 
        samples=&quot;12&quot; 
        changeable=&quot;1&quot; 
        radio=&quot;CDMA&quot; 
        sid=&quot;16256&quot; 
        bid=&quot;1434&quot; 
        nid=&quot;17272&quot;/&gt;
&lt;/rsp&gt;
&lt;/syntaxhighlight&gt;

====KML (default)====
&lt;syntaxhighlight lang=&quot;xml&quot;&gt;
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;kml xmlns=&quot;http://earth.google.com/kml/2.1&quot;&gt;
  &lt;Document&gt;
    &lt;name&gt;OpenCellID Cells&lt;/name&gt;
    &lt;description&gt;List of available cells&lt;/description&gt;
    &lt;Placemark&gt;
      &lt;name&gt;&lt;/name&gt;
      &lt;description&gt;&lt;![CDATA[lat: &lt;b&gt;52.9523755&lt;/b&gt;&lt;br/&gt;
                            lon: &lt;b&gt;9.252112&lt;/b&gt;&lt;br/&gt;
                            mcc: &lt;b&gt;262&lt;/b&gt;&lt;br/&gt;
                            mnc: &lt;b&gt;2&lt;/b&gt;&lt;br/&gt;
                            lac: &lt;b&gt;1434&lt;/b&gt;&lt;br/&gt;
                            cellid: &lt;b&gt;17275&lt;/b&gt;&lt;br/&gt;
                            averageSignalStrength: &lt;b&gt;-73&lt;/b&gt;&lt;br/&gt;
                            range: &lt;b&gt;123&lt;/b&gt;&lt;br/&gt;
                            samples: &lt;b&gt;12&lt;/b&gt;&lt;br/&gt;
                            changeable: &lt;b&gt;1&lt;/b&gt;&lt;br/&gt;
                            radio: &lt;b&gt;GSM&lt;/b&gt;&lt;br/&gt;
                            rnc: &lt;b&gt;&lt;/b&gt;&lt;br/&gt;
                            cid: &lt;b&gt;&lt;/b&gt;&lt;br/&gt;
                            tac: &lt;b&gt;&lt;/b&gt;&lt;br/&gt;
                            sid: &lt;b&gt;&lt;/b&gt;&lt;br/&gt;
                            nid: &lt;b&gt;&lt;/b&gt;&lt;br/&gt;
                            bid: &lt;b&gt;&lt;/b&gt;]]&gt;
      &lt;/description&gt;
      &lt;Point&gt;&lt;coordinates&gt;9.252112,52.9523755,0&lt;/coordinates&gt;&lt;/Point&gt;
    &lt;/Placemark&gt;
    &lt;Placemark&gt;
      &lt;name&gt;&lt;/name&gt;
      &lt;description&gt;&lt;![CDATA[lat: &lt;b&gt;52.9463072&lt;/b&gt;&lt;br/&gt;
                            lon: &lt;b&gt;21.1525&lt;/b&gt;&lt;br/&gt;
                            mcc: &lt;b&gt;260&lt;/b&gt;&lt;br/&gt;
                            mnc: &lt;b&gt;2&lt;/b&gt;&lt;br/&gt;
                            lac: &lt;b&gt;1434&lt;/b&gt;&lt;br/&gt;
                            cellid: &lt;b&gt;17272&lt;/b&gt;&lt;br/&gt;
                            averageSignalStrength: &lt;b&gt;-83&lt;/b&gt;&lt;br/&gt;
                            range: &lt;b&gt;1234&lt;/b&gt;&lt;br/&gt;
                            samples: &lt;b&gt;11&lt;/b&gt;&lt;br/&gt;
                            changeable: &lt;b&gt;1&lt;/b&gt;&lt;br/&gt;
                            radio: &lt;b&gt;LTE&lt;/b&gt;&lt;br/&gt;
                            rnc: &lt;b&gt;&lt;/b&gt;&lt;br/&gt;
                            cid: &lt;b&gt;&lt;/b&gt;&lt;br/&gt;
                            tac: &lt;b&gt;1434&lt;/b&gt;&lt;br/&gt;
                            sid: &lt;b&gt;&lt;/b&gt;&lt;br/&gt;
                            nid: &lt;b&gt;&lt;/b&gt;&lt;br/&gt;
                            bid: &lt;b&gt;&lt;/b&gt;]]&gt;
      &lt;/description&gt;
      &lt;Point&gt;&lt;coordinates&gt;21.1525,52.9463072,0&lt;/coordinates&gt;&lt;/Point&gt;
    &lt;/Placemark&gt;
    &lt;Placemark&gt;
      &lt;name&gt;&lt;/name&gt;
      &lt;description&gt;&lt;![CDATA[lat: &lt;b&gt;53.9367185&lt;/b&gt;&lt;br/&gt;
                            lon: &lt;b&gt;12.27343925&lt;/b&gt;&lt;br/&gt;
                            mcc: &lt;b&gt;262&lt;/b&gt;&lt;br/&gt;
                            mnc: &lt;b&gt;16256&lt;/b&gt;&lt;br/&gt;
                            lac: &lt;b&gt;1434&lt;/b&gt;&lt;br/&gt;
                            cellid: &lt;b&gt;17272&lt;/b&gt;&lt;br/&gt;
                            averageSignalStrength: &lt;b&gt;-91&lt;/b&gt;&lt;br/&gt;
                            range: &lt;b&gt;12345&lt;/b&gt;&lt;br/&gt;
                            samples: &lt;b&gt;2&lt;/b&gt;&lt;br/&gt;
                            changeable: &lt;b&gt;1&lt;/b&gt;&lt;br/&gt;
                            radio: &lt;b&gt;CDMA&lt;/b&gt;&lt;br/&gt;
                            rnc: &lt;b&gt;&lt;/b&gt;&lt;br/&gt;
                            cid: &lt;b&gt;&lt;/b&gt;&lt;br/&gt;
                            tac: &lt;b&gt;&lt;/b&gt;&lt;br/&gt;
                            sid: &lt;b&gt;16256&lt;/b&gt;&lt;br/&gt;
                            nid: &lt;b&gt;1434&lt;/b&gt;&lt;br/&gt;
                            bid: &lt;b&gt;17272&lt;/b&gt;]]&gt;
      &lt;/description&gt;
      &lt;Point&gt;&lt;coordinates&gt;12.27343925,53.9367185,0&lt;/coordinates&gt;&lt;/Point&gt;
    &lt;/Placemark&gt;
    &lt;Placemark&gt;
      &lt;name&gt;&lt;/name&gt;
      &lt;description&gt;&lt;![CDATA[lat: &lt;b&gt;52.1322157&lt;/b&gt;&lt;br/&gt;
                            lon: &lt;b&gt;21.065345&lt;/b&gt;&lt;br/&gt;
                            mcc: &lt;b&gt;260&lt;/b&gt;&lt;br/&gt;
                            mnc: &lt;b&gt;2&lt;/b&gt;&lt;br/&gt;
                            lac: &lt;b&gt;1434&lt;/b&gt;&lt;br/&gt;
                            cellid: &lt;b&gt;42042781&lt;/b&gt;&lt;br/&gt;
                            averageSignalStrength: &lt;b&gt;-89&lt;/b&gt;&lt;br/&gt;
                            range: &lt;b&gt;1231&lt;/b&gt;&lt;br/&gt;
                            samples: &lt;b&gt;5&lt;/b&gt;&lt;br/&gt;
                            changeable: &lt;b&gt;1&lt;/b&gt;&lt;br/&gt;
                            radio: &lt;b&gt;UMTS&lt;/b&gt;&lt;br/&gt;
                            rnc: &lt;b&gt;641&lt;/b&gt;&lt;br/&gt;
                            cid: &lt;b&gt;34205&lt;/b&gt;&lt;br/&gt;
                            tac: &lt;b&gt;&lt;/b&gt;&lt;br/&gt;
                            sid: &lt;b&gt;&lt;/b&gt;&lt;br/&gt;
                            nid: &lt;b&gt;&lt;/b&gt;&lt;br/&gt;
                            bid: &lt;b&gt;&lt;/b&gt;]]&gt;
      &lt;/description&gt;
      &lt;Point&gt;&lt;coordinates&gt;21.065345,52.1322157,0&lt;/coordinates&gt;&lt;/Point&gt;
    &lt;/Placemark&gt;
  &lt;/Document&gt;
&lt;/kml&gt;
&lt;/syntaxhighlight&gt;

====CSV====
&lt;pre&gt;lat,lon,mcc,mnc,lac,cellid,averageSignalStrength,range,samples,changeable,radio,rnc,cid,tac,sid,nid,bid
52.275505,21.016382,260,2,45080,21728,-55,123,2,1,GSM,,,,,,
52.201454,21.065345,260,2,58140,42042781,-59,1234,3,1,UMTS,641,34205,,,,
52.207123,21.029972,260,6,58,119093,-80,122,2,1,LTE,,,58,,,
52.274612,21.034485,260,16256,45,22613,-98,134,2,1,CDMA,,,,16256,45,22613&lt;/pre&gt;

====JSON====
&lt;syntaxhighlight lang=&quot;javascript&quot;&gt;
{
  &quot;count&quot;: 3,
  &quot;cells&quot;: [
    {
      &quot;lon&quot;: 21.014,
      &quot;lat&quot;: 52.278,
      &quot;mcc&quot;: 260,
      &quot;mnc&quot;: 2,
      &quot;lac&quot;: 45080,
      &quot;cellid&quot;: 22613,
      &quot;averageSignalStrength&quot;: -70,
      &quot;range&quot;: 123,
      &quot;samples&quot;: 2,
      &quot;changeable&quot;: true,
      &quot;radio&quot;: &quot;GSM&quot; 
    },
    {
      &quot;lon&quot;: 21.04,
      &quot;lat&quot;: 52.2234,
      &quot;mcc&quot;: 260,
      &quot;mnc&quot;: 2,
      &quot;lac&quot;: 58140,
      &quot;cellid&quot;: 42042781,
      &quot;averageSignalStrength&quot;: -90,
      &quot;range&quot;: 125,
      &quot;samples&quot;: 2,
      &quot;changeable&quot;: true,
      &quot;radio&quot;: &quot;UMTS&quot;,
      &quot;rnc&quot;: 641,
      &quot;cid&quot;: 34205
    },
    {
      &quot;lon&quot;: 21.5604,
      &quot;lat&quot;: 52.284,
      &quot;mcc&quot;: 260,
      &quot;mnc&quot;: 2,
      &quot;lac&quot;: 581,
      &quot;cellid&quot;: 42048,
      &quot;averageSignalStrength&quot;: -90,
      &quot;range&quot;: 12345,
      &quot;samples&quot;: 9,
      &quot;changeable&quot;: true,
      &quot;radio&quot;: &quot;LTE&quot;,
      &quot;tac&quot;: 581
    }
  ]
}
&lt;/syntaxhighlight&gt;

===Business logic===
The request is handled by de.enaikoon.gpssuite.web.measure.CellController.

===Example===
&lt;u&gt;https://www.opencellid.org/cell/getInArea?key=xxx&amp;BBOX=52.0,21.0,52.5,21.5&amp;mcc=260&amp;mnc=2&amp;lac=45070&amp;limit=4&amp;offset=16&amp;format=kml&lt;/u&gt;&lt;br&gt;
&lt;u&gt;https://www.opencellid.org/cell/getInArea?key=xxx&amp;BBOX=52.0,21.0,52.5,21.5&amp;mcc=260&amp;mnc=2&amp;lac=45070&amp;radio=CDMA&amp;limit=4&amp;offset=16&amp;format=json&lt;/u&gt;

===Availability===
This feature is available free of charge in case your application contributes data to OpenCellID at the same time.&lt;br&gt;
In case you want to use this service without contributing to OpenCellID please refer to &lt;u&gt;[[Commercial_users|the commercial users guideline]]&lt;/u&gt;.&lt;br&gt;
An automated check for providing this service to white-listed apiKeys only was activated on Jun 15th, 2014

==Getting the number of cells in a specified area==

GET request to
&lt;pre&gt;
https://&lt;WebServiceURL&gt;/cell/getInAreaSize
&lt;/pre&gt;

===Parameters===
&lt;WebServiceURL&gt;: the URL to the web service

===Payload===
key=&lt;apiKey&gt;&amp;BBOX=&lt;latmin&gt;,&lt;lonmin&gt;,&lt;latmax&gt;,&lt;lonmax&gt;&amp;mcc=&lt;mcc&gt;&amp;mnc=&lt;mnc&gt;&amp;lac=&lt;lac&gt;&amp;radio=&lt;radio&gt;&amp;format=&lt;format&gt;

Where

{| class=&quot;wikitable sortable&quot; style=&quot;font-size: 85%; text-align: left;&quot;
|-
! scope=&quot;col&quot; | Parameter
! scope=&quot;col&quot; | Data type
! scope=&quot;col&quot; | Description
! scope=&quot;col&quot; | Optional
|-
| title=&quot;Parameter&quot; | &lt;apiKey&gt;
| title=&quot;Data type&quot; | string
| title=&quot;Description&quot; | API key assigned to the user
| title=&quot;Optional&quot; | no
|-
| title=&quot;Parameter&quot; | &lt;latmin&gt;
| title=&quot;Data type&quot; | double
| title=&quot;Description&quot; | Minimal bounding latitude
| title=&quot;Optional&quot; | no
|-
| title=&quot;Parameter&quot; | &lt;lonmin&gt;
| title=&quot;Data type&quot; | double
| title=&quot;Description&quot; | Minimal bounding longitude
| title=&quot;Optional&quot; | no
|-
| title=&quot;Parameter&quot; | &lt;latmax&gt;
| title=&quot;Data type&quot; | double
| title=&quot;Description&quot; | Maximal bounding latitude
| title=&quot;Optional&quot; | no
|-
| title=&quot;Parameter&quot; | &lt;lonmax&gt;
| title=&quot;Data type&quot; | double
| title=&quot;Description&quot; | Maximal bounding longitude
| title=&quot;Optional&quot; | no
|-
| title=&quot;Parameter&quot; | &lt;mcc&gt;
| title=&quot;Data type&quot; | integer
| title=&quot;Description&quot; | Mobile country code; If you want to restrict the result to a specific country
| title=&quot;Optional&quot; | yes
|-
| title=&quot;Parameter&quot; | &lt;mnc&gt;
| title=&quot;Data type&quot; | integer
| title=&quot;Description&quot; | Mobile network code or system identifier; If you want to restrict the result
| title=&quot;Optional&quot; | yes
|-
| title=&quot;Parameter&quot; | &lt;lac&gt;
| title=&quot;Data type&quot; | integer
| title=&quot;Description&quot; | Local area code, tracking area code or network id; If you want to restrict the result
| title=&quot;Optional&quot; | yes
|-
| title=&quot;Parameter&quot; | &lt;radio&gt;
| title=&quot;Data type&quot; | string
| title=&quot;Description&quot; | You can specifiy GSM, UMTS, LTE, NR or CDMA as the radio of returned data. Otherwise any cells will be returned.
| title=&quot;Optional&quot; | yes
|-
| title=&quot;Parameter&quot; | &lt;format&gt;
| title=&quot;Data type&quot; | string
| title=&quot;Description&quot; | You can specifiy xml or json as output. Default is xml.
| title=&quot;Optional&quot; | yes
|}

===Response===
Upon successful request, HTTP 200 is returned with XML in the following format:

====XML====
&lt;syntaxhighlight lang=&quot;xml&quot;&gt;
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;rsp stat=&quot;ok&quot;&gt;
  &lt;cells count=&quot;5&quot;/&gt;
&lt;/rsp&gt;
&lt;/syntaxhighlight&gt;
====JSON====
&lt;syntaxhighlight lang=&quot;javascript&quot;&gt;
{
  &quot;count&quot;: 123
}
&lt;/syntaxhighlight&gt;

===Business logic===
The request is handled by de.enaikoon.gpssuite.web.measure.CellController.

===Example===
&lt;u&gt;https://www.opencellid.org/cell/getInAreaSize?key=xxx&amp;BBOX=52.0,21.0,52.5,21.5&amp;mcc=260&amp;mnc=2&amp;lac=45070&lt;/u&gt;&lt;br&gt;
&lt;u&gt;https://www.opencellid.org/cell/getInAreaSize?key=xxx&amp;BBOX=52.0,21.0,52.5,21.5&amp;mcc=260&amp;mnc=2&amp;lac=45070&amp;radio=CDMA&amp;format=json&lt;/u&gt;

===Availability===
This feature is available free of charge in case your application contributes data to OpenCellID at the same time.&lt;br&gt;
In case you want to use this service without contributing to OpenCellID please refer to &lt;u&gt;[[Commercial_users|the commercial users guideline]]&lt;/u&gt;.&lt;br&gt;
An automated check for providing this service to white-listed apiKeys only was activated on Jun 15th, 2014

&lt;!-- 
==Deleting a measurement==

POST request to
&lt;pre&gt;
https://&lt;WebServiceURL&gt;/measure/delete
&lt;/pre&gt;

===Parameters===
&lt;WebServiceURL&gt;: the URL to the web service

&lt;id&gt;: ID of the measurement to be deleted

===Payload===
key=&lt;apiKey&gt;&amp;id=&lt;id&gt;

Where

{| class=&quot;wikitable sortable&quot; style=&quot;font-size: 85%; text-align: left;&quot;
|-
! scope=&quot;col&quot; class=&quot;unsortable&quot; | Parameter
! scope=&quot;col&quot; class=&quot;unsortable&quot; | Data type
! scope=&quot;col&quot; class=&quot;unsortable&quot; | Description
| scope=&quot;col&quot; class=&quot;unsortable&quot; | Optional

|-
| title=&quot;Parameter&quot; | &lt;apiKey&gt;
| title=&quot;Data type&quot; | string
| title=&quot;Description&quot; | API key assigned to the user
| title=&quot;Optional&quot; | no
|-
| title=&quot;Parameter&quot; | &lt;id&gt;
| title=&quot;Data type&quot; | string
| title=&quot;Description&quot; | ID of the measure to delete
| title=&quot;Optional&quot; | no
|}

===Response===
Upon successful deletion, HTTP 200 is returned with the string &quot;Measurement with id=&lt;id&gt; has been deleted.&quot;

===Business logic===
The request is handled by de.enaikoon.gpssuite.web.measure.MeasureController.

===Example===
&lt;u&gt;https://www.opencellid.org/measure/delete?key=xxx&amp;id=123abc4567890123abcd1234&lt;/u&gt;

===Availability===
This feature is available free of charge in case your application contributes data to OpenCellID at the same time.&lt;br&gt;
In case you want to use this service without contributing to OpenCellID please refer to &lt;u&gt;[[Commercial_users|the commercial users guideline]]&lt;/u&gt;.&lt;br&gt;
An automated check for providing this service to white-listed apiKeys only was activated on Jun 15th, 2014

==Listing a user's measurements==

GET request to
&lt;pre&gt;
https://&lt;WebServiceURL&gt;/measure/list
&lt;/pre&gt;

===Parameters===
&lt;WebServiceURL&gt;: the URL to the web service

===Payload===
key=&lt;apiKey&gt;&amp;limit=&lt;limit&gt;&amp;offset=&lt;offset&gt;&amp;format=&lt;format&gt;

Where

{| class=&quot;wikitable sortable&quot; style=&quot;font-size: 85%; text-align: left;&quot;
|-
! scope=&quot;col&quot; class=&quot;unsortable&quot; | Parameter
! scope=&quot;col&quot; class=&quot;unsortable&quot; | Data type
! scope=&quot;col&quot; class=&quot;unsortable&quot; | Description
! scope=&quot;col&quot; class=&quot;unsortable&quot; | Optional
|-
| title=&quot;Parameter&quot; | &lt;apiKey&gt;
| title=&quot;Data type&quot; | string
| title=&quot;Description&quot; | API key assigned to the user
| title=&quot;Optional&quot; | no
|-
| title=&quot;Parameter&quot; | &lt;limit&gt;
| title=&quot;Data type&quot; | integer
| title=&quot;Description&quot; | A number defining maximum size of the returned list.&lt;br&gt;Default and maximum value is 1000.
| title=&quot;Optional&quot; | yes
|-
| title=&quot;Parameter&quot; | &lt;offset&gt;
| title=&quot;Data type&quot; | integer
| title=&quot;Description&quot; | The field says to skip that many measurements before beginning to return measurements.&lt;br&gt;Default is 0.
| title=&quot;Optional&quot; | yes
|-
| title=&quot;Parameter&quot; | &lt;format&gt;
| title=&quot;Data type&quot; | string
| title=&quot;Description&quot; | You can specify csv, xml, kml or json as output. Default is csv.&lt;br&gt;In csv type of output, a first line defining the content of the list.
| title=&quot;Optional&quot; | yes
|}

For the total number of cells in a specified area, please use /measure/listSize (described below).

===Response===
Upon successful request, HTTP 200 is returned with one of the following output structures, '''oldest''' entries first:

====CSV (default)====
&lt;pre&gt;
id,mcc,mnc,lac,cellid,lat,lon,created_at,measured_at,signal,rating,speed,direction,radio,ta,rnc,cid,psc,tac,pci,sid,nid,bid
127b4c71e4b041a566539fc5,260,2,38,17171,21.0132,52.235,1400589414253,1396096553493,-90,,,,GSM,3,,,,,,,,
14b52ea2e4b564a972d12361,260,6,52712,59350690,20.424,51.206,1404382897375,1404382894835,-70,,,,UMTS,,905,40610,123,,,,,
14b52ea2e4b564a972c73b29,260,6,18512,30694,21.0132,52.21,1404382866577,1404381511123,-60,10.1,2.3,93.1,LTE,,,,,18512,,,,
14b52ea2e4b564a972c82a67,260,6,18512,30694,21.0137,52.212,1404382867773,1404381512374,-60,10.2,2.5,93.2,LTE,2,,,,18512,3,,,
15b52ea2e4b564a972d11114,310,119,48,4127,42.46,-73.245,1404382891235,1404382890121,-99,,,,CDMA,,,,,,,119,48,4127
&lt;/pre&gt;

====XML====
&lt;syntaxhighlight lang=&quot;xml&quot;&gt;
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;rsp stat=&quot;ok&quot;&gt;
  &lt;measure id=&quot;1213db7abcda4d36357b9f12&quot; 
           lat=&quot;52.892139&quot; 
           lon=&quot;9.436598&quot; 
           mcc=&quot;262&quot; 
           mnc=&quot;2&quot; 
           lac=&quot;434&quot; 
           cellid=&quot;9200&quot; 
           created_at=&quot;1311615996112&quot; 
           measured_at=&quot;1311512208000&quot; 
           signal=&quot;-94&quot; 
           rating=&quot;10.1&quot; 
           speed=&quot;10.2&quot; 
           direction=&quot;90.9&quot; 
           radio=&quot;GSM&quot; 
           ta=&quot;3&quot; /&gt;
  &lt;measure id=&quot;1213db7abcda4d36357b9f15&quot; 
           lat=&quot;52.212&quot; 
           lon=&quot;21.0137&quot; 
           mcc=&quot;260&quot; 
           mnc=&quot;2&quot; 
           lac=&quot;52712&quot; 
           cellid=&quot;59350690&quot; 
           created_at=&quot;1311615996122&quot; 
           measured_at=&quot;1311511534000&quot; 
           signal=&quot;-83&quot; 
           rating=&quot;20.1&quot; 
           speed=&quot;1.2&quot; 
           direction=&quot;9.5&quot; 
           radio=&quot;UMTS&quot; 
           rnc=&quot;905&quot; 
           cid=&quot;40610&quot;
           psc=&quot;102&quot; /&gt;
  &lt;measure id=&quot;14b12ca2e4b564a972c82321&quot; 
           lat=&quot;52.96261&quot; 
           lon=&quot;9.241319&quot; 
           mcc=&quot;262&quot; 
           mnc=&quot;2&quot; 
           lac=&quot;1434&quot; 
           cellid=&quot;17271&quot; 
           created_at=&quot;1404382891235&quot; 
           measured_at=&quot;1404382890121&quot; 
           signal=&quot;-82&quot; 
           rating=&quot;20.12&quot; 
           speed=&quot;11.12&quot; 
           direction=&quot;90.5&quot; 
           radio=&quot;LTE&quot; 
           tac=&quot;1434&quot; 
           pci=&quot;2&quot; /&gt;
  &lt;measure id=&quot;15b52ea2e4b564a972d11114&quot; 
           lat=&quot;42.46&quot; 
           lon=&quot;-73.245&quot; 
           mcc=&quot;310&quot; 
           mnc=&quot;119&quot; 
           lac=&quot;48&quot; 
           cellid=&quot;4127&quot; 
           created_at=&quot;1404382897375&quot; 
           measured_at=&quot;1404382897221&quot; 
           signal=&quot;-99&quot; 
           rating=&quot;0.0&quot; 
           speed=&quot;0.0&quot; 
           direction=&quot;0.0&quot; 
           radio=&quot;CDMA&quot; 
           sid=&quot;119&quot; 
           nid=&quot;48&quot;
           bid=&quot;4127&quot; /&gt;
&lt;/rsp&gt;
&lt;/syntaxhighlight&gt;

====KML====
&lt;syntaxhighlight lang=&quot;xml&quot;&gt;
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;kml xmlns=&quot;http://www.opengis.net/kml/2.2&quot;&gt;
  &lt;Document&gt;
    &lt;name&gt;OpenCellID measurements&lt;/name&gt;
    &lt;description&gt;List of user's measurements&lt;/description&gt;
    &lt;Placemark&gt;
      &lt;name&gt;&lt;/name&gt;
      &lt;description&gt;&lt;![CDATA[id: &lt;b&gt;5213db7abcda4d36357b9f12&lt;/b&gt;&lt;br/&gt;
                            mcc: &lt;b&gt;262&lt;/b&gt;&lt;br/&gt;
                            mnc: &lt;b&gt;2&lt;/b&gt;&lt;br/&gt;
                            lac: &lt;b&gt;434&lt;/b&gt;&lt;br/&gt;
                            cellid: &lt;b&gt;9200&lt;/b&gt;&lt;br/&gt;
                            lat: &lt;b&gt;52.892139&lt;/b&gt;&lt;br/&gt;
                            lon: &lt;b&gt;9.436598&lt;/b&gt;&lt;br/&gt;
                            created_at: &lt;b&gt;1311615996112&lt;/b&gt;&lt;br/&gt;
                            measured_at: &lt;b&gt;1311512208000&lt;/b&gt;&lt;br/&gt;
                            signal: &lt;b&gt;4&lt;/b&gt;&lt;br/&gt;
                            rating: &lt;b&gt;3.4&lt;/b&gt;&lt;br/&gt;
                            speed: &lt;b&gt;0&lt;/b&gt;&lt;br/&gt;
                            direction: &lt;b&gt;0&lt;/b&gt;&lt;br/&gt;
                            radio: &lt;b&gt;GSM&lt;/b&gt;&lt;br/&gt;
                            ta: &lt;b&gt;2&lt;/b&gt;&lt;br/&gt;
                            rnc: &lt;b&gt;&lt;/b&gt;&lt;br/&gt;
                            cid: &lt;b&gt;&lt;/b&gt;&lt;br/&gt;
                            psc: &lt;b&gt;&lt;/b&gt;&lt;br/&gt;
                            tac: &lt;b&gt;&lt;/b&gt;&lt;br/&gt;
                            pci: &lt;b&gt;&lt;/b&gt;&lt;br/&gt;
                            sid: &lt;b&gt;&lt;/b&gt;&lt;br/&gt;
                            nid: &lt;b&gt;&lt;/b&gt;&lt;br/&gt;
                            bid: &lt;b&gt;&lt;/b&gt;]]&gt;
      &lt;/description&gt;
      &lt;Point&gt;&lt;coordinates&gt;9.436598,52.892139,0&lt;/coordinates&gt;&lt;/Point&gt;
    &lt;/Placemark&gt;
    &lt;Placemark&gt;
      &lt;name&gt;&lt;/name&gt;
      &lt;description&gt;&lt;![CDATA[id: &lt;b&gt;5213db7abcda4d36357b9f15&lt;/b&gt;&lt;br/&gt;
                            mcc: &lt;b&gt;262&lt;/b&gt;&lt;br/&gt;
                            mnc: &lt;b&gt;2&lt;/b&gt;&lt;br/&gt;
                            lac: &lt;b&gt;1434&lt;/b&gt;&lt;br/&gt;
                            cellid: &lt;b&gt;59350690&lt;/b&gt;&lt;br/&gt;
                            lat: &lt;b&gt;52.96261&lt;/b&gt;&lt;br/&gt;
                            lon: &lt;b&gt;9.241319&lt;/b&gt;&lt;br/&gt;
                            created_at: &lt;b&gt;1311615996112&lt;/b&gt;&lt;br/&gt;
                            measured_at: &lt;b&gt;1311511534000&lt;/b&gt;&lt;br/&gt;
                            signal: &lt;b&gt;3&lt;/b&gt;&lt;br/&gt;
                            rating: &lt;b&gt;4.4&lt;/b&gt;&lt;br/&gt;
                            speed: &lt;b&gt;4.02&lt;/b&gt;&lt;br/&gt;
                            direction: &lt;b&gt;0.56&lt;/b&gt;&lt;br/&gt;
                            radio: &lt;b&gt;UMTS&lt;/b&gt;&lt;br/&gt;
                            ta: &lt;b&gt;&lt;/b&gt;&lt;br/&gt;
                            rnc: &lt;b&gt;905&lt;/b&gt;&lt;br/&gt;
                            cid: &lt;b&gt;40610&lt;/b&gt;&lt;br/&gt;
                            psc: &lt;b&gt;12&lt;/b&gt;&lt;br/&gt;
                            tac: &lt;b&gt;&lt;/b&gt;&lt;br/&gt;
                            pci: &lt;b&gt;&lt;/b&gt;&lt;br/&gt;
                            sid: &lt;b&gt;&lt;/b&gt;&lt;br/&gt;
                            nid: &lt;b&gt;&lt;/b&gt;&lt;br/&gt;
                            bid: &lt;b&gt;&lt;/b&gt;]]&gt;
      &lt;/description&gt;
      &lt;Point&gt;&lt;coordinates&gt;9.241319,52.96261,0&lt;/coordinates&gt;&lt;/Point&gt;
    &lt;/Placemark&gt;
  &lt;/Document&gt;
&lt;/kml&gt;
&lt;/syntaxhighlight&gt;

====JSON====
&lt;syntaxhighlight lang=&quot;javascript&quot;&gt;
{
  &quot;count&quot;: 2,
  &quot;measurements&quot;: [
    {
      &quot;id&quot;: &quot;11123b7abcda1436357b9f12&quot;,
      &quot;lon&quot;: 9.436598,
      &quot;lat&quot;: 52.892139,
      &quot;mcc&quot;: 262,
      &quot;mnc&quot;: 2,
      &quot;lac&quot;: 434,
      &quot;cellid&quot;: 9200,
      &quot;created_at&quot;: 1311615996112,
      &quot;measured_at&quot;: 1311512208000,
      &quot;signal&quot;: -84,
      &quot;rating&quot;: 10.3,
      &quot;speed&quot;: 10.2,
      &quot;direction&quot;: 90.08,
      &quot;radio&quot;: &quot;GSM&quot;,
      &quot;ta&quot;: 3
    },
    {
      &quot;id&quot;: &quot;11123b7abcda1236357b9f15&quot;,
      &quot;lon&quot;: 9.241319,
      &quot;lat&quot;: 52.96261,
      &quot;mcc&quot;: 262,
      &quot;mnc&quot;: 2,
      &quot;lac&quot;: 1434,
      &quot;cellid&quot;: 42119093,
      &quot;created_at&quot;: 1311615996122,
      &quot;measured_at&quot;: 1311511534000,
      &quot;signal&quot;: -93,
      &quot;rating&quot;: 20.13,
      &quot;speed&quot;: 11.1,
      &quot;direction&quot;: 90.01,
      &quot;radio&quot;: &quot;UMTS&quot;,
      &quot;rnc&quot;: 642,
      &quot;cid&quot;: 44981
    }
  ]
}
&lt;/syntaxhighlight&gt;

If you want the '''newest''' entries, use an &lt;code&gt;&amp;offset=&lt;/code&gt; to subtract most of the [[#Getting the number of measurements from a user|number of measurements from a user]].

===Business logic===
The request is handled by de.enaikoon.gpssuite.web.measure.MeasureController.

===Example===
&lt;u&gt;https://www.opencellid.org/measure/list?key=xxx&amp;limit=2&amp;offset=128&amp;format=xml&lt;/u&gt;

===Availability===
This feature is available free of charge in case your application contributes data to OpenCellID at the same time.&lt;br&gt;
In case you want to use this service without contributing to OpenCellID please refer to &lt;u&gt;[[Commercial_users|the commercial users guideline]]&lt;/u&gt;.&lt;br&gt;
An automated check for providing this service to white-listed apiKeys only was activated on Jun 15th, 2014

==Getting the number of measurements from a user==

GET/POST request to
&lt;pre&gt;
https://&lt;WebServiceURL&gt;/measure/listSize
&lt;/pre&gt;

===Parameters===
&lt;WebServiceURL&gt;: the URL to the web service

===Payload===
key=&lt;apiKey&gt;&amp;format=&lt;format&gt;

Where

{| class=&quot;wikitable sortable&quot; style=&quot;font-size: 85%; text-align: left;&quot;
|-
! scope=&quot;col&quot; class=&quot;unsortable&quot; | Parameter
! scope=&quot;col&quot; class=&quot;unsortable&quot; | Data type
! scope=&quot;col&quot; class=&quot;unsortable&quot; | Description
! scope=&quot;col&quot; class=&quot;unsortable&quot; | Optional
|-
| title=&quot;Parameter&quot; | &lt;apiKey&gt;
| title=&quot;Data type&quot; | string
| title=&quot;Description&quot; | API key assigned to the user
| title=&quot;Optional&quot; | no
|-
| title=&quot;Parameter&quot; | &lt;format&gt;
| title=&quot;Data type&quot; | string
| title=&quot;Description&quot; | You can specifiy xml or json as output. Default is xml.
| title=&quot;Optional&quot; | yes
|}

===Response===

====XML====
Upon successful request, HTTP 200 is returned with XML in the following format:

&lt;syntaxhighlight lang=&quot;xml&quot;&gt;
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;rsp stat=&quot;ok&quot;&gt;
  &lt;measurements count=&quot;123&quot;/&gt;
&lt;/rsp&gt;
&lt;/syntaxhighlight&gt;

====JSON====
&lt;syntaxhighlight lang=&quot;javascript&quot;&gt;
{
  &quot;count&quot;: 5
}
&lt;/syntaxhighlight&gt;

===Business logic===
The request is handled by de.enaikoon.gpssuite.web.measure.MeasureController.

===Example===
&lt;u&gt;https://www.opencellid.org/measure/listSize?key=xxx&lt;/u&gt;

===Availability===
This feature is available free of charge in case your application contributes data to OpenCellID at the same time.&lt;br&gt;
In case you want to use this service without contributing to OpenCellID please refer to &lt;u&gt;[[Commercial_users|the commercial users guideline]]&lt;/u&gt;.&lt;br&gt;
An automated check for providing this service to white-listed apiKeys only was activated on Jun 15th, 2014

==Check the online status of OpenCellID==
GET/POST request to
&lt;pre&gt;https://&lt;WebServiceURL&gt;/ocid/status&lt;/pre&gt;

===Parameters===
&lt;WebServiceURL&gt;: the URL to the web service

===Response===
Upon successful request, HTTP 200 is returned with JSON in the following format:
&lt;syntaxhighlight lang=&quot;javascript&quot;&gt;
{&quot;status&quot;:&quot;ok&quot;}
&lt;/syntaxhighlight&gt;

===Business logic===
The request is handled by de.enaikoon.gpssuite.web.ocid.StatusController

===Example===
&lt;u&gt;https://opencellid.org/ocid/status&lt;/u&gt;

--&gt;</rev>
        </revisions>
      </page>
      <page pageid="1" ns="0" title="Main Page">
        <revisions>
          <rev user="Admin" timestamp="2018-04-25T16:50:45Z" comment="" contentformat="text/x-wiki" contentmodel="wikitext" xml:space="preserve">This project is funded by [https://unwiredlabs.com Unwired Labs]. 


'''Please share your thoughts/ suggestions/ feedback/ queries here: [https://community.opencellid.org OpenCelliD Community]''' 


{|border=&quot;0&quot; width=&quot;680px&quot; cellspacing=&quot;0&quot;
|[[File:What_is_OpenCellID2.png|link=What_is_OpenCellID|250px]]
|align=&quot;right&quot; | [[File:OpenCellID_how_to_join2.png|link=How_to_join|250px]]
|-
|style=&quot;height:8px;&quot; |
|-
|[[File:OpenCellID_how_to_contribute2.png|link=How_to_contribute|250px]]
|align=&quot;right&quot; | [[File:OpenCellID_view_the_data2.png|link=View_the_data|250px]]
|-
|style=&quot;height:8px;&quot; |
|-
|[[File:OpenCellID I want to use the data2.png |link=http://wiki.opencellid.org/wiki/Commercial_users |250px]]
|align=&quot;right&quot; | [[File:OpenCellID_scoring_lists2.png |link=http://wiki.opencellid.org/wiki/Licensing:|250px]]
|}</rev>
        </revisions>
      </page>
    </pages>
  </query>
</api>