Hello all
I am developing an iPhone app which is a location aware app .
Currentlly the app is working fine except the caching of previous location .
The first time I start the application location manager fetches the current location and then I display nearby things based on the current location .
But from the next it uses previousl...
Hi guys i did not do much using location in iPhone SDK. Can we implement wifi triangulation code in CLLocation.
...
Hi I am wondering if there is away to send the lat and long of a persons location to a URL? It would also need to have their UDID number to match with the database.
Here is what I have so far if anyone can help that would be great...
-(void)viewDidLoad {
NSString *query = [[NSString alloc] initWithFormat:
...
Hello,
I'm currently using the ARKit ported by the http://iphonear.org guys, looping through a fetched xml and plotting coordinates on the screen. However for some reason casting the object values:
for(NSObject *locxml in xmlLocations) {
tempLocation = [[CLLocation alloc]
initWithLatitude: (int)[locxml valueF...
I have encountered a problem of populating the description for each annotation. Each annotation works, but there is somehow an area when trying to click on it. Here is the code. the one in bold is the one that has the problem.
-(void)viewDidLoad{
FlickrFetcher *fetcher=[FlickrFetcher sharedInstance];
NSArray *rec=[fetcher re...
have an app that finds your GPS location successfully, but I need to be able to compare that GPS with a list of GPS locations, if both are the same , then you get a bonus.
I thought I had it working, but it seems not.
I have 'newLocation' as the location where you are, I think the problem is that I need to be able to seperate the long ...
Ok , so thanks to Claus Broch I made some progress with comparing two GPS locations. I need to be able to say "IF currentlocation IS EQUAL TO (any GPS position from a list ) THEN do something
My code at the moment is :
CLLocationCoordinate2D bonusOne;
bonusOne.latitude = 37.331689;
bonusOne.longitude = -122.030731;
Which is th...
Is it possible to display a View controller with further details of the Map annotation on a new view controller which when popped returns back to the MKMap view with the annotations still on it at that position. I can't seem to find a way in the SDK documentation that seems to indicate that its possible.
...
How does this condition work? I'm unable to comprehend this.
if ([newLocation.timestamp timeIntervalSince1970] < [NSDate timeIntervalSinceReferenceDate] - 60) return;
Reference: More iPhone 3 Development - Tackling iPhone SDK 3
...
I am creating an app that requires the users current time zone. If the device being used is an iPhone and the user has their Time Zone set to automatically change, I think I can be fairly confident that localTimeZone or systemTimezone will give me the correct time zone for the user's location.
If on the other hand the device is an iPod ...
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...
Hi all,
I am trying to devellopp an app showing the nearest poi to the users location.
My app is now capable of: showing a map (Mapkit) with 110 annotations and the user's location.
Furthermore, I have a TableView at the bottom of my screen, to choose between the different annotations. However, they're listed by number, and not by pro...
Sorry, this may be a noob question but I'm working with CoreLocation and this has be stumped.
I'm looking up the currentLocation using a singleton that was recommended on this site and when I get the currentLocation object, it returns true to a not nil check. However, when I try to print out its description, it throws EXC_BAD_ACCESS. ...
I've got an sqlite db with long and lat of shops and I want to find out the closest 5 shops.
So the following code works fine.
if(sqlite3_prepare_v2(db, sqlStatement, -1, &compiledStatement, NULL) == SQLITE_OK) {
while (sqlite3_step(compiledStatement) == SQLITE_ROW) {
NSString *branchStr = [NSString stringWithUTF8Str...
This is the code that I have in my AppDelegate Class
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
CLLocationManager *locationManager = [[CLLocationManager alloc] init];
locationManager.delegate = self;
locationManager.distanceFilter = 1000; // 1 Km
...
The location manager delegate methods are taking too long time to determine the latitude and longitude in 4.0 , where as it is much faster in iPhone OS 3.0, 3.1, 3.1.3 etc.
Any way to make the call faster ???
...
CLLocationManager on iPhone Simulator is supposed to fake Cupertino (isn't it?) but it does NOT, it fails with kCLErrorDomain Code=0 instead. LocationManager's delegate receives the message didFailWithError. This method is implemented to log the error and the console outputs the following:
Error Domain=kCLErrorDomain Code=0 "The operati...
After
[locationManager startUpdatingHeading];
locationManager.headingFilter = kCLHeadingFilterNone;
(void) locationManager:(CLLocationManager*)manager didUpdateHeading:(CLHeading*)newHeading
{
heading = newHeading.trueHeading;
heading += -90.0 * roll;
NSLog(@"heading");
}
I get the heading once and then there is normally a 20 second...
hi , i need to get the speed of my device (meters per seconds) and this is my code the speed is always 0 i don't understand.
- (void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation{
double gpsSpeed2 = newLocation.speed;
labelm.text = [N...
After switching to SDK4 Cllocation updates behave strange. Before, the delegate was calles twice or sometimes even 3 times a second if the signal was good. It didn't matter if we were moving or if the movement stopped.
Now, the delegate stops to be called as soon as the movement stops. There might be one or two more calls but thats it.
...