GeoCoordinates
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
JSON 表示法 |
{
"latitude": number,
"longitude": number,
// Union field addresses can be only one of the following:
"address": {
object (PostalAddress )
},
"unstructuredAddress": string
// End of list of possible types for union field addresses .
} |
字段 |
latitude |
number
纬度(以度为单位)。(可选)
|
longitude |
number
经度(以度为单位)。(可选)
|
联合字段 addresses 。某一地点的地址,可以是结构化或非结构化地址。addresses 只能是下列其中一项: |
address |
object (PostalAddress )
营业地点的邮政地址(首选)。
|
unstructuredAddress |
string
非结构化地址也可用作备用地址。示例:“北京市长安街 100 号,100005”
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003eThe Geo data of a location includes latitude, longitude, and address, represented in JSON format.\u003c/p\u003e\n"],["\u003cp\u003eAddress can be provided in a structured format using \u003ccode\u003eaddress\u003c/code\u003e field (PostalAddress object) or an unstructured format using \u003ccode\u003eunstructuredAddress\u003c/code\u003e field (string).\u003c/p\u003e\n"],["\u003cp\u003eLatitude and longitude are represented as numbers in degrees and are optional fields within the Geo data.\u003c/p\u003e\n"]]],[],null,["# GeoCoordinates\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nThe Geo data of a location, including latitude, longitude, and address.\n\n| JSON representation |\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"latitude\": number, \"longitude\": number, // Union field `addresses` can be only one of the following: \"address\": { object (/maps-booking/reference/maps-booking-api/rest/v1alpha/PostalAddress) }, \"unstructuredAddress\": string // End of list of possible types for union field `addresses`. } ``` |\n\n| Fields ||\n|-------------------------|----------------------------------------------------------------------------------------------------------------------------------------------|\n| `latitude` | `number` Latitude in degrees. (optional) |\n| `longitude` | `number` Longitude in degrees. (optional) |\n| Union field `addresses`. Address for a location, could either be structured or unstructured. `addresses` can be only one of the following: ||\n| `address` | `object (`[PostalAddress](/maps-booking/reference/maps-booking-api/rest/v1alpha/PostalAddress)`)` Postal address of the location, preferred. |\n| `unstructured``Address` | `string` An unstructured address could also be provided as a fallback. E.g. \"1600 amphitheatre parkway mountain view, ca 94043\" |"]]