ReverseGeocoderOptions

data class ReverseGeocoderOptions(val position: GeoPoint, @FloatRange(from = 0.0, to = 360.0) val heading: Float? = null, @IntRange(from = 1, to = 5000) val radiusInMeters: Int = DEFAULT_RADIUS_IN_METERS, val roadUses: Set<RoadUse> = emptySet(), val entityTypes: Set<EntityType> = emptySet(), val language: String = DEFAULT_LANGUAGE, val geoPoliticalView: String = "", val mapCodeTypes: Set<MapCodeType> = emptySet(), 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.

Parameters

position

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

heading

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.

radiusInMeters

The maximum distance in meters from the specified position that the reverseGeocode will deliver results for.

roadUses

Restricts reverse geocoding to certain types of road uses.

entityTypes

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

language

IETF language tag (case insensitive), for the language in which search results should be returned. When the language tag is invalid or data in a specified language is not available for a specific field, the default value is used. The default language value is NGT (Neutral Ground Truth), that means official languages for all regions in local scripts if available.

geoPoliticalView

An ISO 3166-1 alpha3 country code, that gives the context used to resolve the handling of disputed territories. If there are no geopolitical views for the provided country code then the default view is used.

mapCodeTypes

Enables the return of map codes. Can also filter the response to only show selected MapCodeTypes.

preferClosestAccurateAddress

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

fetchGeometry

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).

Constructors

Link copied to clipboard
fun ReverseGeocoderOptions(position: GeoPoint, @FloatRange(from = 0.0, to = 360.0) heading: Float? = null, @IntRange(from = 1, to = 5000) radiusInMeters: Int = DEFAULT_RADIUS_IN_METERS, roadUses: Set<RoadUse> = emptySet(), entityTypes: Set<EntityType> = emptySet(), language: String = DEFAULT_LANGUAGE, geoPoliticalView: String = "", mapCodeTypes: Set<MapCodeType> = emptySet(), preferClosestAccurateAddress: Boolean = false, fetchGeometry: Boolean = false)

Properties

Link copied to clipboard
Link copied to clipboard
val fetchGeometry: Boolean = false
Link copied to clipboard
Link copied to clipboard
val heading: Float? = null
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard