How to show locations around me?

Discussion in 'iPhone/iPad Programming' started by rubyruby, May 7, 2009.

  1. macrumors member

    Joined:
    Jan 28, 2009
    Messages:
    33
    #1
    Hello,

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

    Regards,

    rubyruby
     
  2. Moderator

    robbieduncan

    Staff Member

    Joined:
    Jul 24, 2002
    Messages:
    24,480
    Location:
    London
    #2
  3. macrumors member

    Joined:
    Jan 28, 2009
    Messages:
    33
    #3
    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...
     
  4. Moderator

    robbieduncan

    Staff Member

    Joined:
    Jul 24, 2002
    Messages:
    24,480
    Location:
    London
    #4
    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...
     
  5. macrumors member

    Joined:
    Jan 28, 2009
    Messages:
    33
    #5
    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. :)
     
  6. Moderator

    robbieduncan

    Staff Member

    Joined:
    Jul 24, 2002
    Messages:
    24,480
    Location:
    London
    #6
    Not that I am aware of in the SDK.
     

Share This Page