06-19-2010 06:11 AM - edited 06-19-2010 06:21 AM
Hi Is there a way to fetch Latitude and Longitude of a device without using the inbuilt GPS in the device?
I have tried using the google maps api to fetch --> http://www.google.com/glm/mmap
the api uses the cell ID and lac retrived using
cellId = GPRSInfo.getCellInfo().getCellId();
lac = GPRSInfo.getCellInfo().getLAC();
this provides me currect lat and long, but the method GPRSInfo.getCellInfo().getCellId(); does not consistently return me a single value all the time and thus the lat and long fetched using google api call also fails.
The second proble is this mechanism will not work for CDMA devices as they do not have cell id and lac,
Is there any way to get the latiude and longitude of a device using a data base for bid sid nid .
The google maps works fine for both gsm and cdma devices even without inbuilt gps.
Please give me suggestions regarding this issue.
thanks in advance
06-22-2010 03:09 AM
Since your device can switch between different cells, it's actually expected that getCellId may return different values at different times even when your phone is stationary.