Class: DataPoint

H.clustering.DataPoint

new H.clustering.DataPoint (lat, lng, opt_weight, opt_data)

This class represents the input data structure for data points to be clustered.

Name Type Description
lat H.geo.Latitude

The latitude coordinate of the position of the data point

lng H.geo.Longitude

The longitude coordinate of the position of the data point

opt_weight number optional

The weight of the data point as a positive number, the default is 1

opt_data * optional

Optional data, which will be associated with the given DataPoint

Implements

Members

alt H.geo.Altitude | undefined

This property holds the altitude of the data point.

data *

This property holds the data associated with the given data point.

lat H.geo.Latitude non-null

This property holds the latitude of the data point.

lng H.geo.Longitude non-null

This property holds the longitude of the data point.

wt number

This property holds the (clustering) weight of the data point.