Class PickedPlace

  • java.lang.Object
    • com.here.sdk.core.PickedPlace

  • public final class PickedPlace
    extends java.lang.Object

    Carries the result of picking a Carto POI (point of interest) object.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      GeoCoordinates coordinates
      The geographic coordinates of the POI.
      java.lang.String name
      The name of the POI localized in the currently selected map language.
      java.lang.String placeCategoryId
      The place category ID of the POI.
    • Constructor Summary

      Constructors 
      Constructor Description
      PickedPlace​(java.lang.String name, GeoCoordinates coordinates, java.lang.String placeCategoryId)
      Creates a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      int hashCode()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • name

        @NonNull
        public java.lang.String name

        The name of the POI localized in the currently selected map language.

      • coordinates

        @NonNull
        public GeoCoordinates coordinates

        The geographic coordinates of the POI.

      • placeCategoryId

        @NonNull
        public java.lang.String placeCategoryId

        The place category ID of the POI. This is the same String value as PlaceCategory.id that can be obtained from the SearchEngine and the OfflineSearchEngine. Note that not all editions include the OfflineSearchEngine.

    • Constructor Detail

      • PickedPlace

        public PickedPlace​(@NonNull
                           java.lang.String name,
                           @NonNull
                           GeoCoordinates coordinates,
                           @NonNull
                           java.lang.String placeCategoryId)

        Creates a new instance.

        Parameters:
        name -

        The name of the POI localized in the currently selected map language.

        coordinates -

        The geographic coordinates of the POI.

        placeCategoryId -

        The place category ID of the POI. This is the same String value as PlaceCategory.id that can be obtained from the SearchEngine and the OfflineSearchEngine. Note that not all editions include the OfflineSearchEngine.

    • Method Detail

      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object