addOfflineRegion

abstract fun addOfflineRegion(path: String, mapsFileNames: List<String>, boundaryFileName: String)

Register offline region data for search index.

Parameters

path

path to the directory with data on disk, for example, "/data/user/0/com.mapbox.search.sample/files/offline_data/germany".

mapsFileNames

list of map file names (e.g. listOf("germany.map"), or listOf("us-west.map", "us-south.map", ...)).

boundaryFileName

boundary file name (e.g. germany.boundary, or us-places.boundary).

Throws

if error occurred. See exception message for more details.