| ID | Creation date | March 15, 2007 | |
| Platform | S60 1st Edition, S60 2nd Edition, S60 3rd Edition | Tested on devices | Nokia N95, Nokia E90 |
| Category | Python | Subcategory | Location Based Services |
| Keywords (APIs, classes, methods, functions): location |
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.
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.
More information about the items described above:
No related wiki articles found