Contents

HKWorkoutRouteBuilder

A builder object that incrementally constructs a workout route.

Declaration

class HKWorkoutRouteBuilder

Overview

To create a workout route, use seriesBuilder(for:) to instantiate a HKWorkoutRouteBuilder, and provide it with location data throughout the workout. After the workout ends, call the builder’s finishRoute(with:metadata:completion:) method to construct the route. Instantiating a HKWorkoutRouteBuilder directly is discouraged. For detailed instructions, see Creating a workout route.

Topics

Creating the builder

Building the route

See Also

Route data