Circle
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
JSON 表示法 |
{
"center": {
object (LatLng )
},
"radius": number
} |
字段 |
center |
object (LatLng )
必需。中心纬度和经度。 纬度范围必须在 [-90.0, 90.0] 的范围内。经度范围必须在 [-180.0, 180.0] 的范围内。
|
radius |
number
必需。半径(以米为单位)。半径必须在 [0.0, 50000.0] 的范围内。
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-31。
[null,null,["最后更新时间 (UTC):2025-08-31。"],[[["\u003cp\u003eDefines a circular area using a central point (LatLng) and a radius.\u003c/p\u003e\n"],["\u003cp\u003eRequires specifying the center's latitude and longitude within valid ranges.\u003c/p\u003e\n"],["\u003cp\u003eRequires a radius in meters, with a maximum limit.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003ecenter\u003c/code\u003e and \u003ccode\u003eradius\u003c/code\u003e fields are mandatory for defining the circle.\u003c/p\u003e\n"]]],["The JSON represents a circle defined by a `center` and `radius`. The `center` is a LatLng object, with latitude ranging from -90.0 to 90.0 and longitude from -180.0 to 180.0. The `radius`, a number representing meters, must be within the range of 0.0 to 50000.0. Both `center` and `radius` are required fields to represent the circle.\n"],null,["# Circle\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nCircle with a LatLng as center and radius.\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"center\": { object (/maps/documentation/places/web-service/reference/rest/v1/places#LatLng) }, \"radius\": number } ``` |\n\n| Fields ||\n|----------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `center` | `object (`[LatLng](/maps/documentation/places/web-service/reference/rest/v1/places#LatLng)`)` Required. Center latitude and longitude. The range of latitude must be within \\[-90.0, 90.0\\]. The range of the longitude must be within \\[-180.0, 180.0\\]. |\n| `radius` | `number` Required. Radius measured in meters. The radius must be within \\[0.0, 50000.0\\]. |"]]