gq

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Box

func Box(mongoconn *mongo.Database, long1 float64, lat1 float64, long2 float64, lat2 float64) (namalokasi string)

func Center

func Center(mongoconn *mongo.Database, long float64, lat float64, radius float64) (namalokasi string)

geoWithin

{
	<location field>: {
	   $geoWithin: { $center: [ [ <x>, <y> ] , <radius> ] }
	}
 }

func CenterSphere

func CenterSphere(mongoconn *mongo.Database, long float64, lat float64, radius float64) (namalokasi string)

func GeoIntersects

func GeoIntersects(mongoconn *mongo.Database, long float64, lat float64) (namalokasi string)

func GeoWithin

func GeoWithin(mongoconn *mongo.Database, coordinates [][][]float64) (namalokasi string)

func Geometry

func Geometry(mongoconn *mongo.Database, long float64, lat float64) (namalokasi string)
$geometry: {
	type: "<GeoJSON object type>",
	coordinates: [ <coordinates> ]
 }

func MaxDistance

func MaxDistance(mongoconn *mongo.Database, long float64, lat float64, maxdistance float64) (namalokasi string)

func MinDistance

func MinDistance(mongoconn *mongo.Database, long float64, lat float64, mindistance float64) (namalokasi string)

func Near

func Near(mongoconn *mongo.Database, long float64, lat float64) (namalokasi string)

func NearSpehere

func NearSpehere(mongoconn *mongo.Database, long float64, lat float64) (namalokasi string)

func Polygon

func Polygon(mongoconn *mongo.Database, long1 float64, lat1 float64, long2 float64, lat2 float64, long3 float64, lat3 float64) (namalokasi string)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL