AI-generated Key Takeaways
-
A location resource represents a geographic location that can be associated with a timeline item and includes properties like latitude, longitude, accuracy, display name, and address.
-
The location resource is identified by a unique ID and has a kind value of
mirror#location
. -
Developers can get a single location by ID or retrieve a list of locations for a user using the provided methods.
-
Location data like latitude, longitude, accuracy, display name and address are writable properties allowing developers to update location information.
For a list of methods for this resource, see the end of this page.
Resource representations
A geographic location that can be associated with a timeline item.
{ "kind": "mirror#location", "id": string, "timestamp": datetime, "latitude": double, "longitude": double, "accuracy": double, "displayName": string, "address": string }
Property name | Value | Description | Notes |
---|---|---|---|
accuracy |
double |
The accuracy of the location fix in meters. | writable |
address |
string |
The full address of the location. | writable |
displayName |
string |
The name to be displayed. This may be a business name or a user-defined place, such as "Home". | writable |
id |
string |
The ID of the location. | |
kind |
string |
The type of resource. This is always mirror#location . |
|
latitude |
double |
The latitude, in degrees. | writable |
longitude |
double |
The longitude, in degrees. | writable |
timestamp |
datetime |
The time at which this location was captured, formatted according to RFC 3339. |