Alright.. little confused Speed limit signs? Every 50 meters a driver passes one? Or you're trying to pull down speed limit data to let the user know what speed they are supposed to be traveling (and thus if they are going over the speed limit)?
Like others said.. is there some way you can pull down ALL the speed limit data ahead of time for say, a 10 mile radius. Using location information, gps coordinates, etc, every time the driver gets within a few miles of the radius edge, pull down more info.. hopefully based on the direction they are headed and centered on them. As far as I have seen, speed limits don't change that often that if you can figure out some sort of radius algorithm to update and assume a good 30 seconds or so for that data, you should be fine. On Mon, Jan 17, 2011 at 6:32 AM, cellurl <gpscru...@gmail.com> wrote: > The data is speed limit signs. I think its time I switch to a local > copy like Jonathan said. I noticed there are tons of sort routines, so > I probably don't need sqlite... > Thanks guys! > cellurl > > > On Jan 15, 2:47 am, Jonathan Foley <jonefo...@gmail.com> wrote: > > Why don't you pull down data ahead of time? You haven't told us > > exactly what you are querying. > > Maps, logging the route?? In any case, you can either pre-cache some > > of the data you'll need or cache > > the data you'll be sending and send it less frequently in either > > direction. The only reason I can > > understand polling so frequently is if you are pulling data that is > > completely unpredictable. That is > > you have some huge table or tables and really have no idea what the > > next query is. Maybe > > you need to think a little more about how to predict what you'll need > > from either end. > > As folks have mentioned, latency and bandwidth are highly > > unpredictable and fluctuate in time > > and space. Your design will have to heave enough headroom to account > > for that while still > > delivering whatever minimum user experience your app needs.. > > > > Jonathan > > > > On Jan 15, 12:14 am, Frank Weiss <fewe...@gmail.com> wrote: > > > > > > > > > > > > > > > > > I would suggest being more flexible about *when* the queries are made. > You > > > seem to have fixated on every 50 meters. Why not every two minutes? Or > every > > > n minutes, depending upon the current network latency? Or even a > heuristic > > > scheduler based on multiple factors? I would also suggest considering > > > decoupling the activity from the provider. Perhaps by using a separate > > > service that pushes new queries to the activity. Avoid creating your > own > > > threading framework. > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en