Interface SearchForPositionResult.Builder

    • Method Detail

      • distance

        SearchForPositionResult.Builder distance​(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.

        Parameters:
        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:
        Returns a reference to this object so that method calls can be chained together.
      • place

        SearchForPositionResult.Builder place​(Place place)

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

        Parameters:
        place - Details about the search result, such as its address and position.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • placeId

        SearchForPositionResult.Builder placeId​(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.

        Parameters:
        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:
        Returns a reference to this object so that method calls can be chained together.