MMKSearchResultItem
Warning
This feature is available in the Full MapKit SDK version
|
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 |
|
func details() -> [MMKSearchSubtitleItem] |
|
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: MMKGeoObject { get } |
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