iPhone 3G/3GS compass APIs

Discussion in 'iOS Programming' started by arunarora, Jun 26, 2009.

  1. arunarora macrumors newbie

    Joined:
    May 26, 2009
    #1
    Hi,

    I need to integrate compass in my application to show the direction in which user is moving. I need to use GPS maps to point the current location and compass to show directions.

    Are APIs available for these functionalities?
    Compass and GPS

    I really appreciate any help, suggestions.

    Thanks,
    Arun
     
  2. jnic macrumors 6502a

    Joined:
    Oct 24, 2008
    Location:
    Cambridge
    #2
    Yes, both are in the Core Location framework.
     
  3. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #3
    See CoreLocation. Really the documentation is easy to read and searchable...
     
  4. arunarora thread starter macrumors newbie

    Joined:
    May 26, 2009
    #4
    Hi,
    Thanks a lot for replying.
    Yes I saw the APIs and I guess CLHeading obj is used for getting directions and CLLocation for getting MAP location.
    I am very new to iPhone programming so having a bit difficulty in understanding.

    Nyways, Can you also help me out with the GUI part as well. Can I get the Compass in my app to show the direction and some sort of Map on which I can show the current location of the user?

    Thanks a lot!
    Arun
     
  5. MacDonaldsd macrumors 65816

    MacDonaldsd

    Joined:
    Sep 8, 2005
    Location:
    London , UK
    #5
    The APIs just give you the raw data Im afraid. Your have to write the compass UI your self.
     
  6. arunarora thread starter macrumors newbie

    Joined:
    May 26, 2009
    #6
    I can write the UI for the app, however can anyone suggest me what is the speed of GPS in iPhone i.e. how fast the phone can start getting the GPS feeds. Also, how accurate the GPS feeds are?

    Thanks a lot!
    Arun
     
  7. Saladinos macrumors 68000

    Saladinos

    Joined:
    Feb 26, 2008
    #7
    You should probably read a couple of guides and look at some sample code.

    It updates pretty regularly.
     
  8. seaslugchange macrumors newbie

    Joined:
    Jul 2, 2009
    #8
    A related question

    Excuse my ignorance of posting etiquette: Does any one have a sense of the frequency responsiveness of electronic compass, from what I gather there is a 'Hall Element' I assume that the circuit would have a very low frequency (~single Hz) low-pass filter around the hall element. Is this true? How might you test the frequency responsiveness of the compass?
     

Share This Page