TTSearchCircle
@interface TTSearchCircle : TTSearchShape
A circle shape to be used for search query
-
Creates and returns a TTSearchCircle object using specified coordinate and radius.
Declaration
Objective-C
+ (TTSearchCircle *_Nonnull)circleWithCenter:(CLLocationCoordinate2D)coordinate radius:(NSUInteger)radius;
Swift
/*not inherited*/ init(center coordinate: CLLocationCoordinate2D, radius: UInt)
Parameters
coordinate
The center point of the circle, specified as a latitude and longitude value.
radius
The radius of the circle in meters.
Return Value
TTSearchCircle
-
The center point of the circle, specified as a latitude and longitude value.
Declaration
Objective-C
@property (readonly, assign, nonatomic) CLLocationCoordinate2D coordinate;
Swift
var coordinate: CLLocationCoordinate2D { get }
-
The radius of the circle in meters.
Declaration
Objective-C
@property (readonly, assign, nonatomic) CLLocationDistance radius;
Swift
var radius: CLLocationDistance { get }