LocationSpecification

public struct LocationSpecification

This is how we specify the location for searches.

  • coords: A lat/long coordinate (in degrees) of the location
  • radiusInKm: A distance within which the search will be performed.
  • autoRadiusThreshold: An optional field with a minimum number of results.
  • A lat/long coordinate (in degrees) of the location.

    Declaration

    Swift

    public var coords: CLLocationCoordinate2D
  • A distance (in Kilometers) within which the search will be performed.

    Declaration

    Swift

    public var radiusInKm: CLLocationDistance
  • An optional field with a minimum number of results.

    Declaration

    Swift

    public var autoRadiusThreshold: Int?
  • Default Initializer.

    Declaration

    Swift

    public init(coords inCoords: CLLocationCoordinate2D, radiusInKm inRadiusInKm: CLLocationDistance, autoRadiusThreshold inAutoRadiusThreshold: Int?)

    Parameters

    coords

    A lat/long coordinate (in degrees) of the location.

    radiusInKm

    A distance (in Kilometers) within which the search will be performed.

    autoRadiusThreshold

    An optional field with a minimum number of results.