Das Beispiel-Repository für das Places SDK for Android auf GitHub enthält Beispiel-Apps, die die Verwendung des Places SDK for Android demonstrieren.
Sie können die App importieren und erstellen, Ihren API-Schlüssel hinzufügen, sich die Demo ansehen und den Beispielcode als Ausgangspunkt für Ihre App verwenden.
Wenn Sie die Beispiel-App starten, wird eine Liste der verfügbaren Samples angezeigt, die Sie auf Ihrem eigenen Gerät ausführen können. Wählen Sie eine der Optionen aus. Klicken Sie beispielsweise auf Place Autocomplete.
Beispiele klonen und ausführen
Um dieses Beispiel lokal auszuführen, ist Git erforderlich. Mit dem folgenden Befehl wird das Repository der Beispiel-App geklont.
[[["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-04-08 (UTC)."],[[["This page provides instructions for setting up and running sample apps that demonstrate the use of the Places SDK for Android."],["The sample apps are available in both Kotlin and Java, accessible through a GitHub repository."],["You'll need to clone the repository, import the project into Android Studio, and configure your API keys to run the examples."],["The provided samples showcase various functionalities like Place Autocomplete, offering a starting point for developing your own Android apps with Places SDK."],["Troubleshooting information is included if the map doesn't display, guiding you to verify the API key configuration."]]],[]]