Warning

This feature is available in the Full MapKit SDK version

YMKSearchResultItem

class YMKSearchResultItem : NSObject

Wrapper of the GeoObject in response, which makes it easy to get the certain fields from GeoObject

Summary

Instance methods

func hasDetails() -> Bool
Does the GeoObject contain details for subtitle

func details() -> [YMKSearchSubtitleItem]
Details for the subtitle

func isCollection() -> Bool
Is it a collection GeoObject

func isClosed() -> Bool
Is the organization closed now

func isOffline() -> Bool
Is the GeoObject found in offline search

Properties

var id: String { get }
Id (constructed inside)

var name: String { get }
Name (from GeoObject)

var categoryClass: String? { get }
CategoryClass (optional, first if there are several)

Optional property, can be nil

var geoObjectYMKGeoObject { get }
Wrapped GeoObject itself

var pointYMKPoint { get }
Point from the GeoObject

Instance methods

hasDetails()

func hasDetails() -> Bool

Does the GeoObject contain details for subtitle


details()

func details() -> [YMKSearchSubtitleItem]

Details for the subtitle


isCollection()

func isCollection() -> Bool

Is it a collection GeoObject


isClosed()

func isClosed() -> Bool

Is the organization closed now


isOffline()

func isOffline() -> Bool

Is the GeoObject found in offline search


Properties

id

var id: String { get }

Id (constructed inside)


name

var name: String { get }

Name (from GeoObject)


categoryClass

var categoryClass: String? { get }

CategoryClass (optional, first if there are several)

Optional property, can be nil.


geoObject

var geoObject: YMKGeoObject { get }

Wrapped GeoObject itself


point

var point: YMKPoint { get }

Point from the GeoObject