Address

Adres miejsca.

Zapis JSON
{
  "formattedAddress": {
    object (FormattedAddress)
  },
  "addressComponents": [
    {
      object (AddressComponent)
    }
  ]
}
Pola
formattedAddress

object (FormattedAddress)

Pełny, czytelny dla człowieka adres tego miejsca.

addressComponents[]

object (AddressComponent)

Lista komponentów adresu.

FormattedAddress

Pełny, czytelny dla człowieka adres jednostki zawierającej tę wiadomość.

Zapis JSON
{
  "lines": [
    string
  ]
}
Pola
lines[]

string

Wiersze tekstu opisujące adres. Wymagany jest co najmniej 1 wiersz.

AddressComponent

Składnik adresu opisujący jedną część adresu.

Zapis JSON
{
  "componentText": string,
  "componentTextShortForm": string,
  "types": [
    string
  ]
}
Pola
componentText

string

Nazwa tego komponentu opisująca część adresu. Przykłady to „Kalifornia”, „Emilii Plater 23”.

componentTextShortForm

string

Skrócona forma tekstu komponentu. Przykłady: „CA” dla „Kalifornii” i „US” w przypadku Polski.

types[]

string

Typy tego komponentu opisujące część adresu. Listę obsługiwanych typów znajdziesz na https://developers.google.com/places/web-service/supported_types#table2.