MCPcopy Index your code
hub / github.com/dgraph-io/dgraph / addGeoPointToCluster

Function addGeoPointToCluster

query/common_test.go:142–147  ·  view source on GitHub ↗
(uid uint64, pred string, point []float64)

Source from the content-addressed store, hash-verified

140}
141
142func addGeoPointToCluster(uid uint64, pred string, point []float64) error {
143 triple := fmt.Sprintf(
144 `<%d> <%s> "{'type':'Point', 'coordinates':[%v, %v]}"^^<geo:geojson> .`,
145 uid, pred, point[0], point[1])
146 return addTriplesToCluster(triple)
147}
148
149func addGeoPolygonToCluster(uid uint64, pred string, polygon [][][]float64) error {
150 coordinates := "["

Callers 1

populateClusterFunction · 0.85

Calls 1

addTriplesToClusterFunction · 0.70

Tested by

no test coverage detected