Professional Documents
Culture Documents
Google Keep Document
Google Keep Document
api_key = 'AIzaSyAJy4FoRda-sZQGX1WM_OrMzgxAReupj60'
url = f'https://www.googleapis.com/geolocation/v1/geolocate?key={api_key}'
headers = {'Content-Type': 'application/json'}
data = {
'considerIp': False,
'cellTowers': [
{
'cellId':+524481026428['cellId'],
'locationAreaCode': cell_data['lac'],
'mobileCountryCode': cell_data['mcc'],
'mobileNetworkCode': cell_data['mnc']
}
]
}
+524481026428 = {
'mcc': '334',
'mnc': '020',
'lac': '+52',
'cellId': '+524481026428'
}
location = get_location(+524481026428)
print(location)