LocationInfo
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Một vị trí có bất kỳ giá trị nhận dạng bổ sung nào.
Biểu diễn dưới dạng JSON |
{
"point": {
object (LatLng )
},
"place": string,
"pointLocationSource": enum (PointSource )
} |
Trường |
point |
object (LatLng )
Toạ độ của vị trí. Bạn phải chỉ định point hoặc place làm dữ liệu đầu vào. Nếu bạn chỉ định cả hai, point sẽ được dùng để định tuyến và place sẽ được dùng cho siêu dữ liệu. Nếu chỉ place được chỉ định làm dữ liệu đầu vào, thì point sẽ được tính từ place và đưa vào dữ liệu đầu ra.
|
place |
string
Tên tài nguyên của địa điểm đại diện cho vị trí này. Định dạng là places/{place_id} . Bạn phải chỉ định point hoặc place làm dữ liệu đầu vào. Nếu bạn chỉ định cả hai, point sẽ được dùng để định tuyến và place sẽ được dùng cho siêu dữ liệu. place chỉ được đưa vào kết quả nếu nó có trong dữ liệu đầu vào, nghĩa là không có lượt tra cứu place nào từ LatLng được thực hiện. Đây là tính năng thử nghiệm.
|
pointLocationSource |
enum (PointSource )
Chỉ có đầu ra. Nguồn của trường latlng point . Đây là một phần của tính năng thử nghiệm.
|
PointSource
Cho biết nguồn của LatLng
.
Enum |
POINT_SOURCE_UNSPECIFIED |
Chưa chỉ định nguồn điểm. |
POINT_SOURCE_DEVELOPER_PROVIDED |
LatLng do nhà phát triển cung cấp một cách rõ ràng. |
POINT_SOURCE_CALCULATED_FROM_PLACE |
LatLng được tính từ địa điểm được cung cấp. |
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-08-31 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-08-31 UTC."],[[["\u003cp\u003eLocation is represented in JSON format using a \u003ccode\u003epoint\u003c/code\u003e object.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003epoint\u003c/code\u003e object contains latitude and longitude coordinates within a \u003ccode\u003eLatLng\u003c/code\u003e object, providing geographical location data.\u003c/p\u003e\n"]]],[],null,["# LocationInfo\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n- [PointSource](#PointSource)\n\nA location with any additional identifiers.\n\n| JSON representation |\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"point\": { object (/maps/documentation/mobility/fleet-engine/reference/tasks/rest/v1/LatLng) }, \"place\": string, \"pointLocationSource\": enum (/maps/documentation/mobility/fleet-engine/reference/tasks/rest/v1/LocationInfo#PointSource) } ``` |\n\n| Fields ||\n|-----------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `point` | `object (`[LatLng](/maps/documentation/mobility/fleet-engine/reference/tasks/rest/v1/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. |\n| `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. |\n| `pointLocationSource` | `enum (`[PointSource](/maps/documentation/mobility/fleet-engine/reference/tasks/rest/v1/LocationInfo#PointSource)`)` Output only. The source of the latlng `point` field. This is part of an experimental feature. |\n\nPointSource\n-----------\n\nIndicates the source of a `LatLng`.\n\n| Enums ||\n|--------------------------------------|--------------------------------------------------------|\n| `POINT_SOURCE_UNSPECIFIED` | Point source unspecified. |\n| `POINT_SOURCE_DEVELOPER_PROVIDED` | The `LatLng` was explicitly provided by the developer. |\n| `POINT_SOURCE_CALCULATED_FROM_PLACE` | The `LatLng` was calculated from the provided place. |"]]