Maps SDK for Web

Class Locale

Represent a locale configuration.

Methods

getLabel( ): String

Returns the label of the locale.

Returns

getLanguageCode( ): String

Returns the language's code of the locale.

Returns

getValueFor([serviceType]): String

Returns the language's code for the given service type.

Parameters
Name Description Required Type/Values Default
serviceType The service code. But we aware of these cases:
  • If an invalid code is given the language's code for the service "search" will be return.
  • If no value is given it will return the same value as the method getLanguageCode.
No "routing" | "search" | "traffic" | "maps" None
Returns