AI-generated Key Takeaways
-
PointOfInterest is a class that contains information about a PointOfInterest that was clicked on and implements Parcelable.
-
It has fields for the latitude and longitude (latLng), name, and place ID (placeId) of the POI.
-
A PointOfInterest object can be constructed using its latitude and longitude, place ID, and name.
-
The
writeToParcelmethod is used to write the PointOfInterest data to a Parcel.
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
Public Method Summary
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. |

