Interface SearchResultItem

com.yandex.mapkit.search_layer

public interface SearchResultItem

Wrapper of the GeoObject in response, which makes it easy to get the certain fields from GeoObject.

Methods

List< SubtitlePart > details()

Details for the subtitle.

String getCategoryClass()

CategoryClass (optional, first if there are several)

GeoObject getGeoObject()

Wrapped GeoObject itself.

String getId()

Id (constructed inside)

String getName()

Name (from GeoObject)

Point getPoint()

Point from the GeoObject.

boolean hasDetails()

Does the GeoObject contain details for subtitle.

boolean isAdvertisement()

Is it an advertisement GeoObject.

boolean isClosed()

Is the organization closed now.

boolean isOffline()

Is the GeoObject found in offline search.

boolean isValid()

Tells if this SearchResultItem is valid or no.

List< SubtitlePart > details()

Details for the subtitle.

String getCategoryClass()

CategoryClass (optional, first if there are several)

GeoObject getGeoObject()

Wrapped GeoObject itself.

String getId()

Id (constructed inside)

String getName()

Name (from GeoObject)

Point getPoint()

Point from the GeoObject.

boolean hasDetails()

Does the GeoObject contain details for subtitle.

boolean isAdvertisement()

Is it an advertisement GeoObject.

boolean isClosed()

Is the organization closed now.

boolean isOffline()

Is the GeoObject found in offline search.

boolean isValid()

Tells if this SearchResultItem is valid or no.

Method Detail

details

public List< SubtitlePart > details ()

Details for the subtitle.

getCategoryClass

public String getCategoryClass ()

CategoryClass (optional, first if there are several)

Optional property, can be null.

getGeoObject

public GeoObject getGeoObject ()

Wrapped GeoObject itself.

getId

public String getId ()

Id (constructed inside)

getName

public String getName ()

Name (from GeoObject)

getPoint

public Point getPoint ()

Point from the GeoObject.

hasDetails

public boolean hasDetails ()

Does the GeoObject contain details for subtitle.

isAdvertisement

public boolean isAdvertisement ()

Is it an advertisement GeoObject.

isClosed

public boolean isClosed ()

Is the organization closed now.

isOffline

public boolean isOffline ()

Is the GeoObject found in offline search.

isValid

public boolean isValid ()

Tells if this SearchResultItem is valid or no.

Any other method (except for this one) called on an invalid SearchResultItem will throw java.lang.RuntimeException. An instance becomes invalid only on UI thread, and only when its implementation depends on objects already destroyed by now. Please refer to general docs about the interface for details on its invalidation.