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 GeoPolygoncloud(publickey, Mongostring, dbname string, r *http.Request) string
- func GeoWithincloud(publickey, Mongostring, dbname string, r *http.Request) string
- type FullGeoJson
- func GeoBoxQuery(client *mongo.Database, lowerLeft, upperRight []float64) ([]FullGeoJson, error)
- func GeoCenterQuery(client *mongo.Database, center []float64, radius float64) ([]FullGeoJson, error)
- func GeoGeometryQuery(client *mongo.Database, geometry bson.M) ([]FullGeoJson, error)
- func GeoIntersectQuery(client *mongo.Database, polygon [][][]float64) ([]FullGeoJson, error)
- func GeoMaxDistanceQuery(client *mongo.Database, point []float64, maxDistance float64) ([]FullGeoJson, error)
- func GeoMinDistanceQuery(client *mongo.Database, point []float64, minDistance float64) ([]FullGeoJson, error)
- func GeoNearQuery(client *mongo.Database, polygon []float64, maxDistance, minDistance float64) ([]FullGeoJson, error)
- func GeoNearSphereQuery(client *mongo.Database, polygon []float64, radius float64) ([]FullGeoJson, error)
- func GeoPolygonQuery(client *mongo.Database, polygon [][]float64) ([]FullGeoJson, error)
- func GeoWithinQuery(client *mongo.Database, polygon [][][]float64) ([]FullGeoJson, error)
- type GeoBorder
- type GeoBoxReq
- type GeoFeature
- type GeoJson
- type GeoPoint
- type GeoPolygon
- type GeoPolygonReq
- type Geometry
- type Geometryreq
- type LocationData
- type Name
- type Nearspherereq
- type Properties
- type RequestGeoIntersects
- type RequestGeonear
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GeoBoxcloud ¶ added in v0.0.3
func GeoCentercloud ¶ added in v0.0.3
func GeoGeometrycloud ¶ added in v0.0.3
func GeoIntersectcloud ¶ added in v0.0.3
func GeoMaxDistancecloud ¶ added in v0.0.3
func GeoMinDistancecloud ¶ added in v0.0.3
func GeoNearcloud ¶ added in v0.0.4
func GeoNearspherecloud ¶ added in v0.0.3
func GeoPolygoncloud ¶ added in v0.1.4
Types ¶
type FullGeoJson ¶ added in v0.1.0
type FullGeoJson struct { ID primitive.ObjectID `json:"_id,omitempty" bson:"_id,omitempty"` Type string `json:"type" bson:"type"` Properties Properties `json:"properties" bson:"properties"` Geometry Geometry `json:"geometry" bson:"geometry"` }
func GeoBoxQuery ¶
func GeoBoxQuery(client *mongo.Database, lowerLeft, upperRight []float64) ([]FullGeoJson, error)
func GeoCenterQuery ¶
func GeoGeometryQuery ¶
func GeoIntersectQuery ¶
func GeoIntersectQuery(client *mongo.Database, polygon [][][]float64) ([]FullGeoJson, error)
func GeoMaxDistanceQuery ¶
func GeoMinDistanceQuery ¶
func GeoNearQuery ¶
func GeoNearSphereQuery ¶
func GeoPolygonQuery ¶ added in v0.1.4
func GeoPolygonQuery(client *mongo.Database, polygon [][]float64) ([]FullGeoJson, error)
Define the function for GeoPolygon query
func GeoWithinQuery ¶
func GeoWithinQuery(client *mongo.Database, polygon [][][]float64) ([]FullGeoJson, error)
type GeoFeature ¶ added in v0.1.0
type GeoFeature struct { ID primitive.ObjectID `json:"_id" bson:"_id"` Type string `json:"type" bson:"type"` Geometry GeoPolygon `json:"geometry" bson:"geometry"` Properties Name `json:"properties" bson:"properties"` }
type GeoJson ¶ added in v0.1.0
type GeoJson struct { Type string `json:"type" bson:"type"` Properties Properties `json:"properties" bson:"properties"` Geometry Geometry `json:"geometry" bson:"geometry"` }
type GeoPolygon ¶ added in v0.1.0
type GeoPolygonReq ¶ added in v0.1.4
type GeoPolygonReq struct {
Polygon [][]float64 `json:"polygon" bson:"polygon"`
}
type Geometry ¶ added in v0.1.0
type Geometry struct { Coordinates interface{} `json:"coordinates" bson:"coordinates"` Type string `json:"type" bson:"type"` }
type Geometryreq ¶ added in v0.0.2
type LocationData ¶
type Nearspherereq ¶ added in v0.0.2
type Properties ¶ added in v0.1.0
type Properties struct {
Name string `json:"name" bson:"name"`
}
type RequestGeoIntersects ¶ added in v0.0.2
type RequestGeoIntersects struct {
Coordinates [][][]float64 `bson:"coordinates" json:"coordinates"`
}
type RequestGeonear ¶ added in v0.0.7
Click to show internal directories.
Click to hide internal directories.