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 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 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 the southwest and northeast corners of a rectangular area on a map."],["The latitude and longitude values of these points determine the boundaries of the viewport, allowing for a specific region to be displayed."],["Certain conditions like inverted longitude ranges or empty latitude/longitude ranges are handled specifically within the viewport definition."],["Both `low` and `high` points are mandatory for a valid viewport, and an empty or incorrectly defined viewport will result in an error."]]],["A viewport is defined by two diagonal points, `low` and `high`, representing a latitude-longitude area. Both points are required and must define a non-empty region. Latitude ranges from -90 to 90 degrees, and longitude from -180 to 180 degrees. Inverted longitude ranges cross the 180-degree line. Specific longitude values can indicate all longitudes or an empty range. Inverted latitude order or an undefined `low` or `high` result in an error.\n"]]