Inherits from NSObject
Declared in QBLGeoDataFilter.h

Tasks

  •   createdAt

    Time of created instance of geodata.

    property
  •   userID

    User id.

    property
  •   userIDs

    User ids.

    property
  •   userName

    Substring. Search for API Users full_name and login fields.

    property
  •   minCreatedAt

    Min value of created_at.

    property
  •   maxCreatedAt

    Max value of created_at.

    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.

    property
  •   sortBy

    Kind of sort. Posible values presented in QBGeoDataSortByKind enum.

    property
  •   lastOnly

    The result will only include the last time data.

    property
  •   status

    The result will only include instances that have a non-empty ‘status’ field.

    property
  •   currentPosition

    The current position of the user.

    property
  • – asParameters

    Converts instance to dictionary of values.

Properties

createdAt

@property (nonatomic, strong, nullable) 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, assign) CLLocationCoordinate2D currentPosition
Discussion

The current position of the user.

Note: 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, assign) 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, nullable) 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, nullable) 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, assign) 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, assign) 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, assign) 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, copy, nullable) NSArray<NSString*> *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, copy, nullable) 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