Enum google_maps::Language [−][src]
pub enum Language {
Show 81 variants
Afrikaans,
Albanian,
Amharic,
Arabic,
Armenian,
Azerbaijani,
Basque,
Belarusian,
Bengali,
Bosnian,
Bulgarian,
Burmese,
Catalan,
Chinese,
ChineseSimplified,
ChineseHongKong,
ChineseTraditional,
Croatian,
Czech,
Danish,
Dutch,
English,
EnglishAustralian,
EnglishGreatBritain,
Estonian,
Farsi,
Finnish,
Filipino,
French,
FrenchCanada,
Galician,
Georgian,
German,
Greek,
Gujarati,
Hebrew,
Hindi,
Hungarian,
Icelandic,
Indonesian,
Italian,
Japanese,
Kannada,
Kazakh,
Khmer,
Korean,
Kyrgyz,
Lao,
Latvian,
Lithuanian,
Macedonian,
Malay,
Malayalam,
Marathi,
Mongolian,
Nepali,
Norwegian,
Polish,
Portuguese,
PortugueseBrazil,
PortuguesePortugal,
Punjabi,
Romanian,
Russian,
Serbian,
Sinhalese,
Slovak,
Slovenian,
Spanish,
SpanishLatinAmerica,
Swahili,
Swedish,
Tamil,
Telugu,
Thai,
Turkish,
Ukrainian,
Urdu,
Uzbek,
Vietnamese,
Zulu,
}
Expand description
Specifies the language in which to return results.
Languages
-
See the list of supported languages. Google often updates the supported languages, so this list may not be exhaustive.
-
If
language
is not supplied, the API attempts to use the preferred language as specified in theAccept-Language
header, or the native language of the domain from which the request is sent. -
The API does its best to provide a street address that is readable for both the user and locals. To achieve that goal, it returns street addresses in the local language, transliterated to a script readable by the user if necessary, observing the preferred language. All other addresses are returned in the preferred language. Address components are all returned in the same language, which is chosen from the first component.
-
If a name is not available in the preferred language, the API uses the closest match.
-
The preferred language has a small influence on the set of results that the API chooses to return, and the order in which they are returned. The geocoder interprets abbreviations differently depending on language, such as the abbreviations for street types, or synonyms that may be valid in one language but not in another. For example, utca and tér are synonyms for street in Hungarian.
By default the API will attempt to load the most appropriate language based on the users location or browser settings. Some APIs allow you to explicitly set a language when you make a request. More information on how to set the language is available in the documentation for each API:
Supported Languages: Google often updates supported languages. This list may not be exhaustive and is subject to change.
You can see what the map will look like in any of the languages listed above in this sample application.
Variants
Trait Implementations
Deserialize this value from the given Serde deserializer. Read more
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Language
impl UnwindSafe for Language
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more