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
- type CurrentLocationDeleteCall
- type CurrentLocationGetCall
- type CurrentLocationInsertCall
- type CurrentLocationService
- type LatitudeCurrentlocationResourceJson
- type Location
- type LocationDeleteCall
- type LocationFeed
- type LocationGetCall
- type LocationInsertCall
- type LocationListCall
- func (c *LocationListCall) Do() (*LocationFeed, error)
- func (c *LocationListCall) Granularity(granularity string) *LocationListCall
- func (c *LocationListCall) MaxResults(maxResults string) *LocationListCall
- func (c *LocationListCall) MaxTime(maxTime string) *LocationListCall
- func (c *LocationListCall) MinTime(minTime string) *LocationListCall
- type LocationService
- type Service
Constants ¶
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 ¶
func (c *CurrentLocationDeleteCall) Do() error
type CurrentLocationGetCall ¶
type CurrentLocationGetCall struct {
// contains filtered or unexported fields
}
func (*CurrentLocationGetCall) Do ¶
func (c *CurrentLocationGetCall) Do() (*LatitudeCurrentlocationResourceJson, error)
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 ¶
func (c *CurrentLocationInsertCall) Do() (*LatitudeCurrentlocationResourceJson, error)
type CurrentLocationService ¶
type CurrentLocationService struct {
// contains filtered or unexported fields
}
func NewCurrentLocationService ¶
func NewCurrentLocationService(s *Service) *CurrentLocationService
func (*CurrentLocationService) Delete ¶
func (r *CurrentLocationService) Delete() *CurrentLocationDeleteCall
Delete: Deletes the authenticated user's current location.
func (*CurrentLocationService) Get ¶
func (r *CurrentLocationService) Get() *CurrentLocationGetCall
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 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 }