GeocodeAddressRequest.LocationBias
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
要搜索的地区。此位置用作偏差,这意味着可能会返回给定位置附近的结果。
JSON 表示法 |
{
// Union field type can be only one of the following:
"rectangle": {
object (Viewport )
}
// End of list of possible types for union field type .
} |
字段 |
联合字段 type 。位置偏向的类型。type 只能是下列其中一项: |
rectangle |
object (Viewport )
由东北角和西南角定义的矩形框。rectangle.high() 必须是矩形视口的东北点。rectangle.low() 必须是矩形视口的西南点。rectangle.low().latitude() 不得大于 rectangle.high().latitude() 。这会导致纬度范围为空。矩形视口的宽度不能超过 180 度。
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-31。
[null,null,["最后更新时间 (UTC):2025-08-31。"],[],[],null,["# GeocodeAddressRequest.LocationBias\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nThe region to search. This location serves as a bias which means results around given location might be returned.\n\n| JSON representation |\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { // Union field `type` can be only one of the following: \"rectangle\": { object (/maps/documentation/geocoding/reference/rest/v4beta/Viewport) } // End of list of possible types for union field `type`. } ``` |\n\n| Fields ||\n|-------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Union field `type`. Types of location bias. `type` can be only one of the following: ||\n| `rectangle` | `object (`[Viewport](/maps/documentation/geocoding/reference/rest/v4beta/Viewport)`)` A rectangle box defined by northeast and southwest corner. `rectangle.high()` must be the northeast point of the rectangle viewport. `rectangle.low()` must be the southwest point of the rectangle viewport. `rectangle.low().latitude()` cannot be greater than `rectangle.high().latitude()`. This will result in an empty latitude range. A rectangle viewport cannot be wider than 180 degrees. |"]]