MqttRootDirectory

data class MqttRootDirectory(val entries: List<MqttRootEntry>, val neighbors: Map<String, Set<String>>, val subdivisionSegments: Map<String, Map<String, String>>)(source)

The geography a sample cannot learn on its own: named community roots, which subdivisions border which, and the code a geocoder's subdivision name maps to.

Constructors

Link copied to clipboard
constructor(entries: List<MqttRootEntry>, neighbors: Map<String, Set<String>>, subdivisionSegments: Map<String, Map<String, String>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard

ISO 3166-2 code to the codes it borders, both directions present.

Link copied to clipboard

ISO 3166-1 country to its subdivision names, lowercased, mapped to the topic segment the community uses.

Functions

Link copied to clipboard
fun entriesServing(subdivision: String?, at: LatLon?): List<MqttRootEntry>
Link copied to clipboard
fun subdivisionSegment(countryCode: String?, name: String): String

The segment for a geocoder's subdivision name: a known code, else the name itself.