# Google Latitude API . currentLocation

## Instance Methods

Deletes the authenticated user's current location.

Returns the authenticated user's current location.

Updates or creates the user's current location.

### Method Details

`delete()`

    Deletes the authenticated user's current location.

    Args:

`get(granularity=None)`

    Returns the authenticated user's current location.

    Args:
      granularity: string, Granularity of the requested location.
        Allowed values
          best - Request best available granularity.
          city - Request city-level granularty.

    Returns:
      An object of the form:

        { # A Location resource identifies a user's position at a particular time. It may include metadata about the user's position, such as a venue if the location was recorded at the time of a check-in.
          "kind": "latitude#location", # Kind of this item.
          "altitude": "", # Altitude of the location, in meters. Optional.
          "longitude": "", # Longitude of the location, in decimal degrees.
          "activityId": "", # Unique ID of the Buzz message that corresponds to the check-in associated with this location. Available only for check-in locations. Optional.
          "latitude": "", # Latitude of the location, in decimal degrees.
          "altitudeAccuracy": "", # Accuracy of the altitude value, in meters. Optional.
          "timestampMs": "", # Timestamp of the Location Resource, in milliseconds since the epoch (UTC). This is also the Location Resource's unique id.
          "speed": "", # Ground speed of the user at the time this location was recorded, in meters per second. Non-negative. Optional.
          "heading": "", # Direction of travel of the user when this location was recorded. In degrees, clockwise relative to true north. Optional.
          "accuracy": "", # Accuracy of the latitude and longitude coordinates, in non-negative meters. Optional.
        }

`insert(body)`

    Updates or creates the user's current location.

    Args:
      body: object, The request body. (required)
        The object takes the form of:

    { # A Location resource identifies a user's position at a particular time. It may include metadata about the user's position, such as a venue if the location was recorded at the time of a check-in.
        "kind": "latitude#location", # Kind of this item.
        "altitude": "", # Altitude of the location, in meters. Optional.
        "longitude": "", # Longitude of the location, in decimal degrees.
        "activityId": "", # Unique ID of the Buzz message that corresponds to the check-in associated with this location. Available only for check-in locations. Optional.
        "latitude": "", # Latitude of the location, in decimal degrees.
        "altitudeAccuracy": "", # Accuracy of the altitude value, in meters. Optional.
        "timestampMs": "", # Timestamp of the Location Resource, in milliseconds since the epoch (UTC). This is also the Location Resource's unique id.
        "speed": "", # Ground speed of the user at the time this location was recorded, in meters per second. Non-negative. Optional.
        "heading": "", # Direction of travel of the user when this location was recorded. In degrees, clockwise relative to true north. Optional.
        "accuracy": "", # Accuracy of the latitude and longitude coordinates, in non-negative meters. Optional.
      }

    Returns:
      An object of the form:

        { # A Location resource identifies a user's position at a particular time. It may include metadata about the user's position, such as a venue if the location was recorded at the time of a check-in.
          "kind": "latitude#location", # Kind of this item.
          "altitude": "", # Altitude of the location, in meters. Optional.
          "longitude": "", # Longitude of the location, in decimal degrees.
          "activityId": "", # Unique ID of the Buzz message that corresponds to the check-in associated with this location. Available only for check-in locations. Optional.
          "latitude": "", # Latitude of the location, in decimal degrees.
          "altitudeAccuracy": "", # Accuracy of the altitude value, in meters. Optional.
          "timestampMs": "", # Timestamp of the Location Resource, in milliseconds since the epoch (UTC). This is also the Location Resource's unique id.
          "speed": "", # Ground speed of the user at the time this location was recorded, in meters per second. Non-negative. Optional.
          "heading": "", # Direction of travel of the user when this location was recorded. In degrees, clockwise relative to true north. Optional.
          "accuracy": "", # Accuracy of the latitude and longitude coordinates, in non-negative meters. Optional.
        }