Documentation
¶
Overview ¶
Package schema defines the types used to represent Google Location History data.
Index ¶
- type Activity
- type ActivityCandidate
- type ActivityRecord
- type DeviceRecord
- type FrequentPlace
- type History
- type IdentifiedPlace
- type Location
- type LocationProfile
- type Parking
- type PlaceCandidate
- type PlaceID
- type Position
- type ProbableActivity
- type RawSignal
- type SemanticSegment
- type TimelineMemory
- type TimelinePath
- type Trip
- type Visit
- type WifiScan
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Activity ¶
type Activity struct {
DistanceMeters float64 `json:"distanceMeters,omitempty"`
End *Location `json:"end,omitempty"`
Parking *Parking `json:"parking,omitempty"`
Probability float64 `json:"probability,omitempty"`
Start *Location `json:"start,omitempty"`
TopCandidate *ActivityCandidate `json:"topCandidate,omitempty"`
}
type ActivityCandidate ¶
type ActivityRecord ¶
type ActivityRecord struct {
ProbableActivities []*ProbableActivity `json:"probableActivities,omitempty"`
Timestamp string `json:"timestamp,omitempty"`
}
type DeviceRecord ¶
type FrequentPlace ¶
type History ¶
type History struct {
RawSignals []*RawSignal `json:"rawSignals,omitempty"`
SemanticSegments []*SemanticSegment `json:"semanticSegments,omitempty"`
UserLocationProfile *LocationProfile `json:"userLocationProfile,omitempty"`
}
History is the top-level structure of a Google Location History JSON file.
type IdentifiedPlace ¶
type IdentifiedPlace struct {
Identifier *PlaceID `json:"identifier,omitempty"`
}
type LocationProfile ¶
type LocationProfile struct {
FrequentPlaces []*FrequentPlace `json:"frequentPlaces,omitempty"`
}
type PlaceCandidate ¶
type Position ¶
type Position struct {
AccuracyMeters int64 `json:"accuracyMeters,omitempty"`
AltitudeMeters float64 `json:"altitudeMeters,omitempty"`
LatLng string `json:"LatLng,omitempty"`
Source string `json:"source,omitempty"`
SpeedMetersPerSecond float64 `json:"speedMetersPerSecond,omitempty"`
Timestamp string `json:"timestamp,omitempty"`
}
type ProbableActivity ¶
type RawSignal ¶
type RawSignal struct {
ActivityRecord *ActivityRecord `json:"activityRecord,omitempty"`
Position *Position `json:"position,omitempty"`
WifiScan *WifiScan `json:"wifiScan,omitempty"`
}
type SemanticSegment ¶
type SemanticSegment struct {
Activity *Activity `json:"activity,omitempty"`
EndTime string `json:"endTime,omitempty"`
EndTimeTimezoneUtcOffsetMinutes int64 `json:"endTimeTimezoneUtcOffsetMinutes,omitempty"`
StartTime string `json:"startTime,omitempty"`
StartTimeTimezoneUtcOffsetMinutes int64 `json:"startTimeTimezoneUtcOffsetMinutes,omitempty"`
TimelineMemory *TimelineMemory `json:"timelineMemory,omitempty"`
TimelinePath []*TimelinePath `json:"timelinePath,omitempty"`
Visit *Visit `json:"visit,omitempty"`
}
type TimelineMemory ¶
type TimelineMemory struct {
Trip *Trip `json:"trip,omitempty"`
}
type TimelinePath ¶
type Trip ¶
type Trip struct {
Destinations []*IdentifiedPlace `json:"destinations,omitempty"`
DistanceFromOriginKms int64 `json:"distanceFromOriginKms,omitempty"`
}
type Visit ¶
type Visit struct {
HierarchyLevel int64 `json:"hierarchyLevel,omitempty"`
IsTimelessVisit bool `json:"isTimelessVisit,omitempty"`
Probability float64 `json:"probability,omitempty"`
TopCandidate *PlaceCandidate `json:"topCandidate,omitempty"`
}
type WifiScan ¶
type WifiScan struct {
DeliveryTime string `json:"deliveryTime,omitempty"`
DevicesRecords []*DeviceRecord `json:"devicesRecords,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.