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

DennisBlah

macrumors 6502
Original poster
Dec 5, 2013
485
2
The Netherlands
Hi all,

I'm trying to work something out here:
I am tracking user's location and I want to put in 'breaktime' after like... 5km

I keep track of last location from locationupdates
I take the distance from the last one of the update and the last of my array

Now I already put in the 'distance-limit' to give notification to take a break, from 4500 meters.

Automatically it should detect a 'stop' of movement and if it's at least 30 seconds I want to put the marker on the mapview.

But.. the user may not / can't stop everywhere due traffic or anything. Which might mean that the user is standing in a traffic jam or infront of a traffic light...
So I don't want false positives either, or at least... minimize it

How can I get this to work?
I do have a timer running every second..
 
Last edited:
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.