I want to use a MKMapView to display the user current location using the default breathing blue pin and I want to record the user movement at the same time. Is there any way that I could use the GPS manager (not sure if this is a CLLocationManager) the MKMapView uses when we enabled it to show user location?
I know that I can create my...
I haven't think of this yet now .
Till now whenever device was asking me use location update I was allowing it .
But when now I am not allowing then it the location manager gives me kclErrorDenied and the location manager can not start again until I restart the application .
So my question is that should I give a message to restart ...
Hello Users,
I have a little (and I hope not hard, for you ) question:
How can I get the latitude and longtitude from mapView.userLocation?
I need that to get the distance between userLocation and another point on the map.
I hope you can help me and thank you beforehand!
Best Regards,
Marco
...
Hello community,
i have a mapView with pins on it, and the following code for CLLocation and getDistance between me and another points on the map:
- (void)locationManager:(CLLocationManager *)manager
didUpdateToLocation:(CLLocation *)newLocation
fromLocation:(CLLocation *)oldLocation{
Koordinate *kunde = [[Koordina...
I has a bug where my application crashed "EXC_BAD_ACCESS" when I hit the back key on my navigation bar and the view unloaded that had a MapKit (mapView) and used the Location Manager. Tried for days to fix the bug and finally came up with a fix for anyone that comes across this problem:
Add this code to your dealloc
(void)dealloc {
...
Hi, In my app I use the getdistancefrom method in my app and get a distance between a current location and another set location.
I would like to as well find the direction the other set location is in. What would the code look like to make this iPhone sdk call.
The output would look something like: Location is 500 feet North West
...
If i want to show userLocation on the map, and at the same time record the user's location, is it a good idea to add an observer to userLocation.location and record the locations, OR should i still use CLLocationManager for recording user location and use mapView.showUserLocation to show the user's current location (blue indicator)? I wa...
hi all,
i'm writing some code for getting some values including course
-(void) locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation {
//somecode
NSString *dirString = [[NSString alloc] initWithFormat:@"%d", newLocation.course];
int myInt = [...
Hi all, i'm try to retreiving city name with cllocation and mkreversegeocoder.
in my viewdidload method i istance cllocationmanager:
self.locManager = [[CLLocationManager alloc] init];
locManager.delegate = self;
locManager.desiredAccuracy = kCLLocationAccuracyBest;
[locManager startUpdatingLocation];
and after:
- (void) locationMana...
I'm using following conditions in-order to make sure that the location i get has adequate accuracy, In my case kCLLocationAccuracyBest. But the problem is that i still get inaccurate location.
// Filter out nil locations
if(!newLocation)
return;
// Make sure that the location returned has the desired accuracy
if(newLocation.horizon...
from 1 week if my gps app fail to retrieve signal (eg: testing in my home) i don't receive any aler.
i've setup my error notification in this way
- (void)locationManager:(CLLocationManager *)manager didFailWithError:(NSError *)error { NSString *errorType = (error.code == kCLErrorDenied) ?
@"Access Denied" : @"Errore sconosciuto"; ...
I've been trying to find any way to optimize the performance of my location-based iPhone application and have seen some people mention that you can force location updates by starting and stopping your CLLocationManager. I need the best accuracy I can get, and the user in my case would probably like to see updates every few seconds (say,...
So, I've followed other related threads, but for some reason I'm still having this error and I'm about ready to tear my hair out. I have implemented locationManager:didFailWithError to check and see if a user selects 'Don't Allow' to use the current location.
-(void)locationManager:(CLLocationManager *)manager didFailWithError:(NSError...
Using the MKReverseGeocoder or GoogleAPI or MapKit...
Is there a simple way to turn a latitude/longitude into "nearest major cross-streets"?
A user might not have any idea where "12345 Pineapple" is located... so I want to show something like "Pineapple and Main"... or (larger, major roads) like "US-140 and Hwy 76".
I don't really ca...
What is the difference between "UIAccelerometer" and "CLLocationManager"? Both give me x, y and z axis as result.
UIAccelerometer
X -18.000
Y -03.500
Z -41.000
CLLocationManager
X -0.036
Y -0.002
Z -1.069
Is this information from the same sensors with different formatting? Or are there "real" differences?
Thanks!
...
Hi, I just familiarise myself with the CLLocationManager and found several sample class definitions that contain the following init method:
- (id) init {
self = [super init];
if (self != nil) {
self.locationManager = [[[CLLocationManager alloc] init] autorelease];
self.locationManager.delegate = self;
}
...
Hi everyone,
I've run into something of a mysterious bug (to me). I have some code to pick out the user's current location on the iPhone SDK. It works fine on the iPhone simulator, but when I try to run it on the actual device, I get a weird error.
Here is the code (I am using ASIFormDataRequest to create a POST request):
ASIFormData...
For normal situations, the didUpdateToLocation (of CLLocationManager) does not work any more when the lock/sleep button is pushed, and your app cannot get further newLocation coordinates during the locked period.
However, some apps CAN track during the locked period, and they will show the correct route when you unlocked and see the Map...
I know there are a few apps out there to fake a devices location but specifically what i want to do is use a location grabbed from a url.
What direction should I look for setting the location on the device.
The scenario i have is a jailbroken Wi-Fi iPad tethered to a nexus one. The nexus one would host a background service that when ...
hi all,
can CLLocationManager class be used to compute the distsnce travelled by the person?
...