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 계열사의 등록 상표입니다.
최종 업데이트: 2025-02-26(UTC)
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-02-26(UTC)"],[[["A Viewport is defined by two points, 'low' and 'high', representing its southwest and northeast corners, respectively, forming a rectangular area on a map."],["Latitude values for these points must be between -90 and 90 degrees, while longitude values range from -180 to 180 degrees."],["Special cases arise when 'low' and 'high' have certain values, resulting in single points, inverted longitude ranges, or empty areas."],["Both 'low' and 'high' points are required, and they must define a non-empty viewport to avoid errors."]]],["A viewport is defined by two points, `low` and `high`, representing a latitude-longitude region. These points must be populated and form a closed, non-empty area. Latitude ranges from -90 to 90, and longitude from -180 to 180. The longitude range inverts if `low.longitude` exceeds `high.longitude`. Specific conditions define a single point, full longitude inclusion, or empty ranges. `low` and `high` fields are required, represented by latitude and longitude.\n"]]