ReverseGeocoderOptions

data class ReverseGeocoderOptions(val position: GeoPoint, val heading: Angle? = null, val radius: Distance = DEFAULT_RADIUS, val roadUses: Set<RoadUse> = emptySet(), val areaTypes: Set<AreaType> = emptySet(), val locale: Locale = Locale.getDefault(), val geopoliticalView: GeopoliticalView? = null, val preferClosestAccurateAddress: Boolean = false, val fetchGeometry: Boolean = false)

Defines the parameters of a Reverse Geocoding query.

Important: This is a Public Preview API. It may be changed or removed at any time.

Constructors

Link copied to clipboard
fun ReverseGeocoderOptions(position: GeoPoint, heading: Angle? = null, radius: Distance = DEFAULT_RADIUS, roadUses: Set<RoadUse> = emptySet(), areaTypes: Set<AreaType> = emptySet(), locale: Locale = Locale.getDefault(), geopoliticalView: GeopoliticalView? = null, preferClosestAccurateAddress: Boolean = false, fetchGeometry: Boolean = false)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

This parameter specifies the level of filtering performed on geographies. Providing this parameter narrows the search to specified geography entity types. The resulting response will contain the geography ID as well as the matched entity type. This ID is a token that can be used to get the geometry of that geography. The following parameters are ignored when entityType is set: heading, roadUses

Link copied to clipboard
val fetchGeometry: Boolean = false

Enables the return of geometry shapes for the provided reverse geocoding results. (where available) The geometry fetching feature isn't implemented yet (this option was added for the future extension).

Link copied to clipboard

Defines what kind of geopolitical view should be used.

Link copied to clipboard
val heading: Angle? = null

The directional heading of the vehicle in degrees when it is traveling along a segment of roadway. Zero is North, 90 is East and so on.

Link copied to clipboard

The language in which reverse geocoding result should be returned. When it is not provided, it uses the system default language.

Link copied to clipboard

Coordinate that will be translated into a human-understandable street address, street element, or geography.

Link copied to clipboard

Gives the preference to the closest accurate address over the address with the closest navigable coordinates.

Link copied to clipboard

The maximum distance from the specified position that the reverseGeocoder will deliver results for. Defaults to DEFAULT_RADIUS

Link copied to clipboard

Restricts reverse geocoding to certain types of road uses.