Class RelatedPlacesObjectMetadata

com.yandex.mapkit.search

java.lang.Object ⇽ RelatedPlacesObjectMetadata

public class RelatedPlacesObjectMetadata

Snippet data to get related places info.

Constructors

RelatedPlacesObjectMetadata()

Use constructor with parameters in your code.

RelatedPlacesObjectMetadata(@NonNull List< PlaceInfo > similarPlaces, @NonNull List< PlaceInfo > companiesNearby)

Methods

synchronized List< PlaceInfo > getCompaniesNearby()

List of nearby companies.

String getNativeName()
synchronized List< PlaceInfo > getSimilarPlaces()

List of similar places.

void serialize(Archive archive)

Constructor Detail

RelatedPlacesObjectMetadata

public RelatedPlacesObjectMetadata ()

Use constructor with parameters in your code.

This one is for serialization only!

RelatedPlacesObjectMetadata

public RelatedPlacesObjectMetadata (@NonNull List< PlaceInfo > similarPlaces, @NonNull List< PlaceInfo > companiesNearby)

Method Detail

getCompaniesNearby

public synchronized List< PlaceInfo > getCompaniesNearby ()

List of nearby companies.

getNativeName

public static String getNativeName ()

getSimilarPlaces

public synchronized List< PlaceInfo > getSimilarPlaces ()

List of similar places.

serialize

public void serialize (Archive archive)