Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MadAppGang/gocluster
/ functions
Functions
37 in github.com/MadAppGang/gocluster
⨍
Functions
37
◇
Types & classes
9
↓ 8 callers
Function
importData
(filename string)
cluster_test.go:250
↓ 7 callers
Method
ClusterPoints
ClusterPoint get points and create multilevel clustered indexes All points should implement GeoPoint interface they are not copied, so you could not w
cluster.go:83
↓ 7 callers
Function
NewCluster
Create new Cluster instance with default parameters: MinZoom = 0 MaxZoom = 16 PointSize = 40 TileSize = 512 (GMaps and OSM default) NodeSize is size o
cluster.go:68
↓ 5 callers
Function
MercatorProjection
longitude/latitude to spherical mercator in [0..1] range
cluster.go:341
↓ 3 callers
Method
GetClusters
Returns the array of clusters for zoom level. The northWest and southEast points are boundary points of square, that should be returned. nothWest is l
cluster.go:122
↓ 3 callers
Method
GetCoordinates
()
cluster.go:22
↓ 3 callers
Method
GetTile
return points for Tile with coordinates x and y and for zoom z return objects with pixel coordinates
cluster.go:162
↓ 3 callers
Function
ReverseMercatorProjection
(x, y float64)
cluster.go:349
↓ 3 callers
Method
limitZoom
(zoom int)
cluster.go:313
↓ 3 callers
Method
pointIDToLatLonPoint
(ids []int, points []kdbush.Point)
cluster.go:244
↓ 3 callers
Method
pointIDToMerkatorPoint
calc Point mercator projection regarding tile
cluster.go:231
↓ 2 callers
Function
clustersToPoints
(points []*ClusterPoint)
cluster.go:369
↓ 2 callers
Function
floatEquals
(a, b float64)
cluster_test.go:292
↓ 2 callers
Method
getTile
(x,y,z int, latlon bool)
cluster.go:172
↓ 2 callers
Function
round
(val float64)
cluster.go:375
↓ 1 callers
Method
AllClusters
AllClusters returns all cluster points, array of ClusterPoint, for zoom on the map. X coordinate of returned object is Longitude and. Y coordinate of
cluster.go:143
↓ 1 callers
Method
clusterize
clusterize points for zoom level
cluster.go:260
↓ 1 callers
Function
digitsCount
count number of digits, for example 123356 will return 6
cluster.go:359
↓ 1 callers
Function
importData
type MercatorPoint struct { Cluster cluster.ClusterPoint MercatorX int MercatorY int } func mercator(p cluster.ClusterPoint) MercatorPoint { mp :
play/main.go:42
↓ 1 callers
Function
importGeoJSONResultFeature
(filename string)
cluster_test.go:277
↓ 1 callers
Function
importPoints
(filename string)
cluster_test.go:265
↓ 1 callers
Function
translateGeoPointsToClusterPoints
End of Cluster implementation private stuff translate geopoints to ClusterPoints witrh projection coordinates
cluster.go:326
Method
Coordinates
()
cluster.go:36
Function
ExampleCluster_GetClusters
()
cluster_test.go:196
Function
ExampleCluster_GetTile
()
cluster_test.go:175
Method
GetCoordinates
()
cluster_test.go:220
Method
GetCoordinates
()
cluster_test.go:243
Method
GetCoordinates
()
play/main.go:21
Method
GetCoordinates
()
play/main.go:59
Method
GetTileWithLatLon
return points for Tile with coordinates x and y and for zoom z return objects with LatLon coordinates
cluster.go:168
Function
TestCluster_AllClusters
(t *testing.T)
cluster_test.go:128
Function
TestCluster_GetClusters
(t *testing.T)
cluster_test.go:85
Function
TestCluster_GetTile00
(t *testing.T)
cluster_test.go:28
Function
TestCluster_GetTileDefault
validate original result from JS library
cluster_test.go:54
Function
TestNewCluster
(t *testing.T)
cluster_test.go:12
Function
Test_MercatorProjection
(t *testing.T)
cluster_test.go:157
Function
main
()
play/main.go:66