According to this sample:
http://www.codeproject.com/KB/mobile/DeepCast.aspx
It's possible to request a gps coordinate (longitude & latitude) including range when sending cellid information (MCC, MNC, towerid, etc)
Can someone tell me the actual parameter to request/post to this address?
http://www.google.com/glm/mmap
It could be something like this
http://www.google.com/glm/mmap?mcc=xxx&mnc=xxx&towerid=xxx
And i would like to know what response we would get.
I have observe OpenCellid website and they provide some nice API to begin with, but i want to know about that in google map too (since they have more completed database).
Here is example for work with
Base on GeolocationAPI, here are some parts of my code:
The object
GsmParams
is just a Java bean containing GSM parameters MCC, MNC, LAC, CID. I think you can create a same class easily.After getting connection, you can call
conn.getInputStream()
and get results from Google Maps. Then useJsonReader
to parse data...You could use the Google Location API which is used by Firefox (Example see at http://www.mozilla.com/en-US/firefox/geolocation/ ) which has the url www.google.com/loc/json/. In fact this is JSON based webservice and a minimal Perl Example Look like this:
Please keep in mind that Google has not officially opened this API for other uses...
The new place for the Google location API is the following : https://developers.google.com/maps/documentation/geolocation/intro
With this API, you can retrieve a location from Cell information (cellid, mcc, mnc, and lac)
As noted in other threads also check out https://labs.ericsson.com/apis/mobile-location/documentation/cell-id-look-up-api for a free cell-ID database to get coordinates from cellid, mcc, mnc, and lac .