Interface SearchResultItem

com.yandex.mapkit.search.search_layer

public interface SearchResultItem

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

Methods

List< SubtitleItem > 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 isClosed()

Is the organization closed now.

boolean isCollection()

Is it a collection GeoObject.

boolean isOffline()

Is the GeoObject found in offline search.

Method Detail

details

public List< SubtitleItem > 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.

isClosed

public boolean isClosed ()

Is the organization closed now.

isCollection

public boolean isCollection ()

Is it a collection GeoObject.

isOffline

public boolean isOffline ()

Is the GeoObject found in offline search.