core-location

Corelocation Problem

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...

Strangest Thing Ever: Core Location staying active even when app is not running

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...

Calculate compass heading to a CLLocation - Haversine functions for iOS

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 ...

What are your CoreLocation best practices?

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 ...

iPhone Objective-C CoreLocation: Want to populate table with data based on current location.

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...

from web server, how I can get the exact GPS location of any iphone ?

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. ...

Why is my maximumRegionMonitoringDistance 0 meters with an iPhone 4?

[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) ...

CoreLocation: monitor only certain regions at a time

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...

Access to location arrow in SDK

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. ...

Re-enable iPhone Simulator location services

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. ...

iphone core location: distance filter how does it work!?

Hi, Just ashort question. what exactly does the "locationmanager.distancefilter" property? does it dermine how often the "didUpdateTolocation" method gets called?? ...

Core Location - Zoom in on current position

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 ...

What's the maximum number of regions that can be monitored on iPhone?

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 ...

testing GPS in iPhone simulator problem

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...

In a CLI Cocoa application, how does one implement a event loop?

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...

Google Maps Integration inside iPhone App

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...

iPhone SDK - MapKit CoreLocation - Make street address from latitude and longitude

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? ...

How can I receive location updates while my application is in the background?

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 do I find the current position in the mapview

How can I get the longitude, and latitude of the current position showing on the mapView? Thanks. ...

how to set and convert an address in a uitextfield

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. ...