core-location

Location Based Application for iphone

I want to create an application which retrieves the latitude and longitude value of the current position of the iphone, give those values to some 3rd party server and gets details about that place, if possible show a map of that area on an imageview. I've done for the part of getting the locale information, ie to get the latitude and lo...

Measuring velocity via iPhone SDK

I need to implement a native iPhone app to measure the velocity of the phone (basically a speedometer). I know that you can do so via the CoreLocation API fairly easily, but I am concerned about battery consumption since this is to be a real-time measurement that could be used for up to a couple of hours at a time. My understanding is ...

iPhone Accurate Reverse Geolocation

I want to get the most accurate location possible in my app. I have tried in the past (about 2 months ago) and I used to get some quite odd results. Like one time it would get a location pretty accurate (down to a few doors down), then I would try again 5 minutes later in the same spot and I would get somewhere a few kms away. So what I...

how to get desired Accuracy from core location in simulator?

i want to check the desired accuracy in simulator but i never get it within didupdatetolocation method.I know that in simulator delegate method is called only once.Does someone knows how to get desired accuracy in simulator.Here is my code to get desired accuracy. // Delegate method from the CLLocationManagerDelegate protocol. - (void)l...

CLLocationManager Simulator to simulate car moves ?

I'm looking since quite a long time something like a CLLocationManager simulator that would enable me to simulate GPS positions (CLLocation instances that could be retrieved through the CLLocationManager standard delegate mechanism) along a predefined route for instance (with a KML or GPX file as input, or whatever, but KML would be ni...

Simulating location updates on the iPhone Simulator

Hi, I want to allow users to set the GPS information on the iPhone Simulator via GUI. But I'm not sure how to archieve this - it seems that this tool called iSimulate does this somehow by installing an own SDK. But I can't figure out how they "override" / "hack" the simulator by that. Thanks! ...

Obtain user location from a MKMapView

Is it possible to use the MKMapView's own location manager to return the users current location to pass into a webservice? I have mapView.showsUserLocation=YES; and this does return a valid blue dot at my location, but in the simulator, its Cupertino - which is fine, but when i look at mapView.userLocation.coordinate.latitude, its equa...

How to get Apples buggy "Locations" example to work?

Unfortunately, Apple did not test it's tutorial at all. The "Locations" demo is really buggy and the edit Button does not even exist. I have no typo. First I didn't do copy & paste, and after that, I also attempted to just copy&paste their stuff. A lot of relevant code is completely missing. They simply do this in view did load, without...

iPhone: mapView.showUserLocation. VS locationUpdate function

Hi, I have a question. I'm developing on an app that is location-based, I have a mapView set to show the user location (mapView.showUserLocation); I also have a locationUpdate function to retrive lat/long of current position: (void)locationUpdate:(CLLocation *)location{} After I call the function stopUpdatingLocation to stop the upd...

Getting the calling object for didUpdateToLocation

Here's my situation: I have an app with 3 tabs. Tab 1 is a MKMapView. 2 is a navigation controller, with a table view, and 3 is going to be a table view with UI search bar or something different to the first two. So, for my mapview, on viewDidLoad i want it to get the users current location, go off to a webservice and then drop some pi...

How to calculate distance using accelerometer using iphone sdk?

What is the best way to calculate the distance between two points/Or we can say while we walk calculate distance traveled using accelerometer? My main question is that i'm working on an application in which i need to count distance using two locations but sometimes the core locations fails to update location so at that time how do i calc...

iPhone reverse geocoding: give all possible streets/suburbs??

I know Core Location isnt always accurate on the iPhone. Is there a way to use the location (lat/long) along with the accuracy to then grab all of the possible suburbs/streets in that area? So instead of using the reverse geocoding and having it guess the 'best possible suburb/street, is there a way to make it give an array (or in some ...

CoreLocation for OS X using iFrame Google Maps can't select "Map, Satellite, Terrain" as default

I have been modifying the code here: WhereIsMyMac to try and get a better understanding of CoreLocation for OS X. Unfortunately, I haven't been able to figure out how to modify the template HTML file to force a "Maps" view - my frame defaults to "Satellite View" Here is the relevant line: src="http://maps.google.com/maps?ie=UTF8&am...

How do i get name of a location in iPhone SDK

Hi, Is it possible to get the names of the location using core location. What actually i need is that. when my app starts i need to display the name of the place where i am currently in. Any idea.? please Help. Thanks in advance, Shibin ...

Core Data and Core Location

I have a Core Data database with latitude and longitude properties. Is there a way to use Core Location's getDistanceFrom: method to find the five nearest locations to a CLLocation obtained from the GPS? Do I have to load all the objects using Core Data and parse through them, using getDistanceFrom: on each one or is there an easier way?...

Is there a callback to use to tell when the user's location is available

I'm after a callback or protocol that will notify me when the user's location is available. So that when a user's location is found I can zoom into where they are. What can I use to do this? I was thinking there waas something in CoreLocation that could do it, but I can't find how to do it. [Update] I've implemented <CLLocationManager...

iPhone Compass: Adjust Heading to get Correct Reading in Landscape

Does anyone know how to adjust the iPhone's compass reading to adjust if you use it in landscape mode? The heading is always taken from the top of the device, but a true reading should be available if recalculations are made with the accelerometer data. ...

How to handle errors of CLLocationManager?

Well, I know technically how to intercept an error, but what should I do in any case CLLocationManager or Core Location doesn't work? What are your strategies, what do you show to the user? ...

Reverse geocode without using MKReverseGeocoder

Hi guys, I'm trying to detect current user address using MKReverseGeocoder passing coordinates obtained via CLLocation class. Reading MKReverseGeocoder Class Reference I noticed that The Google terms of service require that the reverse geocoding service be used in conjunction with a Google map; take this into account when designing y...

How to find the current location of iphone and update it.

I am new to iphone development.I am creating a map application. I have created tool bar with a button below the mapview.When i click the button it should display a alert view showing the current location and asking to update. on clicking OK in alert view should open my map with the current location and CANCEL to close the alert view.Th...