Package-level declarations

A simple tool for the creation and management of valhalla file absolute paths. Typically, this will be used with application directories like getExternalFilesDir(). There are several dir locations depending on your use case: Android Docs - Context.

val tilesDir = appContext.getExternalFilesDir()
val tarFile = ValhallaFile(appContext, "valhalla_tiles.tar", tilesDir!!)

Typically, you'd want to sync a tar or tiles directory to the specific directory on the device configured as ValhallaFile.

Alternatively, this class includes usingAsset for asset bundled files. This can be used to load smaller tiles sets that are bundled with your APK. Assets are also used for testing in this library.

Types

Link copied to clipboard
class ValhallaFile(context: Context, fileName: String, filesDir: File = context.filesDir)

Used to provide absolute paths and common file operations for use with valhalla.

Functions

Link copied to clipboard
Link copied to clipboard