Locations
Stay organized with collections
Save and categorize content based on your preferences.
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. |
|
Methods
- get
- Gets a single location by ID.
- list
- Retrieves a list of locations for the user.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-07-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-07-10 UTC."],[[["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."]]],[]]