Package-level declarations

Types

Link copied to clipboard
data class BaseFeature(val id: String, val tags: Map<String, String>, val geometry: List<GeometryType>, val icon: String?, val imageURL: String?, val names: List<String>, val terms: List<String>, val includeCountryCodes: List<String>, val excludeCountryCodes: List<String>, val isSearchable: Boolean, val matchScore: Float, val isSuggestion: Boolean, val addTags: Map<String, String>, val removeTags: Map<String, String>) : Feature

Data class associated with the Feature interface. Represents a non-localized feature.

Link copied to clipboard
interface Feature

Subset of a feature as defined in the iD editor https://github.com/ideditor/schema-builder#preset-schema with only the fields helpful for the dictionary

Link copied to clipboard
Link copied to clipboard
class FileSystemAccess(fileSystem: FileSystem, basePath: String) : ResourceAccessAdapter
Link copied to clipboard
Link copied to clipboard
data class LocalizedFeature(p: BaseFeature, val language: String?, val names: List<String>, val terms: List<String>) : Feature

Data class associated with the Feature interface. Represents a localized feature.

Link copied to clipboard

Functions

Link copied to clipboard
fun FeatureDictionary.Companion.create(assetManager: AssetManager, presetsBasePath: String, brandPresetsBasePath: String? = null): FeatureDictionary

Create a new FeatureDictionary which gets its data from the given directory in the app's asset folder. Optionally, the path to the brand presets can be specified.