Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

cdinca

macrumors 6502
Original poster
Jun 13, 2007
365
0
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
 
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.
 
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.
 
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.

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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.