רוצים לנסות? כדי לבדוק את הבקשה הזו, מזינים את כתובת ה-URL בדפדפן האינטרנט – חשוב להחליף את YOUR_API_KEY במפתח ה-API בפועל.
בתגובה מוצגים המרחק והמשך הזמן בין מקורות היעד שצוינו.
[[["התוכן קל להבנה","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-01-14 (שעון UTC)."],[[["This page provides a sample request and response for the Distance Matrix API, demonstrating how to calculate the distance and travel time between two locations."],["The example uses Washington, DC and New York City, NY as locations and showcases the request URL, cURL command, and expected JSON/XML responses."],["Users are encouraged to try the example with their own API key and explore further documentation on building requests and understanding responses."]]],["The content demonstrates requesting distance data between Washington, DC, and New York City using the Google Maps Distance Matrix API. The request URL and cURL command are provided, requiring the user to replace `YOUR_API_KEY` with their own. The API returns distance (228 mi) and duration (3 hours 55 mins) data in both JSON and XML formats. Users can test the URL and further understand responses, and can learn to build custom URL requests through provided documentation.\n"]]