private float sumNonConsumedWithinCatchingRange(final List<VoiceHint> inputs, final int offset) {
        int offsetLocal = offset;
        double distance = 0.;
        float angle = 0.f;
        while (offsetLocal >= 0 && distance < INTERNAL_CATCHING_RANGE) {
            final VoiceHint input = inputs.get(offsetLocal--);
            if (input.turnAngleConsumed) {
                break;
            }
            angle += input.goodWay.turnangle;
            distance += input.goodWay.linkdist;
            input.turnAngleConsumed = true;
        }
        return angle;
    }
Processor for Voice Hints

@author ab
main/src/main/java/cgeo/geocaching/brouter/core/VoiceHintProcessor.java