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 |
func details() -> [YMKSearchSubtitleItem] |
func isCollection() -> Bool |
func isClosed() -> Bool |
func isOffline() -> Bool |
Properties
var id: String { get } |
var name: String { get } |
var categoryClass: String? { get } Optional property, can be nil |
var geoObject: YMKGeoObject { get } |
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