← All posts

Product update4 min read

Stairs on the route, said before the first step

Build 258 on TestFlight announces stairs and single steps before a route reaches them, gives every spoken direction a vibration, and fixes a turn that went unsaid.

Once a route is running, ICIDO speaks walking directions as you go: "Go forward five meters, then turn left." Until build 258, those directions never mentioned stairs. A route that climbed or dropped was described as if the floor were flat, so a sentence like that one could run straight into a staircase at meter three.

Build 258 changes that, and adds a vibration to every spoken direction. It went to TestFlight as part of the work on version 1.4. The version on the App Store is 1.3.

Why the directions could not see height

The part of the app that writes the sentences worked in plan view only. The route it read had no height, so a flight of stairs on the way was simply not in the sentence.

The router did know about height. It already searched over stacked surfaces: the floor under an open staircase, and the tread above it. But it threw away which of those it stood on when it rebuilt the path. The fix keeps that record. Every existing caller of the router gets the identical path, and the height profile now travels with it.

The obvious shortcut is to look heights up afterwards, by finding the nearest surface under each point of the route. That does not work, and the test suite proves it: on an open staircase over a floor, "nearest surface" tracing finds zero level changes.

Measured, not guessed

What is and is not announced was checked against 13 fixture scenes, all passing. They include flights up and down, an open staircase, walking under one, a single riser, stairs that scanned as a smooth slope, and treads mislabelled as tables. They also include cases where nothing may be said: flat floor, ramps at 1 in 12 and 1 in 5, a bump that comes back down, and a lip spread over half a metre. Every announced distance is checked against the stair geometry, not against the heights the detector read.

The rules were also run on a real 1,218 m² scan. A 35 m sloping drive, which the map had split into separate levels, is correctly not called stairs. On level ground, 33 single steps had been announced. 28 of them were vertical edges and 5 were spread out. A step must now have a riser, so all 5 are gone and all 28 remain.

One number moved because of a specific failure. Landing depth is 0.9 m. At 0.45 m, an open staircase joined from the side was split into "2 steps" and "12 steps".

What is said, and when

Each level change is announced twice. The first time is as the next thing on the current leg: "Go forward 4 meters, then stairs going up, about 12 steps." The second is within 1.5 m of the first step, and it is marked urgent, so it never waits out the pause the app leaves between sentences. A single step between two levels is announced the same way, as "a step up" or "a step down".

The step count is approximate. The Help text gives the reason: the scan measures the height of a flight far better than the edge of each tread.

One case used to lose the stairs entirely. At the top of a flight where the route also bears left, "Bear left." won and the stairs went unsaid. They are now one sentence.

A turn that went missing

The same work found a bug in the gate that spaces out speech. It recorded an instruction as seen before checking the four-second gap between announcements, so an instruction held back by the gap was never retried.

Instructions whose wording never changes, such as "Turn left." and "Turn around.", are exactly the ones said at a corner. So a corner reached within four seconds of the last announcement dropped the turn in silence. The gate now retries a held instruction. Replayed in the test suite, the old gate never says "Turn left." in that sequence, and the new one says it at 4.5 seconds. Jitter at a corner still produces one sentence, not a stream.

Directions you can feel

Every spoken direction now comes with a vibration, fired at the same moment as the sentence:

  • One light tap: heading the right way.
  • Two taps: left. Strong to turn, soft to bear.
  • Three taps: right. Strong to turn, soft to bear.
  • One long buzz: turn around.
  • A rising rumble: going up. Long for stairs, short for a single step.
  • A falling rumble: going down, the same way.
  • The "done" vibration iOS uses everywhere: arrived.

Sides are counted in taps and changes of level are rumbles, so the two kinds of cue are hard to confuse. The Help text says what the vibrations are for: a busy place can drown out the voice. They still fire while speech is suppressed during a conversation. Because each one fires with its sentence, it inherits the same protection against jitter near corners. The vibrations are on by default, and Settings → Directions → Vibrate with directions turns them off.

What is deliberately not said

Doors and lifts are not announced. On the same real scan, 202,050 triangles were labelled door, in 29 clusters. The largest cluster was 13 m wide and 3.7 m tall, and only 5 were door-shaped. Saying "through a door" from labels like that would teach people to ignore the directions.

The stair announcements follow the same rule. They were tested against scenes where they must be said and scenes where they must stay quiet, and a claim about the floor is only spoken when the measured geometry supports it.

Related reading