latitude

package
v0.0.0-...-6eef5cf Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2014 License: Apache-2.0, BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Overview

Package latitude provides access to the Google Latitude API.

See https://developers.google.com/latitude/v1/using

Usage example:

import "code.google.com/p/google-api-go-client/latitude/v1"
...
latitudeService, err := latitude.New(oauthHttpClient)

Index

Constants

View Source
const (
	// Manage your best-available location and location history
	LatitudeAllBestScope = "https://www.googleapis.com/auth/latitude.all.best"

	// Manage your city-level location and location history
	LatitudeAllCityScope = "https://www.googleapis.com/auth/latitude.all.city"

	// Manage your best-available location
	LatitudeCurrentBestScope = "https://www.googleapis.com/auth/latitude.current.best"

	// Manage your city-level location
	LatitudeCurrentCityScope = "https://www.googleapis.com/auth/latitude.current.city"
)

OAuth2 scopes used by this API.

Variables

This section is empty.

Functions

This section is empty.

Types

type CurrentLocationDeleteCall

type CurrentLocationDeleteCall struct {
	// contains filtered or unexported fields
}

func (*CurrentLocationDeleteCall) Do

type CurrentLocationGetCall

type CurrentLocationGetCall struct {
	// contains filtered or unexported fields
}

func (*CurrentLocationGetCall) Do

func (*CurrentLocationGetCall) Granularity

func (c *CurrentLocationGetCall) Granularity(granularity string) *CurrentLocationGetCall

Granularity sets the optional parameter "granularity": Granularity of the requested location.

type CurrentLocationInsertCall

type CurrentLocationInsertCall struct {
	// contains filtered or unexported fields
}

func (*CurrentLocationInsertCall) Do

type CurrentLocationService

type CurrentLocationService struct {
	// contains filtered or unexported fields
}

func NewCurrentLocationService

func NewCurrentLocationService(s *Service) *CurrentLocationService

func (*CurrentLocationService) Delete

Delete: Deletes the authenticated user's current location.

func (*CurrentLocationService) Get

Get: Returns the authenticated user's current location.

func (*CurrentLocationService) Insert

func (r *CurrentLocationService) Insert(latitudecurrentlocationresourcejson *LatitudeCurrentlocationResourceJson) *CurrentLocationInsertCall

Insert: Updates or creates the user's current location.

type LatitudeCurrentlocationResourceJson

type LatitudeCurrentlocationResourceJson struct {
	Location
}

type Location

type Location struct {
	// Accuracy: Accuracy of the latitude and longitude coordinates, in
	// non-negative meters. Optional.
	Accuracy interface{} `json:"accuracy,omitempty"`

	// ActivityId: Unique ID of the Buzz message that corresponds to the
	// check-in associated with this location. Available only for check-in
	// locations. Optional.
	ActivityId interface{} `json:"activityId,omitempty"`

	// Altitude: Altitude of the location, in meters. Optional.
	Altitude interface{} `json:"altitude,omitempty"`

	// AltitudeAccuracy: Accuracy of the altitude value, in meters.
	// Optional.
	AltitudeAccuracy interface{} `json:"altitudeAccuracy,omitempty"`

	// Heading: Direction of travel of the user when this location was
	// recorded. In degrees, clockwise relative to true north. Optional.
	Heading interface{} `json:"heading,omitempty"`

	// Kind: Kind of this item.
	Kind string `json:"kind,omitempty"`

	// Latitude: Latitude of the location, in decimal degrees.
	Latitude interface{} `json:"latitude,omitempty"`

	// Longitude: Longitude of the location, in decimal degrees.
	Longitude interface{} `json:"longitude,omitempty"`

	// Speed: Ground speed of the user at the time this location was
	// recorded, in meters per second. Non-negative. Optional.
	Speed interface{} `json:"speed,omitempty"`

	// TimestampMs: Timestamp of the Location Resource, in milliseconds
	// since the epoch (UTC). This is also the Location Resource's unique
	// id.
	TimestampMs interface{} `json:"timestampMs,omitempty"`
}

type LocationDeleteCall

type LocationDeleteCall struct {
	// contains filtered or unexported fields
}

func (*LocationDeleteCall) Do

func (c *LocationDeleteCall) Do() error

type LocationFeed

type LocationFeed struct {
	Items []*Location `json:"items,omitempty"`

	Kind string `json:"kind,omitempty"`
}

type LocationGetCall

type LocationGetCall struct {
	// contains filtered or unexported fields
}

func (*LocationGetCall) Do

func (c *LocationGetCall) Do() (*Location, error)

func (*LocationGetCall) Granularity

func (c *LocationGetCall) Granularity(granularity string) *LocationGetCall

Granularity sets the optional parameter "granularity": Granularity of the location to return.

type LocationInsertCall

type LocationInsertCall struct {
	// contains filtered or unexported fields
}

func (*LocationInsertCall) Do

func (c *LocationInsertCall) Do() (*Location, error)

type LocationListCall

type LocationListCall struct {
	// contains filtered or unexported fields
}

func (*LocationListCall) Do

func (c *LocationListCall) Do() (*LocationFeed, error)

func (*LocationListCall) Granularity

func (c *LocationListCall) Granularity(granularity string) *LocationListCall

Granularity sets the optional parameter "granularity": Granularity of the requested locations.

func (*LocationListCall) MaxResults

func (c *LocationListCall) MaxResults(maxResults string) *LocationListCall

MaxResults sets the optional parameter "max-results": Maximum number of locations to return.

func (*LocationListCall) MaxTime

func (c *LocationListCall) MaxTime(maxTime string) *LocationListCall

MaxTime sets the optional parameter "max-time": Maximum timestamp of locations to return (ms since epoch).

func (*LocationListCall) MinTime

func (c *LocationListCall) MinTime(minTime string) *LocationListCall

MinTime sets the optional parameter "min-time": Minimum timestamp of locations to return (ms since epoch).

type LocationService

type LocationService struct {
	// contains filtered or unexported fields
}

func NewLocationService

func NewLocationService(s *Service) *LocationService

func (*LocationService) Delete

func (r *LocationService) Delete(locationId string) *LocationDeleteCall

Delete: Deletes a location from the user's location history.

func (*LocationService) Get

func (r *LocationService) Get(locationId string) *LocationGetCall

Get: Reads a location from the user's location history.

func (*LocationService) Insert

func (r *LocationService) Insert(location *Location) *LocationInsertCall

Insert: Inserts or updates a location in the user's location history.

func (*LocationService) List

func (r *LocationService) List() *LocationListCall

List: Lists the user's location history.

type Service

type Service struct {
	CurrentLocation *CurrentLocationService

	Location *LocationService
	// contains filtered or unexported fields
}

func New

func New(client *http.Client) (*Service, error)

Jump to

Keyboard shortcuts

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