Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries. Thanks for all your past and future contributions.

Archived:How to get info on cell location in PySymbian

From Wiki
Jump to: navigation, search

Archived.pngArchived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.

The article is believed to be still valid for the original topic scope.

Article Metadata
Tested with
Devices(s): Nokia N95, Nokia E90
Platform(s): S60 1st Edition, S60 2nd Edition, S60 3rd Edition
Keywords: location
Created: cyke64 (15 Mar 2007)
Last edited: hamishwillee (31 May 2013)

This code snippet shows how to retrieve information such as MCC, MNC, LAC and Cell ID in Python.



Note: The location module requires capabilities ReadDeviceData, ReadUserData and Location starting with S60 3rd Edition.

Source code

import location
mcc, mnc, lac, cellid = location.gsm_location()
print "Mobile Country Code:", mcc
print "Mobile Network Code:", mnc
print "Location Area Code:", lac
print "Cell ID:", cellid


The information is displayed.


Starting with S60 3rd Edition the Script Shell must be signed with the Location, ReadDeviceData and ReadUserData capabilities to be able to run the code.

Additional information

More information about the items described above:

  • Mobile Country Code - defines the country where you are
  • Mobile Network Code - defines the network within the country
  • Location Area Code - defines an area covered by a group of radio cells
  • Cell ID - defines a single transmitter. In many cases, especially in heavily populated areas, there are 3 cells on a single base-station, each covering 120 degrees.
This page was last modified on 31 May 2013, at 01:08.
38 page views in the last 30 days.