Map localization
The API lets you display maps that are localized in various languages with allowances for the 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
— 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 miles.
Example of loading a map in English:
<script src="https://js.api.mappable.world/v3/?apikey=YOUR_API_KEY&lang=en_US"/>