Valhalla

constructor(context: Context, config: ValhallaConfig, valhallaConfigManager: ValhallaConfigManager = ValhallaConfigManager(context), moshi: Moshi = Moshi.Builder().add(KotlinJsonAdapterFactory()).build())

Parameters

context

The Android context used for file system operations and configuration management.

config

The Valhalla configuration specifying tile locations and routing options.

valhallaConfigManager

Manages the Valhalla configuration file on the device. Defaults to a new instance.

moshi

JSON serialization adapter. Defaults to a Moshi instance with Kotlin reflection support.