Documentation ¶
Index ¶
- func Box(mongoconn *mongo.Database, long1 float64, lat1 float64, long2 float64, ...) (namalokasi string)
- func Center(mongoconn *mongo.Database, long float64, lat float64, radius float64) (namalokasi string)
- func CenterSphere(mongoconn *mongo.Database, long float64, lat float64, radius float64) (namalokasi string)
- func GeoBoxQuery(client *mongo.Database, lowerLeft, upperRight []float64) ([]models.LocationData, error)
- func GeoCenterQuery(client *mongo.Database, center []float64, radius int) ([]models.LocationData, error)
- func GeoGeometryQuery(client *mongo.Database, geometry bson.M) ([]models.LocationData, error)
- func GeoIntersectQuery(client *mongo.Database, polygon [][][]float64) ([]models.LocationData, error)
- func GeoIntersects(mongoconn *mongo.Database, long float64, lat float64) (namalokasi string)
- func GeoMaxDistanceQuery(client *mongo.Database, point []float64, maxDistance int) ([]models.LocationData, error)
- func GeoMinDistanceQuery(client *mongo.Database, point []float64, minDistance int) ([]models.LocationData, error)
- func GeoNearQuery(client *mongo.Database, polygon [][][]float64, maxDistance int) ([]models.LocationData, error)
- func GeoNearSphereQuery(client *mongo.Database, polygon []float64, radius int) ([]models.LocationData, error)
- func GeoWithin(mongoconn *mongo.Database, coordinates [][][]float64) (namalokasi string)
- func GeoWithinQuery(client *mongo.Database, polygon [][][]float64) ([]models.LocationData, error)
- func Geometry(mongoconn *mongo.Database, coordinates [][][]float64) (namalokasi string)
- func MaxDistance(mongoconn *mongo.Database, long float64, lat float64, maxdistance float64) (namalokasi string)
- func MinDistance(mongoconn *mongo.Database, long float64, lat float64, mindistance float64) (namalokasi string)
- func Near(mongoconn *mongo.Database, long float64, lat float64) (namalokasi string)
- func NearSpehere(mongoconn *mongo.Database, long float64, lat float64) (namalokasi string)
- func Polygon(mongoconn *mongo.Database, coordinates [][][]float64) (namalokasi string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 GeoBoxQuery ¶ added in v1.0.4
func GeoCenterQuery ¶ added in v1.0.4
func GeoGeometryQuery ¶ added in v1.0.4
func GeoIntersectQuery ¶ added in v1.0.4
func GeoIntersects ¶
func GeoMaxDistanceQuery ¶ added in v1.0.4
func GeoMinDistanceQuery ¶ added in v1.0.4
func GeoNearQuery ¶ added in v1.0.4
func GeoNearSphereQuery ¶ added in v1.0.4
func GeoWithinQuery ¶ added in v1.0.4
func MaxDistance ¶
func MinDistance ¶
func NearSpehere ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.