Location
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
जगह को इनकैप्सुलेट करता है (भौगोलिक पॉइंट और वैकल्पिक हेडिंग).
JSON के काेड में दिखाना |
{
"latLng": {
object (LatLng )
},
"heading": integer
} |
फ़ील्ड |
latLng |
object (LatLng )
वेपॉइंट के भौगोलिक निर्देशांक.
|
heading |
integer
ट्रैफ़िक के फ़्लो की दिशा से जुड़ा कंपास हेडिंग. यह वैल्यू, पिक अप और ड्रॉप-ऑफ़ के लिए सड़क के किनारे की जानकारी देती है. हेडिंग की वैल्यू 0 से 360 तक हो सकती है. 0 से, उत्तर की ओर से तय की जाने वाली हेडिंग के बारे में पता चलता है, 90 हेडिंग के पीछे का हिस्सा तय करता है, और इसी तरह बाकी वैल्यू दिखाता है. इस फ़ील्ड का इस्तेमाल सिर्फ़ DRIVE और TWO_WHEELER RouteTravelMode के लिए किया जा सकता है.
|
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-08-31 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-08-31 (UTC) को अपडेट किया गया."],[[["\u003cp\u003e\u003ccode\u003eLocation\u003c/code\u003e objects represent a geographic point with latitude and longitude coordinates, optionally including a compass heading.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eheading\u003c/code\u003e field, applicable to \u003ccode\u003eDRIVE\u003c/code\u003e and \u003ccode\u003eTWO_WHEELER\u003c/code\u003e travel modes, indicates traffic flow direction for pickup/drop-off, ranging from 0 (North) to 360 degrees.\u003c/p\u003e\n"]]],["The provided JSON structure defines a location using latitude and longitude coordinates (`latLng`). It also includes an optional `heading` field, an integer from 0 to 360, representing the compass direction of traffic flow. The `heading` is applicable only for `DRIVE` and `TWO_WHEELER` travel modes and is intended for specifying the road side for pickup or drop-off actions. The `latLng` field itself is a geographic point.\n"],null,["# Location\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nEncapsulates a location (a geographic point, and an optional heading).\n\n| JSON representation |\n|------------------------------------------------------------------------------------------------------------|\n| ``` { \"latLng\": { object (/maps/documentation/routes/reference/rest/v2/LatLng) }, \"heading\": integer } ``` |\n\n| Fields ||\n|-----------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `latLng` | `object (`[LatLng](/maps/documentation/routes/reference/rest/v2/LatLng)`)` The waypoint's geographic coordinates. |\n| `heading` | `integer` The compass heading associated with the direction of the flow of traffic. This value specifies the side of the road for pickup and drop-off. Heading values can be from 0 to 360, where 0 specifies a heading of due North, 90 specifies a heading of due East, and so on. You can use this field only for `DRIVE` and `TWO_WHEELER` [`RouteTravelMode`](/maps/documentation/routes/reference/rest/v2/RouteTravelMode). |"]]