ReverseGeocodingOptions

public struct ReverseGeocodingOptions

Reverse geocoding request options.

  • Decides how results are sorted.

    See more

    Declaration

    Swift

    public enum Mode : Int
  • Point to reverse geocode.

    Declaration

    Swift

    public var point: CLLocationCoordinate2D
  • Decides how results are sorted. Distance by default. Options are distance, which causes the closest feature to always be returned first, and score, which allows high-prominence features to be sorted higher than nearer, lower-prominence features.

    Declaration

    Swift

    public var mode: Mode?
  • Specify the maximum number of results to return. The default is 1 and the maximum supported is 5. Increasing the limit allows returning multiple features of the same type, but only for one type (for example, multiple address results). Consequently, setting limit to a higher-than-default value requires specifying exactly one types parameter.

    Declaration

    Swift

    public var limit: Int?
  • Setting limit to a higher-than-default value requires specifying exactly one types parameter.

    Declaration

    Swift

    public var types: [QueryType]?
  • Undocumented

    Declaration

    Swift

    public init(point: CLLocationCoordinate2D, mode: Mode? = nil, limit: Int? = nil, types: [QueryType]? = nil)