googleexportjson

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 7, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreationTime

type CreationTime struct {
	Timestamp ParsedTime `json:"timestamp"`
	Formatted string     `json:"formatted"`
}

type DeviceFolder

type DeviceFolder struct {
	LocalFolderName string `json:"localFolderName"`
}

type GeoData

type GeoData struct {
	Latitude      float64 `json:"latitude"`
	Longitude     float64 `json:"longitude"`
	Altitude      float64 `json:"altitude"`
	LatitudeSpan  float64 `json:"latitudeSpan"`
	LongitudeSpan float64 `json:"longitudeSpan"`
}

func (*GeoData) DegreesToRational

func (g *GeoData) DegreesToRational() ([]exifcommon.Rational, []exifcommon.Rational)

type GoogleExportJSON

type GoogleExportJSON struct {
	Title              string `json:"title"`
	Description        string `json:"description"`
	ImageViews         string `json:"imageViews"`
	CreationTime       `json:"creationTime"`
	PhotoTakenTime     `json:"photoTakenTime"`
	GeoData            `json:"geoData"`
	GeoDataExif        GeoData `json:"geoDataExif"`
	URL                string  `json:"url"`
	GooglePhotosOrigin `json:"googlePhotosOrigin"`
}
{
  "title": "20221013_174131.jpg",
  "description": "",
  "imageViews": "0",
  "creationTime": {
    "timestamp": "1665676069",
    "formatted": "13 Oct 2022, 15:47:49 UTC"
  },
  "photoTakenTime": {
    "timestamp": "1665675691",
    "formatted": "13 Oct 2022, 15:41:31 UTC"
  },
  "geoData": {
    "latitude": 0.0,
    "longitude": 0.0,
    "altitude": 0.0,
    "latitudeSpan": 0.0,
    "longitudeSpan": 0.0
  },
  "geoDataExif": {
    "latitude": 0.0,
    "longitude": 0.0,
    "altitude": 0.0,
    "latitudeSpan": 0.0,
    "longitudeSpan": 0.0
  },
  "url": "https://lh3.googleusercontent.com/myurl",
  "googlePhotosOrigin": {
    "mobileUpload": {
      "deviceFolder": {
        "localFolderName": ""
      },
      "deviceType": "ANDROID_PHONE"
    }
  }
}

type GooglePhotosOrigin

type GooglePhotosOrigin struct {
	MobileUpload `json:"mobileUpload"`
}

type MobileUpload

type MobileUpload struct {
	DeviceFolder `json:"deviceFolder"`
	DeviceType   string `json:"deviceType"`
}

type ParsedTime

type ParsedTime time.Time

func (ParsedTime) MarshalJSON

func (p ParsedTime) MarshalJSON() ([]byte, error)

func (*ParsedTime) UnmarshalJSON

func (p *ParsedTime) UnmarshalJSON(b []byte) error

type PhotoTakenTime

type PhotoTakenTime struct {
	Timestamp ParsedTime `json:"timestamp"`
	Formatted string     `json:"formatted"`
}

Jump to

Keyboard shortcuts

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