Hi, I am strugling here to get this Geolocation API Network Protocol
working.
I put all celltower info but not able to get good geolocation.
I am using Java, but tried with python also for debug purposes.
Here my python code.
>>> import sys
>>> import urllib2
>>> import json
>>> url = "
http://www.google.com/loc/json"
>>> jdata = json.dumps({"version":"1.1.0","celltowers":[{"cell_id":"42","location_area_code":415,"mobile_country_code":310,"mobile_network_code":410,"age":0,"signal_strength":-60,"timing_advance":5555}]})
>>> output = urllib2.urlopen(url,jdata).read()
>>> sys.stdout.write(output)
i get always same answer. If I try other celltower infos like usa,
where I took examples from other pages gives me same location...
{"location":{"latitude":38.707163,"longitude":-9.135517,"accuracy":
140000.0},"access_token":"2:r2GQibRS8m4Daw2j:UxjhJoiACpsCYxS6"}
could someone help me out?
Thanks
Nuno