I am developing an application which computes the distance travelled by the user.I am using CLLocationManager class to do so.But i am getting the cached data initially and also the distance variable is increasing at a sudden rate.please help me out ...i have used the follwoing code....
Note:distance is a static var. here
- (void)vie...
This afternoon I walked my iPhone 4 into the Apple Store to see if they could help with a problem I've been having. Battery life hasn't been AT ALL what it should be--the battery drops 50% sitting on my desk overnight. Crazy. So I suspect I've got a bum unit. Happens. No biggie.
My friendly genius pokes around my phone a bit, and points...
I understand how to get the distance between 2 CLLocations. I need to determine the generalized compass bearing (N, NE, E etc.) from a CLLocation to another CLLocation.
Before I implement something to derive the bearing with the haversine formula is there a generally adapted open source library or code fragment that you've found solves ...
I am working on a CoreLocation based application wich should show the position of the user on a map.
My current problem is, that the precision of CL is not very good.
I am testing the app in an urban environment, so i am walking through a the streets around our office and see how precise it is. The horizontalAccuracy is usually around ...
I am trying to get the current longitude and latitude right before the table loads and use the coordinates to make an HTTP request to get a list of nearby locations to display in a table. Right now, I am calling startUpdatingLocation in viewWillLoad, which is too late. My problem is that I can't seem to get the locations before the table...
HI
I want to run my code on web server , which will track any iphones physical location (using mobile number of card inside iphone) .
How can I do that , Is coreLocation gives that facility ?
thank you.
...
[CLLocationManager regionMonitoringAvailable] and [CLLocationManager regionMonitoringEnabled] both return YES. performing [locationManager maximumRegionMonitoringDistance] returns 0. Why?
(I have iOS 4.0.1, and this is using Ad-Hoc distribution)
...
In my iPhone app I'd like to monitor if the user enters some particular geographycal regions at a time and act consequently.
I now saw that with the new iOS 4 it is possible to register some interest regions (CLRegion) to a CLLocationManager, so it would do some job for me, but... I'd also need to dynamically change the set of the regio...
Simple question, the little arrow that is used for the Apple's find your current location icon. Do you have access to that icon in the SDK as a UIBarButtonSystemItem or something similar? Looked through the doco and its not a UIBarButtonSystemItem as far as I could see.
...
I have disabled location services on the simulator with the "Don't ask again" option set, thinking that I could re-enable it later, but now I can't find out how.
Can someone point me out where to change this setting?
Thanks.
...
Hi,
Just ashort question. what exactly does the "locationmanager.distancefilter" property? does it dermine how often the "didUpdateTolocation" method gets called??
...
Hello,
Is there anyway using Core Location to zoom in on the users current location, when my map loads its showing the entire world, I want the map to zoom in about 3km above the users current location.
Regards,
Stephen
...
Any one know what's the maximum number of shared regions is? Do you get regionMonitoringDidFail call if you exceed it?
http://developer.apple.com/iphone/library/documentation/CoreLocation/Reference/CLLocationManager_Class/CLLocationManager/CLLocationManager.html#//apple_ref/occ/instp/CLLocationManager/monitoredRegions
...
I found some various articles about testing the GPS (corelocation) in the iPhone simulator.
It seems pretty straightforward, but i can't get it to work.
The error message i'am getting is:
2010-07-30 11:20:16.372 appname[50954:207] *** +[CLLocation initWithCoordinate:altitude:horizontalAccuracy:verticalAccuracy:timestamp:]: unrecogni...
I have a Delegate class that handles responses from CLLocationManager and prints them via printf(). Is there some type of busy loop I can put in main() so that the program stays open and keeps CLLocationManager connected to Delegate happily processing events?
#import <Foundation/Foundation.h>
#import "Delegate.h"
#import <CoreLocation/C...
I have a question about Google Maps integration inside a iPhone application.
On my application, I have several stores inside a plist. Each store on plist has its altitude and logintude. So, I load each store on the map provided by Google Maps with MapKit.
The problem is I want to say the user what is the store nearest his location. An...
I have a problem in an app I am building.
I can retrieve the users latitude and longitude, however I need to convert those values into an NSString street address. ie. "123 Park Street, Sydney".
Any idea as to how I can create a street address from the coordinates?
...
I am working on an application that responds to updates in a device's location. How can I allow my application to continue to receive location updates while it is running in the background? Also, how can I present a notification to the user when they have entered a specific location?
...
How can I get the longitude, and latitude of the current position showing on the mapView?
Thanks.
...
hello i am trying to figure out how to be able to have the user input an address which would then be converted into long/lat coordinates that could be saved in a string.
...