ReverseGeocodeQuery

public class ReverseGeocodeQuery : Encodable, DadataQueryProtocol

ReverseGeocodeQuery represents an serializable object used to perform reverse geocode queries.

  • Undocumented

    Declaration

    Swift

    public var resultsCount: Int?
  • Undocumented

    Declaration

    Swift

    public var language: QueryResultLanguage?
  • Undocumented

    Declaration

    Swift

    public var searchRadius: Int?
  • New instance of ReverseGeocodeQuery.

    Throws

    May throw if parsing of latitude and longitude out of query fails.

    Declaration

    Swift

    public convenience init(query: String, delimeter: Character = ",") throws

    Parameters

    query

    Query should contain latitude and longitude of the point of interest.

    delimeter

    Single character delimeter to separate latitude and longitude.

  • New instance of ReverseGeocodeQuery.

    Declaration

    Swift

    public required init(latitude: Double, longitude: Double)

    Parameters

    latitude

    Latitude of the point of interest.

    longitude

    Longitude of the point of interest.