Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Entwickler im Europäischen Wirtschaftsraum (EWR)
Die Geocoding API ist ein Dienst, der einen Ort als Adresse, Breiten- und Längengrad oder Orts-ID akzeptiert. Die Adresse wird in Breiten- und Längengradkoordinaten und eine Orts-ID umgewandelt oder Breiten- und Längengradkoordinaten oder eine Orts-ID in eine Adresse.
Vorteile der Geocoding API
Verwenden Sie die Geocoding API für Websites oder mobile Anwendungen, wenn Sie Geocoding-Daten in Karten verwenden möchten, die von einer der Google Maps Platform APIs bereitgestellt werden.
Mit der Geocoding API können Sie Adressen verwenden, um Markierungen auf einer Karte zu platzieren, oder eine Markierung auf einer Karte in eine Adresse umwandeln. Dieser Dienst ist für das Geocodieren von vordefinierten, statischen Adressen zum Platzieren von Anwendungsinhalten auf einer Karte konzipiert.
Was Sie mit der Geocoding API tun können
Mit der Geocoding API können Sie Geocoding-Daten für eine oder mehrere Adressen oder Orte abrufen, darunter:
Geografische Koordinaten für Adressen.
Adressen für Breiten- und Längengrade
Adressen für Orts-IDs
Sie können festlegen, wo die Ergebnisse angezeigt werden sollen, und sie auf eine bestimmte Region, ein bestimmtes Bundesland oder eine bestimmte Postleitzahl beschränken.
Funktionsweise der Geocoding API
Die Geocoding API bietet sowohl Geocoding als auch umgekehrte Geocodierung:
Geocoding: Hiermit werden Adressen wie „1600 Amphitheatre Parkway, Mountain View, CA, USA“ in Breiten- und Längengradkoordinaten oder Orts-IDs umgewandelt. Mit diesen Koordinaten können Sie Markierungen auf einer Karte platzieren oder die Karte im Ansichtsfenster zentrieren oder neu positionieren.
Umgekehrte Geocodierung: Breiten-/Längengradkoordinaten oder eine Orts-ID in eine visuell lesbare Adresse umwandeln. Sie können Adressen für eine Vielzahl von Szenarien verwenden, z. B. für Lieferungen oder Abholungen.
In der folgenden Demo wird der Geocoding-Dienst über die Maps JavaScript API verwendet, um die Funktionsweise der Geocoding API zu veranschaulichen. Öffnen Sie die Karte in einem separaten Tab, um weitere Optionen und Details zu sehen.
Ressourcen
In der folgenden Tabelle sind die über die Geocoding API verfügbaren Ressourcen sowie die Daten zusammengefasst, die die einzelnen Endpunkte zurückgeben.
Gibt Adresse, Adresskomponenten und Adresstypen zurück. Weitere Informationen finden Sie im Leitfaden für Anfragen und Antworten zur umgekehrten Geocodierung unter Antworten zur umgekehrten Geocodierung.
Gibt Adresse, Adresskomponenten und Adresstypen zurück. Weitere Informationen finden Sie im Leitfaden für Anfragen und Antworten zur Geocodierung von Orten unter Umgekehrte Geocodierungsantworten.
Sobald Sie einen API-Schlüssel haben, können Sie die Geocoding API direkt mit cURL oder einem Browser testen. Sie müssen die richtigen Suchparameter für die Adress- oder Komponentensuche angeben. Weitere Informationen finden Sie unter Parameter für die Geocodierung.
3
Umgekehrte Geocodierungsanfrage testen
Geben Sie die Breiten-/Längengradkoordinaten zusammen mit Ihrem API-Schlüssel an, um Adresskomponenten für die nächstgelegene visuell lesbare Adresse für diesen Standort zu erhalten.
Weitere Informationen finden Sie unter Anfragen zur umgekehrten Geocodierung.
4
Grundlegendes zu Antworten
Alle Endpunkte in der Geocoding API geben dieselben Daten entweder im JSON- oder XML-Format zurück.
Eine Erläuterung der Daten, Statuscodes und Fehlermeldungen finden Sie unter Geocoding-Antworten.
5
Geocodierungsdaten in Ihre eigene App einbinden
Sie können Geocoding-Daten verwenden, um Adressen von Kartenmarkierungen abzurufen oder Markierungen auf einer Karte anhand einer bekannten Adresse bereitzustellen.
Verfügbare Clientbibliotheken
Sie können diese API in der Sprache Ihrer Wahl über eine der folgenden Clientbibliotheken aufrufen:
Die Java-, Python-, Go- und Node.js-Clients für Google Maps-Dienste sind von der Community unterstützte Clientbibliotheken, die unter der Apache 2.0-Lizenz als Open Source zur Verfügung gestellt werden.
Sie können sie auf GitHub herunterladen. Dort finden Sie auch Installationsanleitungen und Beispielcode.
[[["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-09-05 (UTC)."],[[["\u003cp\u003eThe Geocoding API converts addresses into geographic coordinates (latitude and longitude) and vice versa.\u003c/p\u003e\n"],["\u003cp\u003eThis API is ideal for placing markers on maps based on addresses and retrieving addresses from map locations for static content, not dynamic user input.\u003c/p\u003e\n"],["\u003cp\u003eYou can use the Geocoding API to find geographic coordinates for addresses, addresses for coordinates, and addresses for Place IDs.\u003c/p\u003e\n"],["\u003cp\u003eThe API supports both geocoding (address to coordinates) and reverse geocoding (coordinates to address).\u003c/p\u003e\n"],["\u003cp\u003eClient libraries are available in Java, Python, Go, and Node.js for easy integration into your applications.\u003c/p\u003e\n"]]],[],null,["**European Economic Area (EEA) developers** If your billing address is in the European Economic Area, effective on 8 July 2025, the [Google Maps Platform EEA Terms of Service](https://cloud.google.com/terms/maps-platform/eea) will apply to your use of the Services. Functionality varies by region. [Learn more](/maps/comms/eea/faq). \n\nThe Geocoding API is a service that accepts a place as an\naddress, latitude and longitude coordinates, or Place ID. It converts the\naddress into latitude and longitude coordinates and a Place ID, or converts\nlatitude and longitude coordinates or a Place ID into an address.\n| **Note** : If you only want plus codes and don't want to use an API key, you can use the [Plus codes API](https://github.com/google/open-location-code/tree/main/Documentation).\n\nWhy use the Geocoding API\n\nUse the Geocoding API for website or mobile application when you want to use\ngeocoding data within maps provided by one of the Google Maps Platform APIs.\nWith the Geocoding API, you use addresses to place markers on a map, or\nconvert a marker on a map to an address. This service is designed for geocoding\n**predefined, static addresses** for placement of application\ncontent on a map.\n| This service is **not** designed to respond directly to user\n| input. To do dynamic geocoding, for example, in a user interface, see the\n| [Maps JavaScript API\n| client geocoder](/maps/documentation/javascript/geocoding) and/or the\n| [Google Play services Location APIs](https://developer.android.com/google/play-services/location.html).\n\nWhat you can do with the Geocoding API\n\nYou can use the Geocoding API to obtain geocoding data for one or more addresses or\nplaces, including the following:\n\n- Geographic coordinates for addresses.\n- Addresses for sets of latitude and longitude coordinates.\n- Addresses for place IDs.\n\nYou can control where the results appear and constrain the results to a particular region,\ncounty, or postal code.\n\nHow the Geocoding API works\n\nThe Geocoding API does both geocoding and reverse geocoding:\n\n- [**Geocoding**](/maps/documentation/geocoding/requests-geocoding): Converts addresses such as \"1600 Amphitheatre Parkway, Mountain View, CA\" into latitude and longitude coordinates or Place IDs. You can use these coordinates to place markers on a map, or to center or reposition the map within the view frame.\n- [**Reverse geocoding**](/maps/documentation/geocoding/requests-reverse-geocoding): Converts latitude/longitude coordinates or a Place ID into a human-readable address. You can use addresses for a variety of scenarios, including deliveries or pickups.\n\nThe following demo uses the Geocoding Service through the Maps JavaScript API\nto demonstrate how the Geocoding API works. Open the map in a separate tab\nto see more options and details.\n\nResources\n\nThe following table summarizes the resources available through the\nGeocoding API along with the data each endpoint returns.\n\n| Data resources | Data returned | Return format |\n|-------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------|\n| [Geocoding](/maps/documentation/geocoding/requests-geocoding) | Returns address, address components, and address types. See [Results](/maps/documentation/geocoding/requests-geocoding#results) in the *Geocoding request and response* guide. | - JSON - XML |\n| [Reverse geocoding](/maps/documentation/geocoding/requests-reverse-geocoding) | Returns address, address components, and address types. See [Reverse geocoding responses](/maps/documentation/geocoding/requests-reverse-geocoding#reverse-response) in the Reverse geocoding request and response guide. | - JSON - XML |\n| [Place geocoding](/maps/documentation/geocoding/requests-places-geocoding) | Returns address, address components, and address types. See [Reverse geocoding responses](/maps/documentation/geocoding/requests-places-geocoding) in the Place geocoding request and response guide. | - JSON - XML |\n| - JSON - XML |\n\nHow to use the Geocoding API\n\n|---|---------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| 1 | **Get set up.** | Start with [Set up your Google Cloud project](/maps/documentation/geocoding/cloud-setup) and complete the setup instructions that follow. |\n| 2 | **Try a geocoding request** | Once you have an API key, you can start testing out the Geocoding API directly from curl or a browser. You'll need to supply the correct lookup parameters for address or component lookups. See [Geocoding parameters](/maps/documentation/geocoding/requests-geocoding#geocoding-lookup) for details. |\n| 3 | **Try a reverse geocoding request** | Supply latitude/longitude coordinates along with your API key to obtain address components for the closest human-readable address for that location. See [Reverse geocoding requests](/maps/documentation/geocoding/requests-reverse-geocoding#reverse-requests) for details. |\n| 4 | **Understand response basics** | All endpoints in the Geocoding API return the same data in either JSON or XML. See [Geocoding responses](/maps/documentation/geocoding/requests-geocoding#GeocodingResponses) for an explanation of the data, status codes, and error messages. |\n| 5 | **Incorporate geocoding data into your own app!** | You can use geocoding data to obtain addresses from map markers or to supply markers on a map based on a known address. |\n\nAvailable client libraries\n\nCall this API in the language of\nyour choice through one of the following client libraries:\n\n- [Java\n Client for Google Maps Services](https://github.com/googlemaps/google-maps-services-java)\n- [Python\n Client for Google Maps Services](https://github.com/googlemaps/google-maps-services-python)\n- [Go Client\n for Google Maps Services](https://github.com/googlemaps/google-maps-services-go)\n- [Node.js\n Client for Google Maps Services](https://github.com/googlemaps/google-maps-services-js)\n\nThe Java Client, Python Client, Go Client and Node.js Client for Google Maps\nServices are community-supported client libraries, open sourced under the\n[Apache 2.0 License](http://www.apache.org/licenses/LICENSE-2.0).\nDownload them from GitHub, where you can also find installation instructions and sample code.\n\nWhat's next\n\n- **Start using the Geocoding API** : Go to [Set up your\n Google Cloud project](/maps/documentation/geocoding/cloud-setup).\n- **Get started with sample requests and responses** : Go to [Geocoding requests and responses](/maps/documentation/geocoding/requests-geocoding)\n- **Follow best practices** : Go to [Geocoding Addresses Best\n Practices](/maps/documentation/geocoding/best-practices)."]]