इस यूटिलिटी की मदद से, मैप पर इंटरैक्टिव तरीके से या निर्देशांक डालकर, पॉलीलाइन एन्कोडिंग जनरेट की जा सकती हैं.
इस टूल का इस्तेमाल करके, पॉलीलाइन को वापस कोऑर्डिनेट में बदला जा सकता है.
मैप को बीच में लाने के लिए, कोई पता, पिन कोड, जगह या लैंडमार्क डालें
और खोजें पर क्लिक करें.
मैप पर क्लिक करके, एक मार्कर लगाएं. यह मार्कर, आपकी पॉलीलाइन की शुरुआती जगह को दिखाता है.
आपके मार्कर के निर्देशांक, अक्षांश और देशांतर बॉक्स में दिखते हैं.
जगह की जानकारी जोड़ें बटन पर क्लिक करें.
इससे जगहों की सूची में निर्देशांक जुड़ जाते हैं. साथ ही, कोड में बदली गई पॉलीलाइन बॉक्स में एक एन्कोडिंग जनरेट हो जाती है.
अपनी पॉलीलाइन पर मौजूद सभी जगहों को जगहों की सूची और कोड में बदली गई पॉलीलाइन में जोड़ने के लिए, मैप पर मार्कर जोड़ते रहें.
निर्देशांक में बदलाव करना
किसी जगह की जानकारी मिटाने के लिए, उसे जगह की सूची में चुनें. इसके बाद, चुनी गई जगह की जानकारी मिटाएं पर क्लिक करें.
सभी जगहों की जानकारी मिटाने और फिर से शुरू करने के लिए, सभी जगहों की जानकारी मिटाएं पर क्लिक करें.
जगह की जानकारी में बदलाव नहीं किया जा सकता. किसी जगह की जानकारी में बदलाव करने के लिए, उसे मिटाएं और फिर से जोड़ें.
अगर लोकेशन आपकी सूची के आखिर में नहीं है, तो
उस लोकेशन और उसके बाद की सभी लोकेशन को मिटा दें.
निर्देशांक डालकर पॉलीलाइन बनाना
अगर आपके पास निर्देशांकों की कोई मौजूदा सूची है, तो मार्कर लगाने के बजाय, अक्षांश और देशांतर को उनके बॉक्स में मैन्युअल तरीके से डाला जा सकता है.
पॉलीलाइन को कोऑर्डिनेट में डिकोड करना
Encoded Polyline बॉक्स में अपनी पॉलीलाइन डालें.
अगर आपकी पॉलीलाइन में एस्केप किए गए वर्ण शामिल हैं, तो उन्हें अनएस्केप करने के लिए चेकबॉक्स पर क्लिक करें.
डिकोड पॉलीलाइन पर क्लिक करें.
निर्देशांक, जगह की सूची में दिखते हैं. साथ ही, मैप पर लाइन खींची जाती है.
यह यूटिलिटी, Maps JavaScript API का इस्तेमाल करती है. खास तौर पर, google.maps.geometry.encoding नेमस्पेस में, पाथ को एन्कोड और डिकोड करने का काम स्टैटिक तरीके से encodePath() और decodePath() हैंडल करते हैं.
एन्कोडिंग स्कीम के बारे में जानने के लिए, एन्कोड किए गए पॉलीलाइन एल्गोरिदम का फ़ॉर्मैट देखें.
[[["समझने में आसान है","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-08-29 (UTC) को अपडेट किया गया."],[],[],null,["# Interactive Polyline Encoder Utility\n\nGoogle Maps can generate a simple polyline from two or more latitude/longitude coordinates.\nLearn more about\n[polyline encoding](/maps/documentation/utilities/polylinealgorithm),\n[simple polylines](/maps/documentation/javascript/examples/polyline-simple),\nand\n[complex polylines](/maps/documentation/javascript/examples/polyline-complex).\n\nWith this utility, you can generate polyline encodings\ninteractively on a map or by entering coordinates.\nYou can also decode polylines into coordinates\nby using this tool in reverse.\n\nHowever, if you have an existing encoded polyline or a list of coordinates as a\n[GeoJSON linestring](https://geojson.org/)\nand want to view the polyline on a map, use the\n[Interactive polyline decoder utility](/maps/documentation/routes/polylinedecoder).\n\n**Create a polyline interactively on the map**\n\n1. Enter an address, zip code, location, or landmark to center the map and click **Search**.\n2. Click the map to place a marker that represents the start location of your polyline.\n3. The coordinates of your marker show in the **Latitude** and **Longitude** boxes.\n4. Click the **Add Location** button. This adds the coordinates to the **Location list** and generates an encoding in the **Encoded Polyline** box.\n5. Continue to place markers on the map to add all locations on your polyline to the **Location list** and the **Encoded polyline**.\n\n**Editing coordinates**\n\n- To delete a location, select it in the **Location list** and press **Delete Selected Location**.\n- To delete all locations and start over, click **Delete All Locations**.\n- You cannot edit locations. To edit a location, delete and re-add it. If the location is not at the end of your list, delete the location and all the ones following.\n\n**Create a polyline by entering coordinates**\n\n- If you have an existing list of coordinates, instead of placing markers, you can manually enter the latitudes and longitudes in their respective boxes.\n\n**Decode a polyline into coordinates**\n\n1. Enter your polyline into the **Encoded Polyline** box.\n2. If your polyline contains escaped characters, click the checkbox to unescape them.\n3. Click **Decode Polyline** . The coordinates show in the **Location list**, and the line is drawn on the map.\n\n\u003cbr /\u003e\n\n|--------------------------------------------|----------------------------------------------------------------------------------------------------------------------|\n| Input an address to center the map: Search | |------------|---| | Latitude: | | | Longitude: | | | | | || \u003cbr /\u003e **Locations list** |\n| |-------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | | **Warning**: Special characters in the encoded polylines returned in JSON responses are escaped. To use these polylines here you must unescape them. | | Encoded Polyline: | |---------------------------------------------------------------------------------| | | | Unescape special characters in the encoded polylines returned in JSON responses | | | || ||\n\nThis utility uses the Maps JavaScript API. Specifically,\nencoding and decoding of paths are handled by the static methods `encodePath()`\nand `decodePath()` in the `google.maps.geometry.encoding` namespace.\nSee the [Encoded Polyline Algorithm\nFormat](/maps/documentation/utilities/polylinealgorithm) for information about the encoding scheme."]]