Class SearchForPositionResult

    • Method Detail

      • place

        public final Place place()

        Details about the search result, such as its address and position.

        Returns:
        Details about the search result, such as its address and position.
      • distance

        public final Double distance()

        The distance in meters of a great-circle arc between the query position and the result.

        A great-circle arc is the shortest path on a sphere, in this case the Earth. This returns the shortest distance between two locations.

        Returns:
        The distance in meters of a great-circle arc between the query position and the result.

        A great-circle arc is the shortest path on a sphere, in this case the Earth. This returns the shortest distance between two locations.

      • placeId

        public final String placeId()

        The unique identifier of the place. You can use this with the GetPlace operation to find the place again later.

        For SearchPlaceIndexForPosition operations, the PlaceId is returned only by place indexes that use HERE or Grab as a data provider.

        Returns:
        The unique identifier of the place. You can use this with the GetPlace operation to find the place again later.

        For SearchPlaceIndexForPosition operations, the PlaceId is returned only by place indexes that use HERE or Grab as a data provider.

      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)