LocationInfo
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
สถานที่ที่มีตัวระบุเพิ่มเติม
การแสดง JSON |
{
"point": {
object (LatLng )
},
"place": string,
"pointLocationSource": enum (PointSource )
} |
ช่อง |
point |
object (LatLng )
พิกัดของสถานที่ตั้ง ต้องระบุ point หรือ place เป็นอินพุต หากระบุทั้ง 2 รายการ ระบบจะใช้ point สำหรับการกําหนดเส้นทาง และ place จะใช้สําหรับข้อมูลเมตา หากระบุเฉพาะ place เป็นอินพุต ระบบจะคํานวณ point จาก place และรวมไว้ในเอาต์พุต
|
place |
string
ชื่อทรัพยากรของสถานที่ที่แสดงถึงสถานที่นี้ รูปแบบคือ places/{place_id} ต้องระบุ point หรือ place เป็นอินพุต หากระบุทั้ง 2 รายการ ระบบจะใช้ point สำหรับการกําหนดเส้นทาง และ place จะใช้สําหรับข้อมูลเมตา place จะรวมอยู่ในเอาต์พุตก็ต่อเมื่อรวมอยู่ในอินพุตเท่านั้น ซึ่งหมายความว่าไม่มีการค้นหา place จาก LatLng นี่เป็นฟีเจอร์ทดลองใช้
|
pointLocationSource |
enum (PointSource )
เอาต์พุตเท่านั้น แหล่งที่มาของฟิลด์ latlng point ฟีเจอร์นี้เป็นส่วนหนึ่งของฟีเจอร์ทดลอง
|
PointSource
Enum |
POINT_SOURCE_UNSPECIFIED |
ไม่ได้ระบุแหล่งที่มาของจุด |
POINT_SOURCE_DEVELOPER_PROVIDED |
นักพัฒนาแอประบุ LatLng อย่างชัดเจน |
POINT_SOURCE_CALCULATED_FROM_PLACE |
LatLng คำนวณจากสถานที่ที่ระบุ |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-08-31 UTC
[null,null,["อัปเดตล่าสุด 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. |"]]