Biblioteka komponentów Places UI Kit umożliwia dodawanie znanych użytkownikom Miejsc w Mapach Google do Twoich aplikacji i na stronach internetowych przy użyciu tych samych danych, które są wykorzystywane w interfejsie Places API. Zawiera on zestaw pojedynczych komponentów interfejsu, których można używać niezależnie, razem i w połączeniu z innymi interfejsami API Google Maps Platform, aby zapewnić bogate funkcje związane z Miejscami przy minimalnych kosztach i ilości kodu.
Interfejs Places UI Kit zawiera te elementy HTML do renderowania danych Miejsc:
Elementy Informacji o miejscu
(Informacje o miejscu i Informacje o miejscu w wersji kompaktowej) wyświetlają szczegóły, takie jak godziny otwarcia, strona internetowa i opinie o wybranym miejscu.
Elementy wyszukiwania miejsc (wyszukiwanie miejsc w pobliżu i wyszukiwanie tekstowe miejsc) renderują listę miejsc w odpowiedzi na zapytanie dotyczące wyszukiwania w pobliżu lub wyszukiwania tekstowego.
Podstawowy element autouzupełniania miejsca
renderuje pole wprowadzania tekstu, wyświetla prognozy miejsc na liście wyboru w interfejsie i zwraca identyfikator miejsca
wybranego miejsca.
Wysokość (eksperymentalna) – wyświetla dane o wysokości jako wartość liczbową dla pojedynczego punktu lub jako wykres wizualny dla ścieżki.
Najważniejsze funkcje i możliwości
Wykorzystaj sprawdzone rozwiązania Google, zaczynając od minimalnej ilości kodu.
Dodawaj interfejs Miejsc w Mapach Google do swoich aplikacji w niższej cenie niż w przypadku interfejsu Places API.
Wybierz dane i opcje wyświetlania, które najlepiej odpowiadają Twoim potrzebom.
Płatności
Żądania interfejsu Places UI Kit są zawsze rozliczane według
stawki za interfejs Places UI Kit API, niezależnie od użytej metody wyszukiwania i zwracanych typów danych. Na przykład wyszukiwanie w pobliżu w interfejsie Places UI Kit nie wiąże się z żadnymi dodatkowymi opłatami za wyszukiwanie w pobliżu w interfejsie Places API Pro. Podobnie żądanie szczegółów miejsca w interfejsie Places UI Kit może zwracać zdjęcia, cenę i ocenę wybranego miejsca, ale opłata zostanie naliczona tylko za żądanie szczegółów miejsca w interfejsie Places UI Kit.
[null,null,["Ostatnia aktualizacja: 2025-08-29 UTC."],[[["\u003cp\u003eThe Places UI Kit offers pre-built UI components for integrating Google Maps Places functionality into your apps and web pages.\u003c/p\u003e\n"],["\u003cp\u003eIt includes components like Place Details, Place List, and Elevation for displaying place information and elevation data.\u003c/p\u003e\n"],["\u003cp\u003eThis kit is cost-effective compared to the Places API and allows customization of data and display options.\u003c/p\u003e\n"],["\u003cp\u003eThis product or feature is currently in the Experimental (pre-GA) phase, which means it has limited support and potential for incompatibility.\u003c/p\u003e\n"]]],[],null,["Select platform: [Android](/maps/documentation/places/android-sdk/places-ui-kit-overview \"View this page for the Android platform docs.\") [iOS](/maps/documentation/places/ios-sdk/places-ui-kit-overview \"View this page for the iOS platform docs.\") [JavaScript](/maps/documentation/javascript/places-ui-kit/overview \"View this page for the JavaScript platform docs.\")\n\n\nThe Places UI Kit component library lets you bring the familiar Google Maps user experience for\nPlaces to your apps and web pages, using the same data that powers the Places API. It includes a\nset of individual UI components that can be used independently, together, and in conjunction with\nother Google Maps Platform APIs to deliver a Places-rich experience with minimal cost and code.\n\n\nThe Places UI Kit includes the following HTML elements for rendering Places data:\n- [Place Details Elements](/maps/documentation/javascript/places-ui-kit/place-details) (Place Details and Place Details Compact) render details such as opening hours, website, and reviews for a selected place.\n- [Place Search Elements](/maps/documentation/javascript/places-ui-kit/place-list) (Place Nearby Search and Place Text Search) render a list of places in response to either a nearby search or text search query.\n- [Basic Place Autocomplete Element](/maps/documentation/javascript/places-ui-kit/basic-autocomplete) renders a text input field, supplies place predictions in a UI pick list, and returns a place ID for the selected place.\n- [Elevation](/maps/documentation/javascript/places-ui-kit/elevation) (experimental) renders elevation data as a numerical value for a single point, or as a visual plot for a path.\n| **Tip:** The Places UI Kit offers extensive visual customization options at no extra charge. See [Places UI Kit Custom Styling](/maps/documentation/javascript/places-ui-kit/custom-styling) for more information.\n\nKey features and capabilities\n - Incorporate Google's trusted experience starting with minimal code.\n - Bring Google Maps UI for Places to your apps at a lower cost than the Places API.\n - Choose the data and display options that best suit your needs.\n\nBilling\n- Places UI Kit requests are always billed at the [Places UI Kit API rate](/maps/billing-and-pricing/sku-details#places_ui-kit-request-ess-sku), regardless of which search method they use or what data types they return. For example, a Places UI Kit Nearby Search won't incur any additional charges for Places API Nearby Search Pro. Similarly, a Places UI Kit Place Details request may return photos, price, and rating for a selected place, but you will only be billed for the Places UI Kit Place Details request.\n\nNext step:\n[Get started with the Places UI Kit](/maps/documentation/javascript/places-ui-kit/get-started)"]]