Last active
March 6, 2016 00:29
-
-
Save ccabanero/4176f62a6ed8b37d5ff4 to your computer and use it in GitHub Desktop.
Class that Implements ClusterItem
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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