Discover Packages
github.com/Fancyyy21/geoquery
models
package
Version:
v0.0.9
Opens a new window with list of versions in this module.
Published: Nov 27, 2023
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Credential struct {
Status bool `json:"status" bson:"status"`
Token string `json:"token,omitempty" bson:"token,omitempty"`
Message string `json:"message,omitempty" bson:"message,omitempty"`
}
type GeoJson struct {
Type string `json:"type" bson:"type"`
Properties Properties `json:"properties" bson:"properties"`
Geometry Geometry `json:"geometry" bson:"geometry"`
}
type GeoJsonLineString struct {
Type string `json:"type" bson:"type"`
Properties Properties `json:"properties" bson:"properties"`
Geometry GeometryLineString `json:"geometry" bson:"geometry"`
}
type GeoJsonPolygon struct {
Type string `json:"type" bson:"type"`
Properties Properties `json:"properties" bson:"properties"`
Geometry GeometryPolygon `json:"geometry" bson:"geometry"`
}
type Geometry struct {
Coordinates interface{} `json:"coordinates" bson:"coordinates"`
Type string `json:"type" bson:"type"`
}
type GeometryLineString struct {
Coordinates [][]float64 `json:"coordinates" bson:"coordinates"`
Type string `json:"type" bson:"type"`
}
type GeometryPoint struct {
Coordinates []float64 `json:"coordinates" bson:"coordinates"`
Type string `json:"type" bson:"type"`
}
type GeometryPolygon struct {
Coordinates [][][]float64 `json:"coordinates" bson:"coordinates"`
Type string `json:"type" bson:"type"`
}
type Lokasi struct {
ID primitive .ObjectID `bson:"_id,omitempty"`
Properties Name `bson:"properties,omitempty"`
Geometry Geometry `bson:"geometry,omitempty"`
Kategori string `bson:"kategori,omitempty"`
}
type LongLat struct {
Latitude float64 `json:"latitude"`
Longitude float64 `json:"longitude"`
}
type Name struct {
Name string `bson:"name,omitempty"`
}
type Pesan struct {
Status bool `json:"status" bson:"status"`
Message string `json:"message" bson:"message"`
}
type Properties struct {
Name string `json:"name" bson:"name"`
}
type User struct {
Username string `json:"username" bson:"username"`
Password string `json:"password" bson:"password"`
Role string `json:"role,omitempty" bson:"role,omitempty"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.