Mobile Location Information
Join the DZone community and get the full member experience.Join For Free
import location mcc, mnc, lac, cellid = location.gsm_location() # lac, cellid can be used to guess your locationmcc = 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.