Enum google_maps::Language
source · pub enum Language {
Show 84 variants
Afrikaans,
Albanian,
Amharic,
Arabic,
Armenian,
Azerbaijani,
Basque,
Belarusian,
Bengali,
Bosnian,
Bulgarian,
Burmese,
Catalan,
Chinese,
ChineseHongKong,
ChineseSimplified,
ChineseTaiwan,
ChineseTraditional,
Croatian,
Czech,
Danish,
Dutch,
English,
EnglishAustralian,
EnglishCanada,
EnglishGreatBritain,
EnglishUs,
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§
Afrikaans
Albanian
Amharic
Arabic
Armenian
Azerbaijani
Basque
Belarusian
Bengali
Bosnian
Bulgarian
Burmese
Catalan
Chinese
ChineseHongKong
ChineseSimplified
ChineseTaiwan
ChineseTraditional
Croatian
Czech
Danish
Dutch
English
EnglishAustralian
EnglishCanada
EnglishGreatBritain
EnglishUs
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
Trait Implementations§
source§impl<'de> Deserialize<'de> for Language
impl<'de> Deserialize<'de> for Language
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Manual implementation of Deserialize
for serde
. This will take
advantage of the phf
-powered TryFrom
implementation for this type.
source§impl Ord for Language
impl Ord for Language
source§impl PartialEq<Language> for Language
impl PartialEq<Language> for Language
source§impl PartialOrd<Language> for Language
impl PartialOrd<Language> for Language
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moreimpl Eq for Language
impl StructuralEq for Language
impl StructuralPartialEq for Language
Auto Trait Implementations§
impl RefUnwindSafe for Language
impl Send for Language
impl Sync for Language
impl Unpin for Language
impl UnwindSafe for Language
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.