i m working with the application which are needed to get current lat long of user .
in our area GPS is not working so how to get lat long without gps system
You can send your wifi and/or cellid info to google (or to RIM's own service but that is still alpha quality) and it will tell you your lat-long, see method here:
Cell triangulation on BlackBerry
Related
I'm developing an IOS application, that showing user's current location in Google Map when the application load. It's the first screen that I'm showing to users.
But for the first time, application shows incorrect location in the Google Map. Most cases it happens when we do a fresh install. From the second attempt application shows accurate location in the Map.
I'm using IOS default to do this. Using horizontal accuracy & location age we are determining what we assume to be the most accurate current location of the user.
Is there any reason why this is not working as expected?
It has to do with the way iOS get you users location. Often the first location is the last known location, you can check the date on the location results to see how old it is.
The you get the location by triangulation of cellular and WiFi networks. After this location update the phone might have a good GPS signal and will give the most accurate location.
I am looking to get my Latitude and Longitude from my IOS device when my gps is not on or simply when in the setting the user makes the Location to NEVER.
In android I have done this. Since I am new to IOS development is there any way to find out the latitude and longitude .
Please ask for edit or do it if I have framed the question in a wrong way. Hope I have clearly mentioned the issue.
Any help into this is appreciated.
iOS only has the CLLocationManager available for get the devices location. The CLLocationManager uses all possible method to get the location of the deice.
It uses cellular triangulation and only later after it get a GPS fix will it pass these locations to your app.
There is no way to ask CLLocationManager to only use cellular triangulation. You might only get the location based on cellular triangulation and WiFi if you set the desiredAccuracy higher.
So you will always need to use the CLLocationManager which requires the users permission.
There is no other way to get the users location in iOS.
If the user does not give the app permission for location, you will not be able to get it from GPS or cellular.
You might be able to get an rough approximation based upon the IP address, but that will be far from precise.
i need to get the current location of device and for that i used the GPS mode in blackberry and i succeeded to get but the GPS work outdoor under sky not under roof so maybe is there another way or another method to get the location indoor.
i tried with this sample code :
http://supportforums.blackberry.com/t5/Java-Development/Location-APIs-Start-to-finish/ta-p/571949
and also same result cant get location indoor its return nothing
wish is there any help and thnx for answer
Read again that link. It explains how to use Geolocation API, which is available starting from OS 5.0. The locations are obtained based on Cell info (OS 5.0) and also from Wi-Fi access points (OS 6.0).
UPDATE
Read this tutorial on how to use geolocation.
hi all i am working on Application which is bashed on Event according to current location .when my application start i am displaying Event in my ListField according to current location. Application works fine in Simulator after sending Latitude & Longitude manually from simulator.
When i test this app in my device BB storm2 9550, device cant get current location within 3 or 4 second (during Splash screen) . but after some time it get current location successfully .
how can i get my current location as fast as iphone an Android ?
is there any way to get current lat long from device GPS system which we are getting on Refresh GPS .
please suggest me if any one have any idea.
Thanks in Adavance !!!
if you are not getting lat/long quickly then it sounds like you are trying to get the locations using the GPS radio. This would mean it will take time to connect to the satellites . this would also require sky in sight of the phone, ie it will not work indoors.
The quickest way to get lat/longs are
Use cellsite technology( Blackberry supports this in some devices using triangulation)
Use a cellid provider like google location api or opencellid to get the lat/long using the current cell id.
These doesnt drain the battery as much as using the GPS radio so if you can , try using these. Although the lat/long are not accurate as GPS radio lat/longs.
Please check the following for all the info you would ever need for blackberry GPS techniques.
Simple Location API
Location API- start to finish
At a hardware level, BlackBerry devices used to mount Qualcomm's gpsOne chipset, which, in my opinion, is slower than the ones you could find in most recent Android or Apple devices (SiRFstar or Broadcom, etc). Or maybe the BlackBerry OS didn't interface with it in an efficient manner. For whatever reason, I've experienced higher TTFFs in BlackBerry devices than in Android, for a given place. I may be wrong here, it is just an opinion.
I think newer BlacBerries are mounting other chipsets now. And also, as of September 2011, WiFi geolocation service is also available in OS 6.0 and later. Before that, the only location service in BB was A-GPS and celltower (only OS 5.0 onwards).
Some useful links:
Location APIs – Start to finish
Simple Location API
Is it possible to develop location (longitude, latitude) based application for Blackberry smartphones with no internal GPS chip?
Yes you can get location information.
There are three different modes that you can use to get location.
-> cell site: Use this mode to obtain location information from cell site towers.
-> assisted: Use this mode to get location information from satellites using a PDE.
-> autonomous: Use this mode to get location information from the GPS receiver on the BlackBerry device without assistance from the wireless network.
You can use cell site or assisted mode to get location.
You can find more information at http://docs.blackberry.com/en/developers/deliverables/644/GPS_and_BlackBerry_Maps_Development_Guide.pdf
Jim.
Yes, it is possible. Devices can determine their position based on known locations of cell towers and/or WiFi hotspots that are in range. It's usually not as precise as GPS, but it can still be serviceable.
Skyhook Wireless is one of the major providers:
http://en.wikipedia.org/wiki/Skyhook_Wireless
http://www.skyhookwireless.com/