Inherits from NSObject
Declared in QBLGeoDataFilter.h

Tasks

  •   createdAt

    Time of created instance of geodata. When specified, it will return only instances created at ‘created_at’ time. Type: Unix timestamp. Value example: 1326471371.

    property
  •   userID

    User id. When specified, it will return only the instances created by QBUUser with id = userID.

    property
  •   userIDs

    User ids. When specified, it will return only the instances created by QBUUsers with ids = userIDs.

    property
  •   userName

    Substring. Search for API Users full_name and login fields. When specified, it will return only the instances created by API Users who have in login or full_name passed substring.

    property
  •   minCreatedAt

    Min value of created_at. If this parameter is specified, must return instances with created_at greater than or equal to a given value. Type: Unix timestamp. Value example: 1326471371.

    property
  •   maxCreatedAt

    Max value of created_at. If this parameter is specified, must return instances with created_at less than or equal to a given value. Type: Unix timestamp. Value example: 1326471371.

    property
  •   geoRect

    If this parameter is correct, must return instances with coordinates that fall within the rectangle and its border. You need two points to build a rectangle (first point – South West, second – North East).

    property
  •   radius

    With ‘current_position’ describes GeoCircle - “circle” on the earth’s surface, given the coordinates ‘current_position’ and this distance in km (‘radius’).

    property
  •   sortAsc

    Indicates that the sorting should be by ascending. If this parameter is not set - the sort is by descending. Value example: 1 (all other values ​​as well as the presence of this key parameter without ‘sort_by’ ​​cause an error validation).

    property
  •   sortBy

    Kind of sort. Posible values presented in QBGeoDataSortByKind enum.

    property
  •   lastOnly

    The result will only include the last time data. For example, if the query is filtered by userID parameter and flag last_only is set, we get an instance - the most recent by created_at for this user, its last known position. Value example: 1 (all other values ​​cause an error validation).

    property
  •   status

    The result will only include instances that have a non-empty ‘status’ field. Value example: 1 (all other values ​​cause an error validation).

    property
  •   currentPosition

    The current position of the user. Used only in conjunction with the keys ‘radius’ and ‘distance’. If this option is specified, and it does not set any of these parameters - error validation. Use ‘%3B’ instead ‘;’. Value example: 1%3B2.

    property
  • – asParameters

    Converts instance to dictionary of values

Properties

createdAt

@property (nonatomic, strong) NSDate *createdAt
Discussion

Time of created instance of geodata. When specified, it will return only instances created at ‘created_at’ time. Type: Unix timestamp. Value example: 1326471371.

Declared In

QBLGeoDataFilter.h

currentPosition

@property (nonatomic) CLLocationCoordinate2D currentPosition
Discussion

The current position of the user. Used only in conjunction with the keys ‘radius’ and ‘distance’. If this option is specified, and it does not set any of these parameters - error validation. Use ‘%3B’ instead ‘;’. Value example: 1%3B2.

Declared In

QBLGeoDataFilter.h

geoRect

@property (nonatomic) struct QBLGeoDataRect geoRect
Discussion

If this parameter is correct, must return instances with coordinates that fall within the rectangle and its border. You need two points to build a rectangle (first point – South West, second – North East).

Declared In

QBLGeoDataFilter.h

lastOnly

@property (nonatomic) BOOL lastOnly
Discussion

The result will only include the last time data. For example, if the query is filtered by userID parameter and flag last_only is set, we get an instance - the most recent by created_at for this user, its last known position. Value example: 1 (all other values ​​cause an error validation).

Declared In

QBLGeoDataFilter.h

maxCreatedAt

@property (nonatomic, strong) NSDate *maxCreatedAt
Discussion

Max value of created_at. If this parameter is specified, must return instances with created_at less than or equal to a given value. Type: Unix timestamp. Value example: 1326471371.

Declared In

QBLGeoDataFilter.h

minCreatedAt

@property (nonatomic, strong) NSDate *minCreatedAt
Discussion

Min value of created_at. If this parameter is specified, must return instances with created_at greater than or equal to a given value. Type: Unix timestamp. Value example: 1326471371.

Declared In

QBLGeoDataFilter.h

radius

@property (nonatomic) CGFloat radius
Discussion

With ‘current_position’ describes GeoCircle - “circle” on the earth’s surface, given the coordinates ‘current_position’ and this distance in km (‘radius’).

Declared In

QBLGeoDataFilter.h

sortAsc

@property (nonatomic) BOOL sortAsc
Discussion

Indicates that the sorting should be by ascending. If this parameter is not set - the sort is by descending. Value example: 1 (all other values ​​as well as the presence of this key parameter without ‘sort_by’ ​​cause an error validation).

Declared In

QBLGeoDataFilter.h

sortBy

@property (nonatomic) enum QBLGeoDataSortByKind sortBy
Discussion

Kind of sort. Posible values presented in QBGeoDataSortByKind enum.

Declared In

QBLGeoDataFilter.h

status

@property (nonatomic) BOOL status
Discussion

The result will only include instances that have a non-empty ‘status’ field. Value example: 1 (all other values ​​cause an error validation).

Declared In

QBLGeoDataFilter.h

userID

@property (nonatomic) NSUInteger userID
Discussion

User id. When specified, it will return only the instances created by QBUUser with id = userID.

Declared In

QBLGeoDataFilter.h

userIDs

@property (nonatomic, strong) NSArray *userIDs
Discussion

User ids. When specified, it will return only the instances created by QBUUsers with ids = userIDs.

Declared In

QBLGeoDataFilter.h

userName

@property (nonatomic, strong) NSString *userName
Discussion

Substring. Search for API Users full_name and login fields. When specified, it will return only the instances created by API Users who have in login or full_name passed substring.

Declared In

QBLGeoDataFilter.h

Instance Methods

asParameters

- (NSDictionary *)asParameters
Discussion

Converts instance to dictionary of values

Declared In

QBLGeoDataFilter.h