schema

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 8, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package schema defines the types used to represent Google Location History data.

Index

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 ActivityCandidate struct {
	Probability float64 `json:"probability,omitempty"`
	Type        string  `json:"type,omitempty"`
}

type ActivityRecord

type ActivityRecord struct {
	ProbableActivities []*ProbableActivity `json:"probableActivities,omitempty"`
	Timestamp          string              `json:"timestamp,omitempty"`
}

type DeviceRecord

type DeviceRecord struct {
	Mac     int64 `json:"mac,omitempty"`
	RawRssi int64 `json:"rawRssi,omitempty"`
}

type FrequentPlace

type FrequentPlace struct {
	Label         string `json:"label,omitempty"`
	PlaceID       string `json:"placeId,omitempty"`
	PlaceLocation string `json:"placeLocation,omitempty"`
}

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 Location

type Location struct {
	LatLng string `json:"latLng,omitempty"`
}

type LocationProfile

type LocationProfile struct {
	FrequentPlaces []*FrequentPlace `json:"frequentPlaces,omitempty"`
}

type Parking

type Parking struct {
	Location  *Location `json:"location,omitempty"`
	StartTime string    `json:"startTime,omitempty"`
}

type PlaceCandidate

type PlaceCandidate struct {
	PlaceID       string    `json:"placeId,omitempty"`
	PlaceLocation *Location `json:"placeLocation,omitempty"`
	Probability   float64   `json:"probability,omitempty"`
	SemanticType  string    `json:"semanticType,omitempty"`
}

type PlaceID

type PlaceID struct {
	PlaceID string `json:"placeId,omitempty"`
}

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 ProbableActivity struct {
	Confidence float64 `json:"confidence,omitempty"`
	Type       string  `json:"type,omitempty"`
}

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 TimelinePath struct {
	Point string `json:"point,omitempty"`
	Time  string `json:"time,omitempty"`
}

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL