Feature

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

Inheritors

Properties

Link copied to clipboard
abstract val addTags: Map<String, String>

tags that are added when selecting this feature. This can differ from tags, as those are just the minimum tags necessary to match this feature

Link copied to clipboard
abstract val canonicalNames: List<String>

primary names + aliases in all lowercase with stripped diacritics

Link copied to clipboard
abstract val canonicalTerms: List<String>

Additional search terms or keywords in all lowercase with stripped diacritics

Link copied to clipboard

A list of ISO 3166-1 2 or 3 letter country codes country codes in which this feature is not available. Empty if it available everywhere.

Link copied to clipboard
abstract val geometry: List<GeometryType>

a list of possible geometry types for this feature

Link copied to clipboard
abstract val icon: String?

icon representing the feature

Link copied to clipboard
abstract val id: String

unique identifier for this feature

Link copied to clipboard
abstract val imageURL: String?

url to image representing the feature. Usually used for brands features

Link copied to clipboard

A list of ISO 3166-1 2 or 3 letter country codes country codes in which this feature is available. Empty if it is available everywhere.

Link copied to clipboard
abstract val isSearchable: Boolean

Whether this feature should be searchable. E.g. deprecated or generic features are not searchable.

Link copied to clipboard
abstract val isSuggestion: Boolean

Whether this feature is a brand feature i.e. from the NSI

Link copied to clipboard
abstract val language: String?

ISO 639 language code of this feature. null if it isn't localized.

Link copied to clipboard
abstract val matchScore: Float

A number that ranks this preset against others that match the feature.

Link copied to clipboard
open val name: String

primary name

Link copied to clipboard
abstract val names: List<String>

primary name + aliases

Link copied to clipboard
abstract val preserveTags: List<Regex>

Regexes for keys of tags which should not be overwritten by addTags when selecting a feature.

Link copied to clipboard
abstract val removeTags: Map<String, String>

tags that are removed from the feature when deselecting this feature.

Link copied to clipboard
abstract val tags: Map<String, String>

tags a feature must have to match this feature

Link copied to clipboard
abstract val terms: List<String>

Additional search terms or keywords to find this feature