Package com.google.maps.android.heatmaps
Class WeightedLatLng
- java.lang.Object
-
- com.google.maps.android.heatmaps.WeightedLatLng
-
- All Implemented Interfaces:
PointQuadTree.Item
public class WeightedLatLng extends java.lang.Object implements PointQuadTree.Item
A wrapper class that can be used in a PointQuadTree Created from a LatLng and optional intensity: point coordinates of the LatLng and the intensity value can be accessed from it later.
-
-
Field Summary
Fields Modifier and Type Field Description static double
DEFAULT_INTENSITY
Default intensity to use when intensity not specified
-
Constructor Summary
Constructors Constructor Description WeightedLatLng(com.google.android.gms.maps.model.LatLng latLng)
Constructor that uses default value for intensityWeightedLatLng(com.google.android.gms.maps.model.LatLng latLng, double intensity)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getIntensity()
Point
getPoint()
-
-
-
Field Detail
-
DEFAULT_INTENSITY
public static final double DEFAULT_INTENSITY
Default intensity to use when intensity not specified- See Also:
- Constant Field Values
-
-
Constructor Detail
-
WeightedLatLng
public WeightedLatLng(com.google.android.gms.maps.model.LatLng latLng, double intensity)
Constructor- Parameters:
latLng
- LatLng to add to wrapperintensity
- Intensity to use: should be greater than 0 Default value is 1. This represents the "importance" or "value" of this particular point Higher intensity values map to higher colours. Intensity is additive: having two points of intensity 1 at the same location is identical to having one of intensity 2.
-
WeightedLatLng
public WeightedLatLng(com.google.android.gms.maps.model.LatLng latLng)
Constructor that uses default value for intensity- Parameters:
latLng
- LatLng to add to wrapper
-
-
Method Detail
-
getPoint
public Point getPoint()
- Specified by:
getPoint
in interfacePointQuadTree.Item
-
getIntensity
public double getIntensity()
-
-