קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
מפתחים באזור הכלכלי האירופי (EEA)
ערכי תגובה מתורגמים הם שדה תגובה נוסף שמספק טקסט מתורגם לערכי פרמטרים שהוחזרו. טקסטים מותאמים לשפה המקומית מסופקים עבור משך הנסיעה, המרחק ומערכת היחידות (מטרית או אימפריאלית). אתם מבקשים ערכים מותאמים לשפה באמצעות מסכת שדות, ויכולים לציין את השפה ואת מערכת היחידות או להשתמש בערכים שה-API מסיק. פרטים נוספים זמינים במאמר בנושא LocalizedValues.
לדוגמה, אם מציינים קוד שפה לגרמנית (de) ויחידות מידה אימפריאליות, מקבלים ערך של distanceMeters 49889.7, אבל גם טקסט מותאם לשפה המקומית שמציג את מדידת המרחק בגרמנית וביחידות מידה אימפריאליות, כלומר '31 Meile'.
[[["התוכן קל להבנה","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-07-22 (שעון UTC)."],[[["\u003cp\u003eLocalized response values provide localized text for trip distance, duration, and unit system in Routes Preferred.\u003c/p\u003e\n"],["\u003cp\u003eYou can request localized values using a field mask and specify language and unit system or utilize the API's inferred values.\u003c/p\u003e\n"],["\u003cp\u003eIf unspecified, the API infers language and units based on the origin waypoint for \u003ccode\u003eComputeRoutes\u003c/code\u003e or defaults to 'en-US' and METRIC for \u003ccode\u003eComputeRouteMatrix\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eTo receive localized values, include \u003ccode\u003eroutes.localized_values\u003c/code\u003e in your field mask and optionally specify \u003ccode\u003elanguageCode\u003c/code\u003e and \u003ccode\u003eunits\u003c/code\u003e in your request.\u003c/p\u003e\n"]]],["Localized response values provide translated text for trip distance, duration, and unit system. To request them, include `routes.localized_values` in your field mask. You can specify the desired language and unit system (metric or imperial) via `languageCode` and `units`. If unspecified, the API infers them from the origin waypoint (ComputeRoutes) or defaults to 'en-US' and METRIC (ComputeRouteMatrix). The response includes localized text for distance, `duration`(with traffic model) and `staticDuration`(without traffic model).\n"],null,[]]