Warning

This feature is available in the Full MapKit SDK version

MMKSearchResultItem

class MMKSearchResultItem : 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() -> [MMKSearchSubtitleItem]
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 geoObjectMMKGeoObject { get }
Wrapped GeoObject itself

var pointMMKPoint { get }
Point from the GeoObject

Instance methods

hasDetails()

func hasDetails() -> Bool

Does the GeoObject contain details for subtitle


details()

func details() -> [MMKSearchSubtitleItem]

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: MMKGeoObject { get }

Wrapped GeoObject itself


point

var point: MMKPoint { get }

Point from the GeoObject