Skip to content

Instantly share code, notes, and snippets.

@ccabanero
Last active March 6, 2016 00:29
Show Gist options
  • Select an option

  • Save ccabanero/4176f62a6ed8b37d5ff4 to your computer and use it in GitHub Desktop.

Select an option

Save ccabanero/4176f62a6ed8b37d5ff4 to your computer and use it in GitHub Desktop.
Class that Implements ClusterItem
public class PointOfInterest implements ClusterItem {
private LatLng mLatLng;
/**
* For instantiating a new PointOfInterest
* @param latitude The latitude for the point of interest
* @param longitude The longitude for the point of interest
*/
public PointOfInterest(double latitude, double longitude) {
mLatLng = new LatLng(latitude, longitude);
}
/**
* Returns the coordinate for the point of interest
* @return LatLng representing the location of the point of interest
*/
@Override
public LatLng getPosition() {
return mLatLng;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment