Documentation ¶
Index ¶
- type GeoBorder
- type LocationData
- func GeoBoxQuery(client *mongo.Client, lowerLeft, upperRight []float64) ([]LocationData, error)
- func GeoCenterQuery(client *mongo.Client, center []float64, radius int) ([]LocationData, error)
- func GeoGeometryQuery(client *mongo.Client, geometry bson.M) ([]LocationData, error)
- func GeoIntersectQuery(client *mongo.Client, polygon [][]float64) ([]LocationData, error)
- func GeoMaxDistanceQuery(client *mongo.Client, point [][]float64, maxDistance int) ([]LocationData, error)
- func GeoMinDistanceQuery(client *mongo.Client, point [][]float64, minDistance int) ([]LocationData, error)
- func GeoNearQuery(client *mongo.Client, polygon [][]float64, maxDistance int) ([]LocationData, error)
- func GeoNearSphereQuery(client *mongo.Client, polygon [][]float64, radius int) ([]LocationData, error)
- func GeoWithinQuery(client *mongo.Client, polygon [][]float64) ([]LocationData, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LocationData ¶
type LocationData struct { ID string `bson:"_id"` Province string `bson:"province"` District string `bson:"district"` SubDistrict string `bson:"sub_district"` Village string `bson:"village"` Border GeoBorder `bson:"border"` }
func GeoBoxQuery ¶
func GeoBoxQuery(client *mongo.Client, lowerLeft, upperRight []float64) ([]LocationData, error)
func GeoCenterQuery ¶
func GeoGeometryQuery ¶
func GeoIntersectQuery ¶
func GeoIntersectQuery(client *mongo.Client, polygon [][]float64) ([]LocationData, error)
func GeoMaxDistanceQuery ¶
func GeoMinDistanceQuery ¶
func GeoNearQuery ¶
func GeoNearSphereQuery ¶
func GeoWithinQuery ¶
func GeoWithinQuery(client *mongo.Client, polygon [][]float64) ([]LocationData, error)
Click to show internal directories.
Click to hide internal directories.