Location information to web page

Discussion in 'iPhone' started by cdinca, Aug 25, 2009.

  1. cdinca macrumors 6502

    Joined:
    Jun 13, 2007
    #1
    I have a little web page that pulls location info from the iPhone.

    Problem is, first time it gets the data, it is off by quite a bit. After refreshing, it gets it right. It is not like it is returning an error that I can check against, it is succeeding, just wrong. Are others having the same problem? Is there a workaround?

    Thanks
     
  2. cdinca thread starter macrumors 6502

    Joined:
    Jun 13, 2007
    #2
    Is there an area that this might be better posted? Has anyone come across forums where this topic has been discussed? I'm not asking anyone here to fix my problem, just a point in the right direction.
     
  3. netslacker macrumors 6502

    Joined:
    Jan 21, 2008
    #3
    there is an iPhone programming forum on MacRumors. Probably should be posted there.

    However, I believe your problem is that upon initial initialization of location services you get it's best coordinates, which are likely just cellphone triangulation. Once it's had time to lock GPS then you'll get much better accuracy. You may want to make the call, then timeout your js, then make the call again. Just a suggestion.
     
  4. cdinca thread starter macrumors 6502

    Joined:
    Jun 13, 2007
    #4
    thank you for the suggestion! That is what I'll probably do...set a timeOut to execute the map plotting a few seconds after the first initialization. Guess I'll have to put in a loading graphic to keep them entertained :)

    I wish I could find some more documentation. I know the function has an "enableHighAcurracy" setting that I will play with first.
     

Share This Page