LocationInfo
Stay organized with collections
Save and categorize content based on your preferences.
A location with any additional identifiers.
JSON representation |
{
"point": {
object (LatLng )
},
"place": string,
"pointLocationSource": enum (PointSource )
} |
Fields |
point |
object (LatLng )
The location's coordinates. Either point or place must be specified as input. If both are specified, point will be used for routing and place will be used for metadata. If only place is specified as input, point will be calculated from the place and included in the output.
|
place |
string
The resource name of the place that represents this location. The format is places/{place_id} . Either point or place must be specified as input. If both are specified, point will be used for routing and place will be used for metadata. place is only included in the output if it was included in the input, meaning that there is no place lookup from LatLng performed. This is an experimental feature.
|
pointLocationSource |
enum (PointSource )
Output only. The source of the latlng point field. This is part of an experimental feature.
|
PointSource
Indicates the source of a LatLng
.
Enums |
POINT_SOURCE_UNSPECIFIED |
Point source unspecified. |
POINT_SOURCE_DEVELOPER_PROVIDED |
The LatLng was explicitly provided by the developer. |
POINT_SOURCE_CALCULATED_FROM_PLACE |
The LatLng was calculated from the provided place. |
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 2025-06-02 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 2025-06-02 UTC."],[[["Location is represented in JSON format using a `point` object."],["The `point` object contains latitude and longitude coordinates within a `LatLng` object, providing geographical location data."]]],[]]