Mit diesem Dienstprogramm können Sie Polylinien-Codierungen interaktiv auf einer Karte oder durch Eingabe von Koordinaten generieren.
Sie können mit diesem Tool auch Polylinien in Koordinaten decodieren.
Geben Sie eine Adresse, eine Postleitzahl, einen Ort oder eine Sehenswürdigkeit ein, um die Karte zu zentrieren, und klicken Sie auf Suchen.
Klicken Sie auf die Karte, um eine Markierung für die Startposition Ihrer Polylinie zu platzieren.
Die Koordinaten Ihrer Markierung werden in den Feldern Breitengrad und Längengrad angezeigt.
Klicken Sie auf die Schaltfläche Standort hinzufügen.
Dadurch werden die Koordinaten der Standortliste hinzugefügt und eine Codierung im Feld Codierte Polylinie generiert.
Setzen Sie weiterhin Markierungen auf der Karte, um alle Standorte auf Ihrer Polylinie der Standortliste und der codierten Polylinie hinzuzufügen.
Koordinaten bearbeiten
Wenn Sie einen Standort löschen möchten, wählen Sie ihn in der Standortliste aus und drücken Sie Ausgewählten Standort löschen.
Wenn Sie alle Standorte löschen und von vorn beginnen möchten, klicken Sie auf Alle Standorte löschen.
Sie können keine Standorte bearbeiten. Wenn Sie einen Ort bearbeiten möchten, müssen Sie ihn löschen und noch einmal hinzufügen.
Wenn sich der Standort nicht am Ende der Liste befindet, löschen Sie ihn und alle nachfolgenden Standorte.
Polylinie durch Eingabe von Koordinaten erstellen
Wenn Sie bereits eine Liste mit Koordinaten haben, können Sie die Breiten- und Längengrade manuell in die entsprechenden Felder eingeben, anstatt Markierungen zu platzieren.
Polylinie in Koordinaten decodieren
Geben Sie den Linienzug in das Feld Encoded Polyline (Codierter Linienzug) ein.
Wenn Ihre Polylinie maskierte Zeichen enthält, klicken Sie auf das Kästchen, um die Maskierung aufzuheben.
Klicken Sie auf Polylinie decodieren.
Die Koordinaten werden in der Standortliste angezeigt und die Linie wird auf der Karte gezeichnet.
Für dieses Tool wird die Maps JavaScript API verwendet. Das Codieren und Decodieren von Pfaden wird durch die statischen Methoden encodePath() und decodePath() im Namespace google.maps.geometry.encoding übernommen.
Informationen zum Codierungsschema finden Sie unter Algorithmusformat für codierte Polylinien.
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Benötigte Informationen nicht gefunden","missingTheInformationINeed","thumb-down"],["Zu umständlich/zu viele Schritte","tooComplicatedTooManySteps","thumb-down"],["Nicht mehr aktuell","outOfDate","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Problem mit Beispielen/Code","samplesCodeIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 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."]]