Важно
This feature is available in the Full MapKit SDK version
Package com.yandex.mapkit.search
Class SuggestItem
java.lang.Object
↳ com.yandex.mapkit.search.SuggestItem
class SuggestItem implements Serializable
A single suggested item.
Nested Class Summary
Modifier and Type |
Interface |
Description |
|
Suggest item type. |
|
|
Action to be performed when user selected suggest item. |
Summary
Constructors
Signature and Description |
SuggestItem() |
SuggestItem(@NonNull Type type, |
Methods
Type and modifiers |
Method and Description |
|
getType() |
|
getTitle() |
|
getSubtitle() |
|
getTags() |
|
getSearchText() |
|
getDisplayText() |
|
getUri() |
|
getDistance() |
|
getIsPersonal() |
|
getAction() |
|
getLogId() |
|
getIsOffline() |
|
getIsWordItem() |
|
getProperties() |
|
getCenter() |
void |
serialize(com.yandex.runtime.bindings.Archive archive) |
|
Constuctors
SuggestItem
SuggestItem() |
Use constructor with parameters in your code.
This one is for serialization only!
SuggestItem
SuggestItem(@NonNull Type type, |
Methods
getType
@NonNull |
Suggested object type.
getTitle
@NonNull |
Short object name.
getSubtitle
@Nullable |
If type is TOPONYM returns reversed toponym hierarchy, if type is BUSINESS returns business address.
Optional field, can be null.
getTags
@NonNull |
Additional free-form data for suggest item.
If type is TOPONYM, returns toponym kind (house/street/locality/...). If type is BUSINESS, returns category class (drugstores/restaurants/...).
getSearchText
@NonNull |
Text to search for.
getDisplayText
@Nullable |
Text to display if searchText is too technical to display.
Optional field, can be null.
getUri
@Nullable |
Element uri, if applicable.
Optional field, can be null.
getDistance
@Nullable |
Optional distance localized value.
Optional field, can be null.
getIsPersonal
boolean getIsPersonal() |
If the suggested item respects personalization.
getAction
@NonNull |
Action to perform on click/tap/enter.
getLogId
@Nullable |
Id for request logging.
Optional field, can be null.
getIsOffline
boolean getIsOffline() |
Item is from offline search.
getIsWordItem
boolean getIsWordItem() |
Item is a word suggest item.
getProperties
@NonNull |
Additional item properties.
getCenter
@Nullable |
Position of object.
Optional field, can be null.
serialize
@Override |
getNativeName
java.lang.String getNativeName() |