Over a million developers have joined DZone.

Mobile Location Information

DZone's Guide to

Mobile Location Information

Free Resource

import location
mcc, mnc, lac, cellid = location.gsm_location()
# lac, cellid can be used to guess your location

mcc = Mobile Country Code
mnc = Mobile Network Code
lac = Location Area Code
cellid = Cell Id

mcc and mnc is the same wherever you are.
Normally, you would collect some data of your location
and match it with lac/cellid. Then later you can guess
your location from current lac/cellid.

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}