getById

fun getById(id: String, languages: List<String?>? = null, country: String? = null): Feature?

Returns the feature associated with the given id or null if it does not exist

Parameters

id

feature id

languages

Optional. List of IETF language tags of languages in which the result should be localized.

Several languages can be specified to each fall back to if a translation does not exist in the language before that. For example, specify listOf("ca-ES","es", null) if results in Catalan are preferred, Spanish is also fine or otherwise use unlocalized results (null).

Defaults to listOf(<default system language>, null), i.e. unlocalized results are included by default. (Brand features are usually not localized.)

country

Optional. ISO 3166-1 alpha-2 country code (e.g. "US") or the ISO 3166-2 (e.g. "US-NY") of the country/state the element is in. If null, will only return matches that are not county-specific.