PDA

View Full Version : How to show locations around me?




rubyruby
May 7, 2009, 08:53 AM
Hello,

how do I show locations, which are around (e.g. 200 feet) around me?

Regards,

rubyruby



robbieduncan
May 7, 2009, 09:34 AM
Read the Core Location (http://developer.apple.com/iphone/library/navigation/Frameworks/CoreServices/CoreLocation/index.html) documentation.

rubyruby
May 7, 2009, 09:49 AM
Hi Robbie,

I've done this already, but the only thing I found was: getDistanceFrom (in CLLocation).

With this method, I would have to check every single point of my 1000 locations, wouldn't I?

There has to be another way to achieve this...

robbieduncan
May 7, 2009, 09:54 AM
Hi Robbie,

I've done this already, but the only thing I found was: getDistanceFrom (in CLLocation).

With this method, I would have to check every single point of my 1000 locations, wouldn't I?

There has to be another way to achieve this...

What better way do you suggest? Either you have to check them or some library code (I'm not aware of) has to. A look should be able to check 1000 locations in no time at all...

rubyruby
May 7, 2009, 09:59 AM
The best thing would be an algorithm, which gets down from a higher level (e.g. all locations, which begin with 50 degrees North) to a lower level. I'm wondering, if this is already built in somewhere. :)

robbieduncan
May 7, 2009, 10:01 AM
The best thing would be an algorithm, which gets down from a higher level (e.g. all locations, which begin with 50 degrees North) to a lower level. I'm wondering, if this is already built in somewhere. :)

Not that I am aware of in the SDK.