Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Ta strona zawiera listę obsługiwanych wartości właściwości types.
Tabela 1 zawiera typy obsługiwane w przypadku wyszukiwania miejsc. Mogą one być zwracane w ramach wyników z danymi o miejscach oraz w ramach przewidywanej autouzupełniania miejsc.
Tabela 2 zawiera dodatkowe typy, które mogą być zwracane w wynikach szczegółów miejsca i w ramach podpowiedzi autouzupełniania.
Tabela 3 zawiera listę typów, których możesz używać w zapytaniach autouzupełniania.
Tabela 1. Typy miejsc
Wartości typu miejsca w tabeli 1 są używane w taki sposób:
w ramach odpowiedzi z informacjami o miejscu; W żądaniu należy podać odpowiednie pole danych „types”.
W ramach przewidywania miejsc (starszego) w autouzupełnianiu. Więcej informacji o zasadach korzystania z tych wartości znajdziesz w artykule Autouzupełnianie miejsc (starsza wersja).
W parametrze type w wyszukiwaniu miejsc (tylko w interfejsie Places API) – aby ograniczyć wyniki do miejsc pasujących do określonego typu.
accounting
airport
amusement_park
aquarium
art_gallery
atm
bakery
bank
bar
beauty_salon
bicycle_store
book_store
bowling_alley
bus_station
cafe
campground
car_dealer
car_rental
car_repair
car_wash
casino
cemetery
church
city_hall
clothing_store
convenience_store
courthouse
dentist
department_store
doctor
drugstore
electrician
electronics_store
embassy
fire_station
florist
funeral_home
furniture_store
gas_station
gym
hair_care
hardware_store
hindu_temple
home_goods_store
hospital
insurance_agency
jewelry_store
laundry
lawyer
library
light_rail_station
liquor_store
local_government_office
locksmith
lodging
meal_delivery
meal_takeaway
mosque
movie_rental
movie_theater
moving_company
museum
night_club
painter
park
parking
pet_store
pharmacy
physiotherapist
plumber
police
post_office
primary_school
real_estate_agency
restaurant
roofing_contractor
rv_park
school
secondary_school
shoe_store
shopping_mall
spa
stadium
storage
store
subway_station
supermarket
synagogue
taxi_stand
tourist_attraction
train_station
transit_station
travel_agency
university
veterinary_care
zoo
Tabela 2. Dodatkowe typy zwracane przez usługę Miejsca
Wartości typu miejsca w tabeli 2 są używane w taki sposób:
Jako część wyniku żądania szczegółów miejsca (np. wywołania funkcji fetchPlace()) lub w dowolnym miejscu, w którym zwracany jest wynik wyszukiwania miejsca. W żądaniu należy podać odpowiednie pole danych „types”.
W ramach przewidywania miejsc (starszego) w autouzupełnianiu. Więcej informacji o zasadach korzystania z tych wartości znajdziesz w artykule Autouzupełnianie miejsc.
Aby oznaczyć elementy adresu.
Więcej informacji o tych typach znajdziesz w artykule Typy adresów.
administrative_area_level_1
administrative_area_level_2
administrative_area_level_3
administrative_area_level_4
administrative_area_level_5
administrative_area_level_6
administrative_area_level_7
archipelago
colloquial_area
continent
country
establishment
finance
floor
food
general_contractor
geocode
health
intersection
landmark
locality
natural_feature
neighborhood
place_of_worship
plus_code
point_of_interest
political
post_box
postal_code
postal_code_prefix
postal_code_suffix
postal_town
premise
room
route
street_address
street_number
sublocality
sublocality_level_1
sublocality_level_2
sublocality_level_3
sublocality_level_4
sublocality_level_5
subpremise
town_square
Tabela 3. Zbiory typów obsługiwane w zapytaniach do usługi Autouzupełnianie miejsc (starsza wersja)
Aby ograniczyć wyniki do określonego typu, użyj wartości typu Miejsce podanych w tabeli 3 lub wartości podanych w tabeli 1 i 2 w ramach żądania Autouzupełnianie miejsc (starsza wersja).
W żądaniu może być podany tylko jeden typ z tabeli 3. Jeśli określisz wartość z tabeli 3, nie możesz określić wartości z tabeli 1 ani 2.
Więcej informacji o zasadach dotyczących używania tych wartości znajdziesz w artykule Autouzupełnianie miejsc.
Obsługiwane typy:
geocode instruuje usługę Autouzupełnianie miejsc (starsza wersja), aby zwracała tylko wyniki geokodowania, a nie wyniki dotyczące firm. Zazwyczaj używasz tego żądania, aby rozstrzygnąć wyniki, gdy podana lokalizacja może być niejednoznaczna.
address instruuje usługę Autouzupełnianie miejsc (starsza wersja), aby zwracała tylko wyniki geokodowania z dokładnym adresem. Zazwyczaj używasz tego zapytania, gdy wiesz, że użytkownik będzie szukać pełnego adresu.
establishment instruuje usługę Autouzupełnianie miejsc (wycofana), aby zwracała tylko wyniki biznesowe.
Kolekcja typu (regions) instruuje usługę Places, aby zwróciła wyniki pasujące do tych typów:
locality
sublocality
postal_code
country
administrative_area_level_1
administrative_area_level_2
Typ zbioru danych (cities) instruuje usługę Miejsca, aby zwracała wyniki pasujące do locality lub administrative_area_level_3.
[null,null,["Ostatnia aktualizacja: 2025-08-06 UTC."],[],[],null,["This page lists the supported values for the `types` property.\n\n- [Table 1](#table1) lists the types that are supported for place searches, and can be returned with Place details results, and as part of autocomplete place predictions.\n- [Table 2](#table2) lists additional types that can be returned with Place details results, and as part of autocomplete place predictions.\n- [Table 3](#table3) lists types you can use in place autocomplete requests.\n\nTable 1: Place types\n\nThe Place type values in Table 1 are used in the following ways:\n\n- As part of a Place details response. The request must specify the appropriate \"types\" [data field](/maps/documentation/javascript/legacy/place-data-fields).\n- As part of an Place Autocomplete (Legacy) place prediction. For more information on the rules for using these values, see [Place Autocomplete (Legacy)](/maps/documentation/javascript/legacy/place-autocomplete#constraining-autocomplete).\n- In the `type` parameter for [place searches](/maps/documentation/places/web-service/search) (Places API only), to restrict the results to places matching the specified type.\n\n- `accounting`\n- `airport`\n- `amusement_park`\n- `aquarium`\n- `art_gallery`\n- `atm`\n- `bakery`\n- `bank`\n- `bar`\n- `beauty_salon`\n- `bicycle_store`\n- `book_store`\n- `bowling_alley`\n- `bus_station`\n- `cafe`\n- `campground`\n- `car_dealer`\n- `car_rental`\n- `car_repair`\n- `car_wash`\n- `casino`\n- `cemetery`\n- `church`\n- `city_hall`\n- `clothing_store`\n- `convenience_store`\n- `courthouse`\n- `dentist`\n- `department_store`\n- `doctor`\n- `drugstore`\n- `electrician`\n- `electronics_store`\n- `embassy`\n- `fire_station`\n- `florist`\n- `funeral_home`\n- `furniture_store`\n- `gas_station`\n- `gym`\n- `hair_care`\n- `hardware_store`\n- `hindu_temple`\n- `home_goods_store`\n- `hospital`\n- `insurance_agency`\n- `jewelry_store`\n- `laundry` \n- `lawyer`\n- `library`\n- `light_rail_station`\n- `liquor_store`\n- `local_government_office`\n- `locksmith`\n- `lodging`\n- `meal_delivery`\n- `meal_takeaway`\n- `mosque`\n- `movie_rental`\n- `movie_theater`\n- `moving_company`\n- `museum`\n- `night_club`\n- `painter`\n- `park`\n- `parking`\n- `pet_store`\n- `pharmacy`\n- `physiotherapist`\n- `plumber`\n- `police`\n- `post_office`\n- `primary_school`\n- `real_estate_agency`\n- `restaurant`\n- `roofing_contractor`\n- `rv_park`\n- `school`\n- `secondary_school`\n- `shoe_store`\n- `shopping_mall`\n- `spa`\n- `stadium`\n- `storage`\n- `store`\n- `subway_station`\n- `supermarket`\n- `synagogue`\n- `taxi_stand`\n- `tourist_attraction`\n- `train_station`\n- `transit_station`\n- `travel_agency`\n- `university`\n- `veterinary_care`\n- `zoo`\n\nTable 2: Additional types returned by the Places service\n\nThe Place type values in Table 2 are used in the following ways:\n\n- As part of the result of a Place details request (for example, a call to `fetchPlace()`), or anywhere a Place result is returned. The request must specify the appropriate \"types\" [data field](/maps/documentation/javascript/legacy/place-data-fields).\n| **Note:** Although `geocode` and `establishment` are part of Table 2, they cannot be combined with any other type in Tables 1, 2, or 3 in Place Autocomplete (Legacy) request filters.\n- As part of an Place Autocomplete (Legacy) place prediction. For more information on the rules for using these values, see [Places Autocomplete](/maps/documentation/javascript/legacy/places-autocomplete#constrain-place-types).\n- To denote address components.\n\nFor more details on these types, refer to\n[Address Types](/maps/documentation/geocoding/requests-geocoding#Types).\n**Note:** The types below are **not supported** in the `type` filter of a place search. \n- `administrative_area_level_1`\n- `administrative_area_level_2`\n- `administrative_area_level_3`\n- `administrative_area_level_4`\n- `administrative_area_level_5`\n- `administrative_area_level_6`\n- `administrative_area_level_7`\n- `archipelago`\n- `colloquial_area`\n- `continent`\n- `country`\n- `establishment`\n- `finance`\n- `floor`\n- `food`\n- `general_contractor`\n- `geocode`\n- `health`\n- `intersection`\n- `landmark`\n- `locality`\n- `natural_feature`\n- `neighborhood`\n- `place_of_worship` \n- `plus_code`\n- `point_of_interest`\n- `political`\n- `post_box`\n- `postal_code`\n- `postal_code_prefix`\n- `postal_code_suffix`\n- `postal_town`\n- `premise`\n- `room`\n- `route`\n- `street_address`\n- `street_number`\n- `sublocality`\n- `sublocality_level_1`\n- `sublocality_level_2`\n- `sublocality_level_3`\n- `sublocality_level_4`\n- `sublocality_level_5`\n- `subpremise`\n- `town_square`\n\nTable 3: Type collections supported in Place Autocomplete (Legacy) requests\n\nUse the Place type values in Table 3, or the values in Table 1 and Table 2, as part\nof a Place Autocomplete (Legacy) request to restrict the results to a specific type.\n\nOnly a single type from Table 3 is allowed in the request. If you do specify a value from Table 3,\nyou cannot specify a value from Table 1 or Table 2.\n\nFor more information on the rules for using these values, see\n\n[Places Autocomplete](/maps/documentation/javascript/legacy/places-autocomplete#constrain-place-types).\n\n\nThe supported types are:\n\n- `geocode` instructs the Place Autocomplete (Legacy) service to return only geocoding results, rather than business results. Generally, you use this request to disambiguate results where the location specified may be indeterminate.\n- `address` instructs the Place Autocomplete (Legacy) service to return only geocoding results with a precise address. Generally, you use this request when you know the user will be looking for a fully specified address.\n- `establishment` instructs the Place Autocomplete (Legacy) service to return only business results.\n- The `(regions)` type collection instructs the Places service to return any result matching the following types:\n - `locality`\n - `sublocality`\n - `postal_code`\n - `country`\n - `administrative_area_level_1`\n - `administrative_area_level_2`\n- The `(cities)` type collection instructs the Places service to return results that match `locality` or `administrative_area_level_3`."]]