Documentation ¶
Index ¶
- func GeoBoxcloud(publickey, Mongostring, dbname string, r *http.Request) string
- func GeoCentercloud(publickey, Mongostring, dbname string, r *http.Request) string
- func GeoGeometrycloud(publickey, Mongostring, dbname string, r *http.Request) string
- func GeoIntersectcloud(publickey, Mongostring, dbname string, r *http.Request) string
- func GeoMaxDistancecloud(publickey, Mongostring, dbname string, r *http.Request) string
- func GeoMinDistancecloud(publickey, Mongostring, dbname string, r *http.Request) string
- func GeoNearcloud(publickey, Mongostring, dbname string, r *http.Request) string
- func GeoNearspherecloud(publickey, Mongostring, dbname string, r *http.Request) string
- func GeoWithincloud(publickey, Mongostring, dbname string, r *http.Request) string
- type GeoBorder
- type GeoBoxReq
- type Geometryreq
- type LocationData
- func GeoBoxQuery(client *mongo.Database, lowerLeft, upperRight []float64) ([]LocationData, error)
- func GeoCenterQuery(client *mongo.Database, center []float64, radius int) ([]LocationData, error)
- func GeoGeometryQuery(client *mongo.Database, geometry bson.M) ([]LocationData, error)
- func GeoIntersectQuery(client *mongo.Database, polygon [][][]float64) ([]LocationData, error)
- func GeoMaxDistanceQuery(client *mongo.Database, point []float64, maxDistance int) ([]LocationData, error)
- func GeoMinDistanceQuery(client *mongo.Database, point []float64, minDistance int) ([]LocationData, error)
- func GeoNearQuery(client *mongo.Database, polygon [][][]float64, maxDistance int) ([]LocationData, error)
- func GeoNearSphereQuery(client *mongo.Database, polygon []float64, radius int) ([]LocationData, error)
- func GeoWithinQuery(client *mongo.Database, polygon [][][]float64) ([]LocationData, error)
- type Nearspherereq
- type RequestGeoIntersects
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GeoBoxcloud ¶ added in v0.0.2
func GeoCentercloud ¶ added in v0.0.2
func GeoGeometrycloud ¶ added in v0.0.2
func GeoIntersectcloud ¶ added in v0.0.2
func GeoMaxDistancecloud ¶ added in v0.0.2
func GeoMinDistancecloud ¶ added in v0.0.2
func GeoNearcloud ¶ added in v0.0.3
func GeoNearspherecloud ¶ added in v0.0.2
Types ¶
type Geometryreq ¶ added in v0.0.2
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.Database, lowerLeft, upperRight []float64) ([]LocationData, error)
func GeoCenterQuery ¶
func GeoGeometryQuery ¶
func GeoIntersectQuery ¶
func GeoIntersectQuery(client *mongo.Database, polygon [][][]float64) ([]LocationData, error)
func GeoMaxDistanceQuery ¶
func GeoMinDistanceQuery ¶
func GeoNearQuery ¶
func GeoNearSphereQuery ¶
func GeoWithinQuery ¶
func GeoWithinQuery(client *mongo.Database, polygon [][][]float64) ([]LocationData, error)
type Nearspherereq ¶ added in v0.0.2
type RequestGeoIntersects ¶ added in v0.0.2
type RequestGeoIntersects struct {
Coordinates [][][]float64 `bson:"coordinates" json:"coordinates"`
}
Click to show internal directories.
Click to hide internal directories.