I usually wait until I get something with a good degree of accuracy (< 150m) then fire off any searches. it takes a few seconds (sometimes quite a few) so you will need to show the user something while they wait.
The accuracy is passed into the UpdatedLocation delegate method. On Mon, Dec 19, 2011 at 12:56, Mittchel debaass <[email protected]> wrote: > Hello everyone, > > Currently I'm building an application which shows nearby advertisements > based on the current location. When the user starts the application for the > first time I want them to see a top 10 of nearby advertisements. > > I'm having a slight problem with fetching the location on time. My problem > is that the current location isn't fetched yet before the view is loaded. > Of course there is the delegate UpdatedLocation, but this one gets fired > multiple times. I guess it fires multiple times, because it wants to fetch > the most accurate location? > > So my question is; What can I do to 'wait' until the location is found and > then start searching for advertisements? > > Thanks in advance! > > Regards, > Mittchel > > _______________________________________________ > MonoTouch mailing list > [email protected] > http://lists.ximian.com/mailman/listinfo/monotouch > -- Nic Wise t. +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise b. http://www.fastchicken.co.nz/ Nearest Bus: find when the next bus is coming to your stop. http://goo.gl/Vcz1p mobileAgent (for FreeAgent): get your accounts in your pocket. http://goo.gl/IuBU Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2 _______________________________________________ MonoTouch mailing list [email protected] http://lists.ximian.com/mailman/listinfo/monotouch
