Class 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 intensity
      WeightedLatLng​(com.google.android.gms.maps.model.LatLng latLng, double intensity)
      Constructor
    • 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 wrapper
        intensity - 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