במאגר הדוגמאות של Places SDK ל-Android ב-GitHub מפורטות אפליקציות לדוגמה שממחישות את השימוש ב-Places SDK ל-Android.
לייבא ולבנות את האפליקציה, להוסיף את מפתח ה-API, להציג את הדמו ולהשתמש בקוד לדוגמה שסופק בתור נקודת התחלה לאפליקציה.
כשמריצים את אפליקציית הדוגמה, מוצגת רשימה של דוגמאות זמינות שאפשר להריץ במכשיר שלכם. בוחרים באחת מהאפשרויות. לדוגמה, לוחצים על השלמה אוטומטית של מיקום.
יצירת עותקים מקודמים והרצה של הדוגמאות
כדי להריץ את הדוגמה הזו באופן מקומי, צריך Git. הפקודה הבאה יוצרת עותק (clone) של מאגר האפליקציה לדוגמה.
[[["התוכן קל להבנה","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-06-29 (שעון 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."]]],[]]