Documentation ¶
Index ¶
- Constants
- func AccuracyUnits() []string
- func AccuracyValueRangeForUnits(units *string) (float64, float64)
- func ElevationUnits() []string
- func ElevationValueRangeForUnits(units *string) (float64, float64)
- func LatitudeUnits() []string
- func LatitudeValueRangeForUnits(units *string) (float64, float64)
- func LongitudeUnits() []string
- func LongitudeValueRangeForUnits(units *string) (float64, float64)
- type Accuracy
- type Elevation
- type GPS
- type Latitude
- type Location
- type Longitude
Constants ¶
View Source
const ( AccuracyUnitsFeet = "feet" AccuracyUnitsMeters = "meters" AccuracyValueFeetMaximum = AccuracyValueMetersMaximum / 0.3048 AccuracyValueFeetMinimum = AccuracyValueMetersMinimum / 0.3048 AccuracyValueMetersMaximum = 1000.0 AccuracyValueMetersMinimum = 0.0 )
View Source
const ( ElevationUnitsFeet = "feet" ElevationUnitsMeters = "meters" ElevationValueFeetMaximum = ElevationValueMetersMaximum / 0.3048 ElevationValueFeetMinimum = ElevationValueMetersMinimum / 0.3048 ElevationValueMetersMaximum = 1000000.0 ElevationValueMetersMinimum = -20000.0 )
View Source
const ( GPSFloorMaximum = 1000 GPSFloorMinimum = -1000 )
View Source
const ( LatitudeUnitsDegrees = "degrees" LatitudeValueDegreesMaximum = 90.0 LatitudeValueDegreesMinimum = -90.0 )
View Source
const ( LongitudeUnitsDegrees = "degrees" LongitudeValueDegreesMaximum = 180.0 LongitudeValueDegreesMinimum = -180.0 )
View Source
const NameLengthMaximum = 100
Variables ¶
This section is empty.
Functions ¶
func AccuracyUnits ¶
func AccuracyUnits() []string
func ElevationUnits ¶
func ElevationUnits() []string
func LatitudeUnits ¶
func LatitudeUnits() []string
func LongitudeUnits ¶
func LongitudeUnits() []string
Types ¶
type Accuracy ¶
type Accuracy struct { Units *string `json:"units,omitempty" bson:"units,omitempty"` Value *float64 `json:"value,omitempty" bson:"value,omitempty"` }
func NewAccuracy ¶
func NewAccuracy() *Accuracy
func ParseAccuracy ¶
func ParseAccuracy(parser structure.ObjectParser) *Accuracy
func (*Accuracy) Parse ¶
func (a *Accuracy) Parse(parser structure.ObjectParser)
type Elevation ¶
type Elevation struct { Units *string `json:"units,omitempty" bson:"units,omitempty"` Value *float64 `json:"value,omitempty" bson:"value,omitempty"` }
func NewElevation ¶
func NewElevation() *Elevation
func ParseElevation ¶
func ParseElevation(parser structure.ObjectParser) *Elevation
func (*Elevation) Parse ¶
func (e *Elevation) Parse(parser structure.ObjectParser)
type GPS ¶
type GPS struct { Elevation *Elevation `json:"elevation,omitempty" bson:"elevation,omitempty"` Floor *int `json:"floor,omitempty" bson:"floor,omitempty"` HorizontalAccuracy *Accuracy `json:"horizontalAccuracy,omitempty" bson:"horizontalAccuracy,omitempty"` Latitude *Latitude `json:"latitude,omitempty" bson:"latitude,omitempty"` Longitude *Longitude `json:"longitude,omitempty" bson:"longitude,omitempty"` Origin *origin.Origin `json:"origin,omitempty" bson:"origin,omitempty"` VerticalAccuracy *Accuracy `json:"verticalAccuracy,omitempty" bson:"verticalAccuracy,omitempty"` }
func ParseGPS ¶
func ParseGPS(parser structure.ObjectParser) *GPS
func (*GPS) Parse ¶
func (g *GPS) Parse(parser structure.ObjectParser)
type Latitude ¶
type Latitude struct { Units *string `json:"units,omitempty" bson:"units,omitempty"` Value *float64 `json:"value,omitempty" bson:"value,omitempty"` }
func NewLatitude ¶
func NewLatitude() *Latitude
func ParseLatitude ¶
func ParseLatitude(parser structure.ObjectParser) *Latitude
func (*Latitude) Parse ¶
func (l *Latitude) Parse(parser structure.ObjectParser)
type Location ¶
type Location struct { GPS *GPS `json:"gps,omitempty" bson:"gps,omitempty"` Name *string `json:"name,omitempty" bson:"name,omitempty"` }
func NewLocation ¶
func NewLocation() *Location
func ParseLocation ¶
func ParseLocation(parser structure.ObjectParser) *Location
func (*Location) Parse ¶
func (l *Location) Parse(parser structure.ObjectParser)
type Longitude ¶
type Longitude struct { Units *string `json:"units,omitempty" bson:"units,omitempty"` Value *float64 `json:"value,omitempty" bson:"value,omitempty"` }
func NewLongitude ¶
func NewLongitude() *Longitude
func ParseLongitude ¶
func ParseLongitude(parser structure.ObjectParser) *Longitude
func (*Longitude) Parse ¶
func (l *Longitude) Parse(parser structure.ObjectParser)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.