PointOfInterest

  • PointOfInterest provides details about a clicked point of interest on a map, containing its latitude/longitude coordinates, name, and place ID.

  • This class includes a constructor to create a PointOfInterest instance with the necessary information (LatLng, placeId, and name).

  • The latLng, name, and placeId fields store the geographical location, name, and unique identifier of the point of interest, respectively.

  • It inherits functionalities from Parcelable for efficient data transfer between components, and from Object for basic object operations.

public final class PointOfInterest extends Object
implements Parcelable

Contains information about a PointOfInterest that was clicked on.

Inherited Constant Summary

Field Summary

public final LatLng latLng The LatLng of the POI.
public final String name The name of the POI.
public final String placeId The placeId of the POI.

Public Constructor Summary

PointOfInterest(LatLng latLng, String placeId, String name)
Constructs a PointOfInterest.

Inherited Method Summary

Fields

public final LatLng latLng

The LatLng of the POI.

public final String name

The name of the POI.

public final String placeId

The placeId of the POI.

Public Constructors

public PointOfInterest (LatLng latLng, String placeId, String name)

Constructs a PointOfInterest.

Parameters
latLng the LatLng of the POI.
placeId the placeId of the POI.
name the name of the POI.