Package google.geo.type
표시 영역
위도-경도 표시 영역으로, 대각선으로 반대되는 두 개의 low
및 high
지점으로 표시됩니다. 표시 영역은 닫힌 영역으로 간주됩니다. 즉, 경계가 포함된 영역입니다. 위도 경계는 -90도 이상 90도 이하로, 경도 경계는 -180도 이상 180도 이하로 설정할 수 있습니다. 다음과 같은 경우가 다양합니다.
low
= high
인 경우 표시 영역은 단일 점으로 구성됩니다.
low.longitude
> high.longitude
이면 경도 범위가 반전됩니다 (표시 영역이 경도 180도 선을 교차함).
low.longitude
= -180도, high.longitude
= 180도인 경우 표시 영역에 모든 경도가 포함됩니다.
low.longitude
= 180도이고 high.longitude
= -180도이면 경도 범위는 비어 있습니다.
low.latitude
> high.latitude
이면 위도 범위가 비어 있습니다.
low
와 high
를 모두 입력해야 하며 표시된 상자는 위 정의에서 지정한 대로 비워 둘 수 없습니다. 표시 영역이 비어 있으면 오류가 발생합니다.
예를 들어 다음 표시 영역은 뉴욕시를 완전히 둘러쌉니다.
{ "low": { "latitude": 40.477398, "longitude": -74.259087 }, "high": { "latitude": 40.91618, "longitude": -73.70018 } }
필드 |
low |
LatLng
필수 항목입니다. 표시 영역의 최저점입니다.
|
high |
LatLng
필수 항목입니다. 표시 영역의 최고점입니다.
|
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2024-07-02(UTC)
[null,null,["최종 업데이트: 2024-07-02(UTC)"],[[["A Viewport is defined by two points, `low` and `high`, representing the southwest and northeast corners of a rectangular area on a map."],["It's crucial that `low` latitude is less than `high` latitude and, generally, `low` longitude is less than `high` longitude for the viewport to be valid."],["The viewport encompasses all points within its boundaries, including the boundary lines themselves."],["Special cases exist where longitude ranges can be inverted or represent the entire globe, but latitude ranges must be logically ordered."],["Both `low` and `high` points are mandatory, and the resulting viewport cannot be empty, otherwise, an error will occur."]]],["A Viewport, defined by `low` and `high` latitude-longitude points, represents a closed region. Both `low` and `high` points are mandatory. Longitude ranges can be inverted, crossing the 180-degree line, or encompass all longitudes. Latitude ranges, if `low` is greater than `high` are empty. A viewport can be a single point when `low` equals `high`. An empty viewport, when both are equal, results in an error.\n"]]