Map localization
The API can be used to display maps that are localized in various languages and reflect differences in specific countries.
For example, you can display a map with labels in English and indicate distances in miles.
To set a language for the map, pass the lang parameter when connecting the API:
lang=language_region
-
language: Two-letter language code. Specified in ISO 639-1 format. Sets the language for objects on the map (toponyms and controls). -
region: The two-letter country code. Specified in ISO 3166-1 format. Determines regional settings, such as measurement units (for indicating distances between objects or driving speeds on a route).Note.
Distance is shown in kilometers for the
RU,UA, andTRregions, and in miles for theUSregion.
The following locales are currently supported:
lang=ru_RUlang=ru_UAlang=uk_UAlang=tr_TRlang=en_RUlang=en_USlang=he_ILlang=en_IL
Example of loading a map in Russian:
<script src="https://api-maps.yandex.ru/v3/?apikey=YOUR_API_KEY&lang=en_US"/>