Важно

This feature is available in the Full MapKit SDK version

YMKSearchMetadata

class YMKSearchMetadata : NSObject, YMKBaseMetadata

Additional info for search response;

Summary

Class methods

 init(found: Int,
 displayType: YMKSearchDisplayType,
 boundingBox: YMKBoundingBox?,
       sort: YMKSearchSort?,
    toponym: YMKGeoObject?,
 toponymResultMetadata: YMKSearchToponymResultMetadata?,
 businessResultMetadata: YMKSearchBusinessResultMetadata?,
      reqid: String,
    context: String,
 requestText: String,
 correctedRequestText: String?,
 request requestBoundingBox: YMKBoundingBox?)

Properties

var found: Int { get }
Approximate number of found objects

var displayTypeYMKSearchDisplayType { get }
Display type

var boundingBoxYMKBoundingBox? { get }
Bounding box of the response as a whole

var sortYMKSearchSort? { get }
Server-chosen sorting

var toponymYMKGeoObject? { get }
Geocoder response to the toponym part of the query

var toponymResultMetadataYMKSearchToponymResultMetadata? { get }
Additional info for the response from toponym search

var businessResultMetadataYMKSearchBusinessResultMetadata? { get }
Additional info for the response from organization search

var reqid: String { get }
Server-generated request ID

var context: String { get }
Server-generated request context

var requestText: String { get }
Initial request text

var correctedRequestText: String? { get }
Initial request text with correction of spelling mistakes

var requestBoundingBoxYMKBoundingBox? { get }
Initial request bounding box

Class methods

init(found:displayType:boundingBox:sort:toponym:toponymResultMetadata:businessResultMetadata:reqid:context:requestText:correctedRequestText:request:)

 init(found: Int,
 displayType: YMKSearchDisplayType,
 boundingBox: YMKBoundingBox?,
       sort: YMKSearchSort?,
    toponym: YMKGeoObject?,
 toponymResultMetadata: YMKSearchToponymResultMetadata?,
 businessResultMetadata: YMKSearchBusinessResultMetadata?,
      reqid: String,
    context: String,
 requestText: String,
 correctedRequestText: String?,
 request requestBoundingBox: YMKBoundingBox?)


Properties

found

var found: Int { get }

Approximate number of found objects.


displayType

var displayType: YMKSearchDisplayType { get }

Display type.


boundingBox

var boundingBox: YMKBoundingBox? { get }

Bounding box of the response as a whole.

Optional field, can be nil.


sort

var sort: YMKSearchSort? { get }

Server-chosen sorting.

Optional field, can be nil.


toponym

var toponym: YMKGeoObject? { get }

Geocoder response to the toponym part of the query.

Optional field, can be nil.


toponymResultMetadata

var toponymResultMetadata: YMKSearchToponymResultMetadata? { get }

Additional info for the response from toponym search.

Optional field, can be nil.


businessResultMetadata

var businessResultMetadata: YMKSearchBusinessResultMetadata? { get }

Additional info for the response from organization search.

Optional field, can be nil.


reqid

var reqid: String { get }

Server-generated request ID.


context

var context: String { get }

Server-generated request context.


requestText

var requestText: String { get }

Initial request text.


correctedRequestText

var correctedRequestText: String? { get }

Initial request text with correction of spelling mistakes.

Optional field, can be nil.


requestBoundingBox

var requestBoundingBox: YMKBoundingBox? { get }

Initial request bounding box.

Optional field, can be nil.


Предыдущая
Следующая