Warning

This feature is available in the Full MapKit SDK version

YMKSearchSort

@interface YMKSearchSort : NSObject

Describes response sort.

Summary

Class methods

+ (nonnull YMKSearchSort *)sortWithType:( YMKSearchSortType)type
                                 origin:(nullable NSNumber *)origin;

Properties

@property (nonatomic, readonly) YMKSearchSortType type;
Sorting type

@property (nonatomic, readonly, nullable) NSNumber *origin;
Sort origin (if results are ordered by distance)

Class methods

sortWithType:origin:

+ (nonnull YMKSearchSort *)sortWithType:( YMKSearchSortType)type
                                 origin:(nullable NSNumber *)origin;


Properties

type

@property (nonatomic, readonly) YMKSearchSortType type;

Sorting type.


origin

@property (nonatomic, readonly, nullable) NSNumber *origin;

Sort origin (if results are ordered by distance).

Optional field, can be nil.