**European Economic Area (EEA) developers**

> [!NOTE]
> If your billing address is in the European Economic Area, effective on 8 July 2025, the [Google Maps Platform EEA Terms of Service](https://cloud.google.com/terms/maps-platform/eea) will apply to your use of the Services. Functionality varies by region. [Learn more](https://developers.google.com/maps/comms/eea/faq.md.txt).

<br />

<br />

<br />

Localized response values are an additional response field that provides
localized text for returned parameter values. Localized text is provided for
trip duration, distance, and unit system (metric or imperial). You request
localized values using a field mask, and can either specify the language and
unit system or use the values inferred by the API. For details, see
[LocalizedValues](https://developers.google.com/maps/documentation/routes/reference/rest/v2/TopLevel/computeRoutes.md.txt#routelegsteplocalizedvalues).

For example, if you specify a language code for German (de) and imperial
units, you get a value for `distanceMeters` of 49889.7,
but also localized text providing that distance measurement in German and
imperial units, so "31 Meile."

Here is an example of what you would see for localized values:

```restructuredtext
{ "localized_values":
  {
    "distance": { "text": "31,0 Meile/n" },
    "duration": { "text": 38 Minuten}.
    "static_duration": { "text": 36 Minuten}.
  }
}
```

> [!NOTE]
> Note: You get two values for the expected duration: `duration` uses the traffic model you specify, and `static_duration` does not take traffic into account. So, if your requested traffic model is `TRAFFIC_UNAWARE` these times are identical.

If you don't specify the language or unit system, the API infers the language
and units as follows:

- The `ComputeRoutes` method infers the location and distance units from the origin waypoint. So for a routing request in the US, the API infers `en-US` language and `IMPERIAL` units.
- The `ComputeRouteMatrix` method defaults to 'en-US' language and METRIC units.

## To request localized values

To include localized values in the response, you need to do the following:

1. Request localized values in your field mask. For example:

   **REST**

   ```restructuredtext
   -H X-Goog-FieldMask: localizedValues
   ```

   **RPC**

   ```
   const (fieldMask = "localizedValues")
   ```
2. If you want the localized values in a specific language or unit system,
   specify the language code and unit system:

   ```console
   "languageCode": "language_code",
   "units": "METRIC | IMPERIAL",
   ```

   For example, this code snippet specifies the language as German (de), and
   METRIC units:

   ```console
   "languageCode": "de",
   "units": "METRIC",
   ```

   For more information, see
   [Language Support](https://developers.google.com/maps/faq.md.txt#languagesupport).