[][src]Enum google_maps::Language

pub enum Language {
    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,
}

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 the Accept-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
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

Trait Implementations

impl Clone for Language[src]

impl Debug for Language[src]

impl Default for Language[src]

fn default() -> Self[src]

Returns a reasonable default variant for the Language enum type.

impl<'de> Deserialize<'de> for Language[src]

impl Display for Language[src]

fn fmt(&self, f: &mut Formatter) -> Result[src]

Formats a Language enum into a string that is presentable to the end user.

impl Eq for Language[src]

impl<'_> From<&'_ Language> for String[src]

fn from(language: &Language) -> String[src]

Converts a Language enum to a String that contains a language code.

impl Hash for Language[src]

impl Ord for Language[src]

impl PartialEq<Language> for Language[src]

impl PartialOrd<Language> for Language[src]

impl Serialize for Language[src]

impl StructuralEq for Language[src]

impl StructuralPartialEq for Language[src]

impl<'_> TryFrom<&'_ str> for Language[src]

type Error = Error

The type returned in the event of a conversion error.

fn try_from(language: &str) -> Result<Language, Error>[src]

Gets a Language enum from a String that contains a supported language code.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,