OMCLocationPlaceQuery Class Reference
Inherits from | OMCLocationDeviceContainerQuery : OMCLocationObjectQuery : NSObject |
---|---|
Declared in | OMCLocationPlaceQuery.h |
parentID
The query’s results will be filtered to be the direct children of the place with the specified ID.
@property (nonatomic, nullable) NSNumber *parentID
Declared In
OMCLocationPlaceQuery.h
– setParent:
The query’s results will be filtered to be the direct children of the specified place.
- (void)setParent:(nullable OMCLocationPlace *)parent
Parameters
parent |
The parent of the place to be searched for. |
---|
Declared In
OMCLocationPlaceQuery.h
geoPoint
The query will search for the place closest to this geo point.
@property (nonatomic, nullable) OMCLocationGeoPoint *geoPoint
Declared In
OMCLocationPlaceQuery.h
– setGeoPointLatitude:longitude:
Sets the query to search for the place closest to the specified geo point.
- (void)setGeoPointLatitude:(NSNumber *)latitude longitude:(NSNumber *)longitude
Parameters
latitude |
The geo point’s latitude. |
---|---|
longitude |
The geo point’s longitude. |
Declared In
OMCLocationPlaceQuery.h
geoFence
The query will search for the places in this geo fence.
@property (nonatomic, nullable) OMCLocationGeoCircle *geoFence
Declared In
OMCLocationPlaceQuery.h
– setGeoFenceLatitude:longitude:radius:
Sets the query to search for the places in the specified geo fence.
- (void)setGeoFenceLatitude:(NSNumber *)latitude longitude:(NSNumber *)longitude radius:(NSNumber *)radius
Parameters
latitude |
The latitude of the geo fence’s center point. |
---|---|
longitude |
The longitude of the geo fence’s center point. |
radius |
The radius of the geo fence’s circle, in meters. |
Declared In
OMCLocationPlaceQuery.h
– executeWithCompletionHandler:
Asynchronously executes the query, invoking the specified completion handler block when finished.
- (void)executeWithCompletionHandler:(void ( ^ ) ( OMCLocationObjectQueryResult<OMCLocationPlaceQuery*,OMCLocationPlace*> *_Nullable result , NSError *_Nullable error ))completionHandler
Parameters
completionHandler |
The block to be invoked when the query has finished executing. The completion block will be invoked on the main dispatch queue. |
---|
Declared In
OMCLocationPlaceQuery.h