כדי לקרוא לשירות הזה, מומלץ להשתמש בספריות הלקוח ש-Google מספקת. אם האפליקציה שלכם צריכה להשתמש בספריות משלכם כדי לקרוא לשירות הזה, צריך להשתמש במידע הבא כששולחים את בקשות ה-API.
מסמך Discovery
מסמך Discovery הוא מפרט שקריא למכונות, שמתאר ממשקי API ל-REST ומאפשר שימוש בהם. הוא משמש ליצירת ספריות לקוח, יישומי פלאגין ל-IDE וכלים אחרים שמקיימים אינטראקציה עם Google APIs. שירות אחד יכול לספק כמה מסמכי גילוי. השירות הזה מספק את מסמך הגילוי הבא:
נקודת קצה לשירות היא כתובת URL בסיסית שצוינה בה כתובת הרשת של שירות API. לשירות אחד יכולות להיות כמה נקודות קצה של שירות. לשירות הזה יש את נקודת הקצה הבאה, וכל מזהי ה-URI שבהמשך הם יחסיים לנקודת הקצה הזו:
[[["התוכן קל להבנה","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-02-27 (שעון UTC)."],[[["The Solar API provides access to solar information for buildings and regions, including the ability to find the closest building to a point and get solar data for a region."],["The Solar API offers REST resources for building insights, data layers, and GeoTIFF image retrieval."],["Developers can interact with the Solar API using Google-provided client libraries or their own libraries, utilizing the provided discovery document and service endpoint."],["The service endpoint for the Solar API is `https://solar.googleapis.com`, and all URIs are relative to this endpoint."]]],["The Solar API, accessible via `solar.googleapis.com`, offers three REST resources: `v1.buildingInsights`, `v1.dataLayers`, and `v1.geoTiff`. `v1.buildingInsights` uses the `findClosest` method to locate the nearest building to a specific point. `v1.dataLayers` utilizes the `get` method to retrieve solar information for a location's surrounding area. `v1.geoTiff` employs the `get` method to obtain an image by its unique ID. The API service endpoint is `https://solar.googleapis.com`.\n"]]