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 addTagKeys: Set<String>

Keys that are added to the element when selecting this feature. This can differ from tagKeys, as those are just the minimum keys necessary to match this feature. If the key is not already present, the value should be set to "yes".

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

tags that are added to the element 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 alpha 2 or 3-letter 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 alpha 2 or 3-letter 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 removeTagKeys: Set<String>

Keys that are removed from the element when deselecting this feature, regardless of which value was set.

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

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

Link copied to clipboard
abstract val tagKeys: Set<String>

Keys an element must have to match this feature, regardless of what is its value. E.g. the "disused amenity" feature matches with all elements with tags that have the disused:amenity key set to any value.

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

tags an element must have to match this feature

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

Additional search terms or keywords to find this feature