My Diary App Logged Shops I Never Entered. Here's How It Learned "Visited" vs. "Walked Past"

I'm not an engineer. I build apps with a team of AI agents, and this post was written with AI help.
This is about a problem my diary app had: it was recording places I had only walked past, and how we taught it the difference.
The app is TekuTeku Diary (teku teku is the Japanese sound of walking along, step by step). It gathers your daily steps, the places you went, and a short note about your day into a single diary. I built it with AI, and it went from idea to App Store in about 42.5 hours.
Shops I never went into
TekuTeku Diary uses your iPhone's location to record the places you visited that day, automatically.
The day before launch, I put a test build on my iPhone and carried it around all day.
That night, I opened the day's record and tilted my head.
There were shops listed under "places I visited" that I had never gone into.
I had only walked along the street in front of them. But the app had decided I'd been there.
A diary of places you went, full of places you didn't go. You can't trust a diary like that.
How do you tell "was there" from "walked past"?
People just know the difference between being somewhere and passing by. An app doesn't "just know" anything.
So I compared my own records from that day. Three places I had only walked past. One place I had actually stayed. For each, how fast was I moving around that spot?
- The three places I walked past: 2.6 to 4.1 km/h (about 1.6 to 2.5 mph)
- The place I actually stayed: 0.6 km/h (about 0.4 mph)
They split cleanly.
When you're walking past, even slowly, you keep moving forward. When you're actually somewhere, you barely move.
We set the line at 2 km/h (about 1.2 mph).
The "just passing by" rules
In TekuTeku Diary, a stay is treated as "just passing by" and hidden if:
- It's shorter than 3 minutes, anywhere.
- Or it's shorter than 20 minutes and any of these is true:
- You kept moving at 2 km/h (1.2 mph) or faster
- You went more than 300 m (about 1,000 feet) away during it
- You were walking the whole time (60 steps or more per minute)
Places you've named yourself, like home, skip the second rule: a stay there is kept as long as it's 3 minutes or more.
With the rules in place, I looked at that day's record again. The shops I'd only walked past were gone.

The day screen: places, with the time spent at each (sample data)
Hide, don't delete
There was one thing I was careful about.
Stays judged as "just passing by" aren't deleted. They're hidden. Open the day screen and you can still see them.
Rules get things wrong sometimes. A shop you really did pop into and left quickly. A park where you walked around the whole time. If the app deleted those, you could never get them back.
If they're only hidden, you can look later and think, "Oh right, I stopped there." It's a diary app, so I wanted to keep as much of the record as possible.
You only find this by carrying it
This problem never showed up in testing at a desk. I only noticed it after carrying the phone for a whole day and looking at my own record that night.
It was the same with my earlier apps. Some things you don't find out until you actually use the thing.
One day of carrying an app around teaches you far more than testing it at a desk.
Do you keep a record of your days in any app?