CINXE.COM

Place Autocomplete  |  Places API  |  Google for Developers

<!doctype html> <html lang="en" dir="ltr"> <head> <meta name="google-signin-client-id" content="721724668570-nbkv1cfusk7kk4eni4pjvepaus73b13t.apps.googleusercontent.com"> <meta name="google-signin-scope" content="profile email https://www.googleapis.com/auth/developerprofiles https://www.googleapis.com/auth/developerprofiles.award"> <meta property="og:site_name" content="Google for Developers"> <meta property="og:type" content="website"><meta name="theme-color" content="#fff"><meta charset="utf-8"> <meta content="IE=Edge" http-equiv="X-UA-Compatible"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="manifest" href="/_pwa/developers/manifest.json" crossorigin="use-credentials"> <link rel="preconnect" href="//www.gstatic.com" crossorigin> <link rel="preconnect" href="//fonts.gstatic.com" crossorigin> <link rel="preconnect" href="//fonts.googleapis.com" crossorigin> <link rel="preconnect" href="//apis.google.com" crossorigin> <link rel="preconnect" href="//www.google-analytics.com" crossorigin><link rel="stylesheet" href="//fonts.googleapis.com/css?family=Google+Sans:400,500|Roboto:400,400italic,500,500italic,700,700italic|Roboto+Mono:400,500,700&display=swap"> <link rel="stylesheet" href="//fonts.googleapis.com/css2?family=Material+Icons&family=Material+Symbols+Outlined&display=block"><link rel="stylesheet" href="https://www.gstatic.com/devrel-devsite/prod/v870e399c64f7c43c99a3043db4b3a74327bb93d0914e84a0c3dba90bbfd67625/developers/css/app.css"> <link rel="shortcut icon" href="https://www.gstatic.com/devrel-devsite/prod/v870e399c64f7c43c99a3043db4b3a74327bb93d0914e84a0c3dba90bbfd67625/developers/images/favicon-new.png"> <link rel="apple-touch-icon" href="https://www.gstatic.com/devrel-devsite/prod/v870e399c64f7c43c99a3043db4b3a74327bb93d0914e84a0c3dba90bbfd67625/developers/images/touchicon-180-new.png"><link rel="canonical" href="https://developers.google.com/maps/documentation/places/web-service/autocomplete"><link rel="search" type="application/opensearchdescription+xml" title="Google for Developers" href="https://developers.google.com/s/opensearch.xml"> <link rel="alternate" hreflang="en" href="https://developers.google.com/maps/documentation/places/web-service/autocomplete" /><link rel="alternate" hreflang="x-default" href="https://developers.google.com/maps/documentation/places/web-service/autocomplete" /><link rel="alternate" hreflang="ar" href="https://developers.google.com/maps/documentation/places/web-service/autocomplete?hl=ar" /><link rel="alternate" hreflang="bn" href="https://developers.google.com/maps/documentation/places/web-service/autocomplete?hl=bn" /><link rel="alternate" hreflang="zh-Hans" href="https://developers.google.com/maps/documentation/places/web-service/autocomplete?hl=zh-cn" /><link rel="alternate" hreflang="zh-Hant" href="https://developers.google.com/maps/documentation/places/web-service/autocomplete?hl=zh-tw" /><link rel="alternate" hreflang="fa" href="https://developers.google.com/maps/documentation/places/web-service/autocomplete?hl=fa" /><link rel="alternate" hreflang="fr" href="https://developers.google.com/maps/documentation/places/web-service/autocomplete?hl=fr" /><link rel="alternate" hreflang="de" href="https://developers.google.com/maps/documentation/places/web-service/autocomplete?hl=de" /><link rel="alternate" hreflang="he" href="https://developers.google.com/maps/documentation/places/web-service/autocomplete?hl=he" /><link rel="alternate" hreflang="hi" href="https://developers.google.com/maps/documentation/places/web-service/autocomplete?hl=hi" /><link rel="alternate" hreflang="id" href="https://developers.google.com/maps/documentation/places/web-service/autocomplete?hl=id" /><link rel="alternate" hreflang="it" href="https://developers.google.com/maps/documentation/places/web-service/autocomplete?hl=it" /><link rel="alternate" hreflang="ja" href="https://developers.google.com/maps/documentation/places/web-service/autocomplete?hl=ja" /><link rel="alternate" hreflang="ko" href="https://developers.google.com/maps/documentation/places/web-service/autocomplete?hl=ko" /><link rel="alternate" hreflang="pl" href="https://developers.google.com/maps/documentation/places/web-service/autocomplete?hl=pl" /><link rel="alternate" hreflang="pt-BR" href="https://developers.google.com/maps/documentation/places/web-service/autocomplete?hl=pt-br" /><link rel="alternate" hreflang="ru" href="https://developers.google.com/maps/documentation/places/web-service/autocomplete?hl=ru" /><link rel="alternate" hreflang="es-419" href="https://developers.google.com/maps/documentation/places/web-service/autocomplete?hl=es-419" /><link rel="alternate" hreflang="th" href="https://developers.google.com/maps/documentation/places/web-service/autocomplete?hl=th" /><link rel="alternate" hreflang="tr" href="https://developers.google.com/maps/documentation/places/web-service/autocomplete?hl=tr" /><link rel="alternate" hreflang="vi" href="https://developers.google.com/maps/documentation/places/web-service/autocomplete?hl=vi" /><title>Place Autocomplete &nbsp;|&nbsp; Places API &nbsp;|&nbsp; Google for Developers</title> <meta property="og:title" content="Place Autocomplete &nbsp;|&nbsp; Places API &nbsp;|&nbsp; Google for Developers"><meta property="og:url" content="https://developers.google.com/maps/documentation/places/web-service/autocomplete"><meta property="og:image" content="https://developers.google.com/static/maps/images/google-maps-platform-1200x675.png"> <meta property="og:image:width" content="1200"> <meta property="og:image:height" content="675"><meta property="og:locale" content="en"><meta name="twitter:card" content="summary_large_image"><meta name="twitter:site" content="@GMapsPlatform"><script type="application/ld+json"> { "@context": "https://schema.org", "@type": "Article", "headline": "Place Autocomplete" } </script><script type="application/ld+json"> { "@context": "https://schema.org", "@type": "BreadcrumbList", "itemListElement": [{ "@type": "ListItem", "position": 1, "name": "Google Maps Platform", "item": "https://developers.google.com/maps" },{ "@type": "ListItem", "position": 2, "name": "Places API", "item": "https://developers.google.com/maps/documentation/places/web-service/overview" },{ "@type": "ListItem", "position": 3, "name": "Place Autocomplete", "item": "https://developers.google.com/maps/documentation/places/web-service/autocomplete" }] } </script> <link rel="stylesheet" href="/extras.css"></head> <body class="" template="page" theme="white" type="article" layout="docs" concierge='closed' display-toc pending> <devsite-progress type="indeterminate" id="app-progress"></devsite-progress> <section class="devsite-wrapper"> <devsite-cookie-notification-bar></devsite-cookie-notification-bar><devsite-header role="banner"> <div class="devsite-header--inner nocontent"> <div class="devsite-top-logo-row-wrapper-wrapper"> <div class="devsite-top-logo-row-wrapper"> <div class="devsite-top-logo-row"> <button type="button" id="devsite-hamburger-menu" class="devsite-header-icon-button button-flat material-icons gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Navigation menu button" visually-hidden aria-label="Open menu"> </button> <div class="devsite-product-name-wrapper"> <a href="https://developers.google.com/maps"> <div class="devsite-product-logo-container" size="medium" > <picture> <img class="devsite-product-logo" alt="Google Maps Platform" src="https://developers.google.com/static/maps/images/maps-icon.svg" srcset=" /static/maps/images/maps-icon.svg" sizes="64px" loading="lazy" > </picture> </div> </a> <span class="devsite-product-name"> <ul class="devsite-breadcrumb-list" > <li class="devsite-breadcrumb-item devsite-has-google-wordmark"> <a href="https://developers.google.com/maps" class="devsite-breadcrumb-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Upper Header" data-value="1" track-type="globalNav" track-name="breadcrumb" track-metadata-position="1" track-metadata-eventdetail="Google Maps Platform" > <svg class="devsite-google-wordmark" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 148 48"> <title>Google</title> <path class="devsite-google-wordmark-svg-path" d="M19.58,37.65c-9.87,0-18.17-8.04-18.17-17.91c0-9.87,8.3-17.91,18.17-17.91c5.46,0,9.35,2.14,12.27,4.94l-3.45,3.45c-2.1-1.97-4.93-3.49-8.82-3.49c-7.21,0-12.84,5.81-12.84,13.02c0,7.21,5.64,13.02,12.84,13.02c4.67,0,7.34-1.88,9.04-3.58c1.4-1.4,2.32-3.41,2.66-6.16H19.58v-4.89h16.47c0.18,0.87,0.26,1.92,0.26,3.06c0,3.67-1.01,8.21-4.24,11.44C28.93,35.9,24.91,37.65,19.58,37.65z M61.78,26.12c0,6.64-5.1,11.53-11.36,11.53s-11.36-4.89-11.36-11.53c0-6.68,5.1-11.53,11.36-11.53S61.78,19.43,61.78,26.12z M56.8,26.12c0-4.15-2.96-6.99-6.39-6.99c-3.43,0-6.39,2.84-6.39,6.99c0,4.11,2.96,6.99,6.39,6.99C53.84,33.11,56.8,30.22,56.8,26.12z M87.25,26.12c0,6.64-5.1,11.53-11.36,11.53c-6.26,0-11.36-4.89-11.36-11.53c0-6.68,5.1-11.53,11.36-11.53C82.15,14.59,87.25,19.43,87.25,26.12zM82.28,26.12c0-4.15-2.96-6.99-6.39-6.99c-3.43,0-6.39,2.84-6.39,6.99c0,4.11,2.96,6.99,6.39,6.99C79.32,33.11,82.28,30.22,82.28,26.12z M112.09,15.29v20.7c0,8.52-5.02,12.01-10.96,12.01c-5.59,0-8.95-3.76-10.22-6.81l4.41-1.83c0.79,1.88,2.71,4.1,5.81,4.1c3.8,0,6.16-2.36,6.16-6.77v-1.66h-0.18c-1.14,1.4-3.32,2.62-6.07,2.62c-5.76,0-11.05-5.02-11.05-11.49c0-6.51,5.28-11.57,11.05-11.57c2.75,0,4.93,1.22,6.07,2.58h0.18v-1.88H112.09z M107.64,26.16c0-4.06-2.71-7.03-6.16-7.03c-3.49,0-6.42,2.97-6.42,7.03c0,4.02,2.93,6.94,6.42,6.94C104.93,33.11,107.64,30.18,107.64,26.16z M120.97,3.06v33.89h-5.07V3.06H120.97z M140.89,29.92l3.93,2.62c-1.27,1.88-4.32,5.11-9.61,5.11c-6.55,0-11.28-5.07-11.28-11.53c0-6.86,4.77-11.53,10.71-11.53c5.98,0,8.91,4.76,9.87,7.34l0.52,1.31l-15.42,6.38c1.18,2.31,3.01,3.49,5.59,3.49C137.79,33.11,139.58,31.84,140.89,29.92zM128.79,25.77l10.31-4.28c-0.57-1.44-2.27-2.45-4.28-2.45C132.24,19.04,128.66,21.31,128.79,25.77z"/> </svg>Maps Platform </a> </li> </ul> </span> </div> <div class="devsite-top-logo-row-middle"> <div class="devsite-header-upper-tabs"> <devsite-tabs class="upper-tabs"> <nav class="devsite-tabs-wrapper" aria-label="Upper tabs"> <tab > <a href="https://mapsplatform.google.com/" track-metadata-eventdetail="https://mapsplatform.google.com/" class="devsite-tabs-content gc-analytics-event " track-type="nav" track-metadata-position="nav - overview" track-metadata-module="primary nav" data-category="home" data-label="navTopMenu" track-name="overview" data-action="tabClick" > Overview </a> </tab> <tab > <a href="https://mapsplatform.google.com/maps-products/" track-metadata-eventdetail="https://mapsplatform.google.com/maps-products/" class="devsite-tabs-content gc-analytics-event " track-type="nav" track-metadata-position="nav - products" track-metadata-module="primary nav" data-category="products" data-label="navTopMenu" track-name="products" data-action="tabClick" > Products </a> </tab> <tab > <a href="https://mapsplatform.google.com/pricing/" track-metadata-eventdetail="https://mapsplatform.google.com/pricing/" class="devsite-tabs-content gc-analytics-event " track-type="nav" track-metadata-position="nav - pricing" track-metadata-module="primary nav" data-category="pricing" data-label="navTopMenu" track-name="pricing" data-action="tabClick" > Pricing </a> </tab> <tab class="devsite-dropdown devsite-dropdown-full devsite-active "> <a href="https://developers.google.com/maps/documentation" track-metadata-eventdetail="https://developers.google.com/maps/documentation" class="devsite-tabs-content gc-analytics-event " track-type="nav" track-metadata-position="nav - documentation" track-metadata-module="primary nav" aria-label="Documentation, selected" data-category="documentation" data-label="navTopMenu" track-name="documentation" data-action="tabClick" > Documentation </a> <a href="#" role="button" aria-haspopup="true" aria-expanded="false" aria-label="Dropdown menu for Documentation" track-type="nav" track-metadata-eventdetail="https://developers.google.com/maps/documentation" track-metadata-position="nav - documentation" track-metadata-module="primary nav" data-category="documentation" data-label="navTopMenu" track-name="documentation" data-action="tabClick" class="devsite-tabs-dropdown-toggle devsite-icon devsite-icon-arrow-drop-down"></a> <div class="devsite-tabs-dropdown" aria-label="submenu" hidden> <div class="devsite-tabs-dropdown-content"> <div class="devsite-tabs-dropdown-column "> <ul class="devsite-tabs-dropdown-section "> <li class="devsite-nav-title" role="heading" tooltip>Get Started</li> <li class="devsite-nav-item"> <a href="https://developers.google.com/maps/get-started" track-type="nav" track-metadata-eventdetail="https://developers.google.com/maps/get-started" track-metadata-position="nav - documentation" track-metadata-module="tertiary nav" track-metadata-module_headline="get started" tooltip > <div class="devsite-nav-item-title"> Get Started with Google Maps Platform </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developers.google.com/maps/documentation/api-picker" track-type="nav" track-metadata-eventdetail="https://developers.google.com/maps/documentation/api-picker" track-metadata-position="nav - documentation" track-metadata-module="tertiary nav" track-metadata-module_headline="get started" tooltip > <div class="devsite-nav-item-title"> API Picker </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developers.google.com/maps/billing-and-pricing/overview" track-type="nav" track-metadata-eventdetail="https://developers.google.com/maps/billing-and-pricing/overview" track-metadata-position="nav - documentation" track-metadata-module="tertiary nav" track-metadata-module_headline="get started" tooltip > <div class="devsite-nav-item-title"> Billing & Pricing </div> </a> </li> <li class="devsite-nav-item"> <a href="https://mapsplatform.google.com/resources/trust-center" track-type="nav" track-metadata-eventdetail="https://mapsplatform.google.com/resources/trust-center" track-metadata-position="nav - documentation" track-metadata-module="tertiary nav" track-metadata-module_headline="get started" tooltip > <div class="devsite-nav-item-title"> Security & Compliance </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developers.google.com/maps/reporting-and-monitoring/overview" track-type="nav" track-metadata-eventdetail="https://developers.google.com/maps/reporting-and-monitoring/overview" track-metadata-position="nav - documentation" track-metadata-module="tertiary nav" track-metadata-module_headline="get started" tooltip > <div class="devsite-nav-item-title"> Reporting & Monitoring </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developers.google.com/maps/faq" track-type="nav" track-metadata-eventdetail="https://developers.google.com/maps/faq" track-metadata-position="nav - documentation" track-metadata-module="tertiary nav" track-metadata-module_headline="get started" tooltip > <div class="devsite-nav-item-title"> FAQ </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developers.google.com/maps/support" track-type="nav" track-metadata-eventdetail="https://developers.google.com/maps/support" track-metadata-position="nav - documentation" track-metadata-module="tertiary nav" track-metadata-module_headline="get started" tooltip > <div class="devsite-nav-item-title"> Support and Resources </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developers.google.com/maps/support/care" track-type="nav" track-metadata-eventdetail="https://developers.google.com/maps/support/care" track-metadata-position="nav - documentation" track-metadata-module="tertiary nav" track-metadata-module_headline="get started" tooltip > <div class="devsite-nav-item-title"> Customer Care </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developers.google.com/maps/incident-management" track-type="nav" track-metadata-eventdetail="https://developers.google.com/maps/incident-management" track-metadata-position="nav - documentation" track-metadata-module="tertiary nav" track-metadata-module_headline="get started" tooltip > <div class="devsite-nav-item-title"> Incident Management </div> </a> </li> </ul> </div> <div class="devsite-tabs-dropdown-column "> <ul class="devsite-tabs-dropdown-section "> <li class="devsite-nav-title" role="heading" tooltip>Maps</li> <li class="devsite-nav-item"> <a href="https://developers.google.com/maps/documentation/javascript" track-type="nav" track-metadata-eventdetail="https://developers.google.com/maps/documentation/javascript" track-metadata-position="nav - documentation" track-metadata-module="tertiary nav" track-metadata-module_headline="maps" tooltip > <div class="devsite-nav-item-title"> Maps JavaScript API </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developers.google.com/maps/documentation/android-sdk" track-type="nav" track-metadata-eventdetail="https://developers.google.com/maps/documentation/android-sdk" track-metadata-position="nav - documentation" track-metadata-module="tertiary nav" track-metadata-module_headline="maps" tooltip > <div class="devsite-nav-item-title"> Maps SDK for Android </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developers.google.com/maps/documentation/ios-sdk" track-type="nav" track-metadata-eventdetail="https://developers.google.com/maps/documentation/ios-sdk" track-metadata-position="nav - documentation" track-metadata-module="tertiary nav" track-metadata-module_headline="maps" tooltip > <div class="devsite-nav-item-title"> Maps SDK for iOS </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developers.google.com/maps/flutter-package/overview" track-type="nav" track-metadata-eventdetail="https://developers.google.com/maps/flutter-package/overview" track-metadata-position="nav - documentation" track-metadata-module="tertiary nav" track-metadata-module_headline="maps" tooltip > <div class="devsite-nav-item-title"> Google Maps for Flutter </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developers.google.com/maps/documentation/embed" track-type="nav" track-metadata-eventdetail="https://developers.google.com/maps/documentation/embed" track-metadata-position="nav - documentation" track-metadata-module="tertiary nav" track-metadata-module_headline="maps" tooltip > <div class="devsite-nav-item-title"> Maps Embed API </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developers.google.com/maps/documentation/maps-static" track-type="nav" track-metadata-eventdetail="https://developers.google.com/maps/documentation/maps-static" track-metadata-position="nav - documentation" track-metadata-module="tertiary nav" track-metadata-module_headline="maps" tooltip > <div class="devsite-nav-item-title"> Maps Static API </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developers.google.com/maps/documentation/streetview" track-type="nav" track-metadata-eventdetail="https://developers.google.com/maps/documentation/streetview" track-metadata-position="nav - documentation" track-metadata-module="tertiary nav" track-metadata-module_headline="maps" tooltip > <div class="devsite-nav-item-title"> Street View Static API </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developers.google.com/maps/documentation/urls" track-type="nav" track-metadata-eventdetail="https://developers.google.com/maps/documentation/urls" track-metadata-position="nav - documentation" track-metadata-module="tertiary nav" track-metadata-module_headline="maps" tooltip > <div class="devsite-nav-item-title"> Maps URLs </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developers.google.com/maps/documentation/aerial-view" track-type="nav" track-metadata-eventdetail="https://developers.google.com/maps/documentation/aerial-view" track-metadata-position="nav - documentation" track-metadata-module="tertiary nav" track-metadata-module_headline="maps" tooltip > <div class="devsite-nav-item-title"> Aerial View API </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developers.google.com/maps/documentation/elevation" track-type="nav" track-metadata-eventdetail="https://developers.google.com/maps/documentation/elevation" track-metadata-position="nav - documentation" track-metadata-module="tertiary nav" track-metadata-module_headline="maps" tooltip > <div class="devsite-nav-item-title"> Elevation API </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developers.google.com/maps/documentation/tile" track-type="nav" track-metadata-eventdetail="https://developers.google.com/maps/documentation/tile" track-metadata-position="nav - documentation" track-metadata-module="tertiary nav" track-metadata-module_headline="maps" tooltip > <div class="devsite-nav-item-title"> Map Tiles API </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developers.google.com/maps/documentation/datasets" track-type="nav" track-metadata-eventdetail="https://developers.google.com/maps/documentation/datasets" track-metadata-position="nav - documentation" track-metadata-module="tertiary nav" track-metadata-module_headline="maps" tooltip > <div class="devsite-nav-item-title"> Maps Datasets API </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developers.google.com/maps/documentation/web-components" track-type="nav" track-metadata-eventdetail="https://developers.google.com/maps/documentation/web-components" track-metadata-position="nav - documentation" track-metadata-module="tertiary nav" track-metadata-module_headline="maps" tooltip > <div class="devsite-nav-item-title"> Web Components (Preview) </div> </a> </li> </ul> </div> <div class="devsite-tabs-dropdown-column "> <ul class="devsite-tabs-dropdown-section "> <li class="devsite-nav-title" role="heading" tooltip>Routes</li> <li class="devsite-nav-item"> <a href="https://developers.google.com/maps/documentation/routes" track-type="nav" track-metadata-eventdetail="https://developers.google.com/maps/documentation/routes" track-metadata-position="nav - documentation" track-metadata-module="tertiary nav" track-metadata-module_headline="routes" tooltip > <div class="devsite-nav-item-title"> Routes API </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developers.google.com/maps/documentation/navigation/android-sdk" track-type="nav" track-metadata-eventdetail="https://developers.google.com/maps/documentation/navigation/android-sdk" track-metadata-position="nav - documentation" track-metadata-module="tertiary nav" track-metadata-module_headline="routes" tooltip > <div class="devsite-nav-item-title"> Navigation SDK for Android </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developers.google.com/maps/documentation/navigation/ios-sdk" track-type="nav" track-metadata-eventdetail="https://developers.google.com/maps/documentation/navigation/ios-sdk" track-metadata-position="nav - documentation" track-metadata-module="tertiary nav" track-metadata-module_headline="routes" tooltip > <div class="devsite-nav-item-title"> Navigation SDK for iOS </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developers.google.com/maps/documentation/cross-platform/navigation" track-type="nav" track-metadata-eventdetail="https://developers.google.com/maps/documentation/cross-platform/navigation" track-metadata-position="nav - documentation" track-metadata-module="tertiary nav" track-metadata-module_headline="routes" tooltip > <div class="devsite-nav-item-title"> Navigation for Flutter </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developers.google.com/maps/documentation/cross-platform/navigation" track-type="nav" track-metadata-eventdetail="https://developers.google.com/maps/documentation/cross-platform/navigation" track-metadata-position="nav - documentation" track-metadata-module="tertiary nav" track-metadata-module_headline="routes" tooltip > <div class="devsite-nav-item-title"> Navigation for React Native </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developers.google.com/maps/documentation/roads" track-type="nav" track-metadata-eventdetail="https://developers.google.com/maps/documentation/roads" track-metadata-position="nav - documentation" track-metadata-module="tertiary nav" track-metadata-module_headline="routes" tooltip > <div class="devsite-nav-item-title"> Roads API </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developers.google.com/maps/documentation/directions" track-type="nav" track-metadata-eventdetail="https://developers.google.com/maps/documentation/directions" track-metadata-position="nav - documentation" track-metadata-module="tertiary nav" track-metadata-module_headline="routes" tooltip > <div class="devsite-nav-item-title"> Directions API </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developers.google.com/maps/documentation/distance-matrix" track-type="nav" track-metadata-eventdetail="https://developers.google.com/maps/documentation/distance-matrix" track-metadata-position="nav - documentation" track-metadata-module="tertiary nav" track-metadata-module_headline="routes" tooltip > <div class="devsite-nav-item-title"> Distance Matrix API </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developers.google.com/maps/documentation/route-optimization" track-type="nav" track-metadata-eventdetail="https://developers.google.com/maps/documentation/route-optimization" track-metadata-position="nav - documentation" track-metadata-module="tertiary nav" track-metadata-module_headline="routes" tooltip > <div class="devsite-nav-item-title"> Route Optimization API </div> </a> </li> </ul> <ul class="devsite-tabs-dropdown-section "> <li class="devsite-nav-title" role="heading" tooltip>Solutions</li> <li class="devsite-nav-item"> <a href="https://developers.google.com/maps/solutions" track-type="nav" track-metadata-eventdetail="https://developers.google.com/maps/solutions" track-metadata-position="nav - documentation" track-metadata-module="tertiary nav" track-metadata-module_headline="routes" tooltip > <div class="devsite-nav-item-title"> Industry solutions </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developers.google.com/maps/documentation/mobility" track-type="nav" track-metadata-eventdetail="https://developers.google.com/maps/documentation/mobility" track-metadata-position="nav - documentation" track-metadata-module="tertiary nav" track-metadata-module_headline="routes" tooltip > <div class="devsite-nav-item-title"> Mobility services </div> </a> </li> </ul> </div> <div class="devsite-tabs-dropdown-column "> <ul class="devsite-tabs-dropdown-section "> <li class="devsite-nav-title" role="heading" tooltip>Places</li> <li class="devsite-nav-item"> <a href="https://developers.google.com/maps/documentation/places/web-service" track-type="nav" track-metadata-eventdetail="https://developers.google.com/maps/documentation/places/web-service" track-metadata-position="nav - documentation" track-metadata-module="tertiary nav" track-metadata-module_headline="places" tooltip > <div class="devsite-nav-item-title"> Places API </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developers.google.com/maps/documentation/places/android-sdk" track-type="nav" track-metadata-eventdetail="https://developers.google.com/maps/documentation/places/android-sdk" track-metadata-position="nav - documentation" track-metadata-module="tertiary nav" track-metadata-module_headline="places" tooltip > <div class="devsite-nav-item-title"> Places SDK for Android </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developers.google.com/maps/documentation/places/ios-sdk" track-type="nav" track-metadata-eventdetail="https://developers.google.com/maps/documentation/places/ios-sdk" track-metadata-position="nav - documentation" track-metadata-module="tertiary nav" track-metadata-module_headline="places" tooltip > <div class="devsite-nav-item-title"> Places SDK for iOS </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developers.google.com/maps/documentation/javascript/places" track-type="nav" track-metadata-eventdetail="https://developers.google.com/maps/documentation/javascript/places" track-metadata-position="nav - documentation" track-metadata-module="tertiary nav" track-metadata-module_headline="places" tooltip > <div class="devsite-nav-item-title"> Places Library, Maps JavaScript API </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developers.google.com/maps/documentation/geocoding" track-type="nav" track-metadata-eventdetail="https://developers.google.com/maps/documentation/geocoding" track-metadata-position="nav - documentation" track-metadata-module="tertiary nav" track-metadata-module_headline="places" tooltip > <div class="devsite-nav-item-title"> Geocoding API </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developers.google.com/maps/documentation/geolocation" track-type="nav" track-metadata-eventdetail="https://developers.google.com/maps/documentation/geolocation" track-metadata-position="nav - documentation" track-metadata-module="tertiary nav" track-metadata-module_headline="places" tooltip > <div class="devsite-nav-item-title"> Geolocation API </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developers.google.com/maps/documentation/address-validation" track-type="nav" track-metadata-eventdetail="https://developers.google.com/maps/documentation/address-validation" track-metadata-position="nav - documentation" track-metadata-module="tertiary nav" track-metadata-module_headline="places" tooltip > <div class="devsite-nav-item-title"> Address Validation API </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developers.google.com/maps/documentation/timezone" track-type="nav" track-metadata-eventdetail="https://developers.google.com/maps/documentation/timezone" track-metadata-position="nav - documentation" track-metadata-module="tertiary nav" track-metadata-module_headline="places" tooltip > <div class="devsite-nav-item-title"> Time Zone API </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developers.google.com/maps/documentation/places-insights" track-type="nav" track-metadata-eventdetail="https://developers.google.com/maps/documentation/places-insights" track-metadata-position="nav - documentation" track-metadata-module="tertiary nav" track-metadata-module_headline="places" tooltip > <div class="devsite-nav-item-title"> Places Insights API (Preview) </div> </a> </li> </ul> <ul class="devsite-tabs-dropdown-section "> <li class="devsite-nav-title" role="heading" tooltip>Environment</li> <li class="devsite-nav-item"> <a href="https://developers.google.com/maps/documentation/air-quality" track-type="nav" track-metadata-eventdetail="https://developers.google.com/maps/documentation/air-quality" track-metadata-position="nav - documentation" track-metadata-module="tertiary nav" track-metadata-module_headline="places" tooltip > <div class="devsite-nav-item-title"> Air Quality API </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developers.google.com/maps/documentation/pollen" track-type="nav" track-metadata-eventdetail="https://developers.google.com/maps/documentation/pollen" track-metadata-position="nav - documentation" track-metadata-module="tertiary nav" track-metadata-module_headline="places" tooltip > <div class="devsite-nav-item-title"> Pollen API </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developers.google.com/maps/documentation/solar" track-type="nav" track-metadata-eventdetail="https://developers.google.com/maps/documentation/solar" track-metadata-position="nav - documentation" track-metadata-module="tertiary nav" track-metadata-module_headline="places" tooltip > <div class="devsite-nav-item-title"> Solar API </div> </a> </li> </ul> </div> <div class="devsite-tabs-dropdown-column "> <ul class="devsite-tabs-dropdown-section "> <li class="devsite-nav-title" role="heading" tooltip>Additional Resources</li> <li class="devsite-nav-item"> <a href="https://developers.google.com/maps/api-security-best-practices" track-type="nav" track-metadata-eventdetail="https://developers.google.com/maps/api-security-best-practices" track-metadata-position="nav - documentation" track-metadata-module="tertiary nav" track-metadata-module_headline="additional resources" tooltip > <div class="devsite-nav-item-title"> API Security Best Practices </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developers.google.com/maps/digital-signature" track-type="nav" track-metadata-eventdetail="https://developers.google.com/maps/digital-signature" track-metadata-position="nav - documentation" track-metadata-module="tertiary nav" track-metadata-module_headline="additional resources" tooltip > <div class="devsite-nav-item-title"> Digital Signature Guide </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developers.google.com/maps/coverage" track-type="nav" track-metadata-eventdetail="https://developers.google.com/maps/coverage" track-metadata-position="nav - documentation" track-metadata-module="tertiary nav" track-metadata-module_headline="additional resources" tooltip > <div class="devsite-nav-item-title"> Map Coverage Details </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developers.google.com/maps/optimization-guide" track-type="nav" track-metadata-eventdetail="https://developers.google.com/maps/optimization-guide" track-metadata-position="nav - documentation" track-metadata-module="tertiary nav" track-metadata-module_headline="additional resources" tooltip > <div class="devsite-nav-item-title"> Optimization Guide </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developers.google.com/maps/software-support" track-type="nav" track-metadata-eventdetail="https://developers.google.com/maps/software-support" track-metadata-position="nav - documentation" track-metadata-module="tertiary nav" track-metadata-module_headline="additional resources" tooltip > <div class="devsite-nav-item-title"> Mobile OS and software support </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developers.google.com/maps/launch-stages" track-type="nav" track-metadata-eventdetail="https://developers.google.com/maps/launch-stages" track-metadata-position="nav - documentation" track-metadata-module="tertiary nav" track-metadata-module_headline="additional resources" tooltip > <div class="devsite-nav-item-title"> Launch stages </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developers.google.com/maps/deprecations" track-type="nav" track-metadata-eventdetail="https://developers.google.com/maps/deprecations" track-metadata-position="nav - documentation" track-metadata-module="tertiary nav" track-metadata-module_headline="additional resources" tooltip > <div class="devsite-nav-item-title"> Deprecations </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developers.google.com/maps/asset-tracking-plan" track-type="nav" track-metadata-eventdetail="https://developers.google.com/maps/asset-tracking-plan" track-metadata-position="nav - documentation" track-metadata-module="tertiary nav" track-metadata-module_headline="additional resources" tooltip > <div class="devsite-nav-item-title"> Asset Tracking Plan </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developers.google.com/maps/url-encoding" track-type="nav" track-metadata-eventdetail="https://developers.google.com/maps/url-encoding" track-metadata-position="nav - documentation" track-metadata-module="tertiary nav" track-metadata-module_headline="additional resources" tooltip > <div class="devsite-nav-item-title"> URL Encoding </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developers.google.com/maps/third-party-platforms/wordpress" track-type="nav" track-metadata-eventdetail="https://developers.google.com/maps/third-party-platforms/wordpress" track-metadata-position="nav - documentation" track-metadata-module="tertiary nav" track-metadata-module_headline="additional resources" tooltip > <div class="devsite-nav-item-title"> WordPress Users </div> </a> </li> </ul> </div> </div> </div> </tab> <tab > <a href="https://mapsplatform.google.com/resources/blog" track-metadata-eventdetail="https://mapsplatform.google.com/resources/blog" class="devsite-tabs-content gc-analytics-event " track-type="nav" track-metadata-position="nav - blog" track-metadata-module="primary nav" data-category="blog" data-label="navTopMenu" track-name="blog" data-action="tabClick" > Blog </a> </tab> <tab class="devsite-dropdown "> <a href="https://developers.google.com/maps/developer-community" track-metadata-eventdetail="https://developers.google.com/maps/developer-community" class="devsite-tabs-content gc-analytics-event " track-type="nav" track-metadata-position="nav - community" track-metadata-module="primary nav" data-category="community" data-label="navTopMenu" track-name="community" data-action="tabClick" > Community </a> <a href="#" role="button" aria-haspopup="true" aria-expanded="false" aria-label="Dropdown menu for Community" track-type="nav" track-metadata-eventdetail="https://developers.google.com/maps/developer-community" track-metadata-position="nav - community" track-metadata-module="primary nav" data-category="community" data-label="navTopMenu" track-name="community" data-action="tabClick" class="devsite-tabs-dropdown-toggle devsite-icon devsite-icon-arrow-drop-down"></a> <div class="devsite-tabs-dropdown" aria-label="submenu" hidden> <div class="devsite-tabs-dropdown-content"> <div class="devsite-tabs-dropdown-column "> <ul class="devsite-tabs-dropdown-section "> <li class="devsite-nav-item"> <a href="https://stackoverflow.com/questions/tagged/google-maps" track-type="nav" track-metadata-eventdetail="https://stackoverflow.com/questions/tagged/google-maps" track-metadata-position="nav - community" track-metadata-module="tertiary nav" tooltip > <div class="devsite-nav-item-title"> StackOverflow </div> </a> </li> <li class="devsite-nav-item"> <a href="https://github.com/googlemaps/" track-type="nav" track-metadata-eventdetail="https://github.com/googlemaps/" track-metadata-position="nav - community" track-metadata-module="tertiary nav" tooltip > <div class="devsite-nav-item-title"> GitHub </div> </a> </li> <li class="devsite-nav-item"> <a href="https://www.youtube.com/c/GoogleMapsPlatform" track-type="nav" track-metadata-eventdetail="https://www.youtube.com/c/GoogleMapsPlatform" track-metadata-position="nav - community" track-metadata-module="tertiary nav" tooltip > <div class="devsite-nav-item-title"> YouTube </div> </a> </li> <li class="devsite-nav-item"> <a href="https://discord.gg/f4hvx8Rp2q" track-type="nav" track-metadata-eventdetail="https://discord.gg/f4hvx8Rp2q" track-metadata-position="nav - community" track-metadata-module="tertiary nav" tooltip > <div class="devsite-nav-item-title"> Discord </div> </a> </li> <li class="devsite-nav-item"> <a href="https://twitter.com/GMapsPlatform" track-type="nav" track-metadata-eventdetail="https://twitter.com/GMapsPlatform" track-metadata-position="nav - community" track-metadata-module="tertiary nav" tooltip > <div class="devsite-nav-item-title"> X (Twitter) </div> </a> </li> <li class="devsite-nav-item"> <a href="https://issuetracker.google.com/bookmark-groups/76561" track-type="nav" track-metadata-eventdetail="https://issuetracker.google.com/bookmark-groups/76561" track-metadata-position="nav - community" track-metadata-module="tertiary nav" tooltip > <div class="devsite-nav-item-title"> Issue Tracker </div> </a> </li> <li class="devsite-nav-item"> <a href="https://devlibrary.withgoogle.com/products/maps" track-type="nav" track-metadata-eventdetail="https://devlibrary.withgoogle.com/products/maps" track-metadata-position="nav - community" track-metadata-module="tertiary nav" tooltip > <div class="devsite-nav-item-title"> Google Dev Library </div> </a> </li> </ul> </div> </div> </div> </tab> </nav> </devsite-tabs> </div> <devsite-search enable-signin enable-search enable-suggestions enable-query-completion project-name="Places API" tenant-name="Google for Developers" project-scope="/maps/documentation/places/web-service/overview" url-scoped="https://developers.google.com/s/results/maps/documentation/places/web-service/overview" > <form class="devsite-search-form" action="https://developers.google.com/s/results" method="GET"> <div class="devsite-search-container"> <button type="button" search-open class="devsite-search-button devsite-header-icon-button button-flat material-icons" aria-label="Open search"></button> <div class="devsite-searchbox"> <input aria-activedescendant="" aria-autocomplete="list" aria-label="Search" aria-expanded="false" aria-haspopup="listbox" autocomplete="off" class="devsite-search-field devsite-search-query" name="q" placeholder="Search" role="combobox" type="text" value="" > <div class="devsite-search-image material-icons" aria-hidden="true"> </div> <div class="devsite-search-shortcut-icon-container" aria-hidden="true"> <kbd class="devsite-search-shortcut-icon">/</kbd> </div> </div> </div> </form> <button type="button" search-close class="devsite-search-button devsite-header-icon-button button-flat material-icons" aria-label="Close search"></button> </devsite-search> </div> <devsite-language-selector> <ul role="presentation"> <li role="presentation"> <a role="menuitem" lang="en" >English</a> </li> <li role="presentation"> <a role="menuitem" lang="de" >Deutsch</a> </li> <li role="presentation"> <a role="menuitem" lang="es" >Español</a> </li> <li role="presentation"> <a role="menuitem" lang="es_419" >Español – América Latina</a> </li> <li role="presentation"> <a role="menuitem" lang="fr" >Français</a> </li> <li role="presentation"> <a role="menuitem" lang="id" >Indonesia</a> </li> <li role="presentation"> <a role="menuitem" lang="it" >Italiano</a> </li> <li role="presentation"> <a role="menuitem" lang="pl" >Polski</a> </li> <li role="presentation"> <a role="menuitem" lang="pt_br" >Português – Brasil</a> </li> <li role="presentation"> <a role="menuitem" lang="vi" >Tiếng Việt</a> </li> <li role="presentation"> <a role="menuitem" lang="tr" >Türkçe</a> </li> <li role="presentation"> <a role="menuitem" lang="ru" >Русский</a> </li> <li role="presentation"> <a role="menuitem" lang="he" >עברית</a> </li> <li role="presentation"> <a role="menuitem" lang="ar" >العربيّة</a> </li> <li role="presentation"> <a role="menuitem" lang="fa" >فارسی</a> </li> <li role="presentation"> <a role="menuitem" lang="hi" >हिंदी</a> </li> <li role="presentation"> <a role="menuitem" lang="bn" >বাংলা</a> </li> <li role="presentation"> <a role="menuitem" lang="th" >ภาษาไทย</a> </li> <li role="presentation"> <a role="menuitem" lang="zh_cn" >中文 – 简体</a> </li> <li role="presentation"> <a role="menuitem" lang="zh_tw" >中文 – 繁體</a> </li> <li role="presentation"> <a role="menuitem" lang="ja" >日本語</a> </li> <li role="presentation"> <a role="menuitem" lang="ko" >한국어</a> </li> </ul> </devsite-language-selector> <devsite-user enable-profiles fp-auth id="devsite-user"> <span class="button devsite-top-button" aria-hidden="true" visually-hidden>Sign in</span> </devsite-user> </div> </div> </div> <div class="devsite-collapsible-section "> <div class="devsite-header-background"> <div class="devsite-product-id-row" > <div class="devsite-product-description-row"> <ul class="devsite-breadcrumb-list" > <li class="devsite-breadcrumb-item "> <a href="https://developers.google.com/maps/documentation/places/web-service/overview" class="devsite-breadcrumb-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Lower Header" data-value="1" track-type="globalNav" track-name="breadcrumb" track-metadata-position="1" track-metadata-eventdetail="Places API" > Places API </a> </li> </ul> </div> <div class="devsite-product-button-row"> <a href="https://console.cloud.google.com/google/maps-apis/start?utm_source=Docs_GS_Button&amp;ref=https://developers.google.com/maps/&amp;utm_content=Docs_places_backend" class="button button-primary " data-label="nav" data-category="GMPgetStarted" data-action="buttonClick" >Get Started</a> <a href="https://mapsplatform.google.com/contact-us/" class="button " >Contact sales</a> </div> </div> <div class="devsite-doc-set-nav-row"> <devsite-tabs class="lower-tabs"> <nav class="devsite-tabs-wrapper" aria-label="Lower tabs"> <tab class="devsite-active"> <a href="https://developers.google.com/maps/documentation/places/web-service" track-metadata-eventdetail="https://developers.google.com/maps/documentation/places/web-service" class="devsite-tabs-content gc-analytics-event " track-type="nav" track-metadata-position="nav - guides" track-metadata-module="primary nav" aria-label="Guides, selected" data-category="Site-Wide Custom Events" data-label="Tab: Guides" track-name="guides" > Guides </a> </tab> <tab > <a href="https://developers.google.com/maps/documentation/places/web-service/reference/rest" track-metadata-eventdetail="https://developers.google.com/maps/documentation/places/web-service/reference/rest" class="devsite-tabs-content gc-analytics-event " track-type="nav" track-metadata-position="nav - reference" track-metadata-module="primary nav" data-category="Site-Wide Custom Events" data-label="Tab: Reference" track-name="reference" > Reference </a> </tab> <tab > <a href="https://developers.google.com/maps/documentation/places/web-service/support" track-metadata-eventdetail="https://developers.google.com/maps/documentation/places/web-service/support" class="devsite-tabs-content gc-analytics-event " track-type="nav" track-metadata-position="nav - support" track-metadata-module="primary nav" data-category="Site-Wide Custom Events" data-label="Tab: Support" track-name="support" > Support </a> </tab> <tab > <a href="https://developers.google.com/maps/documentation/places/web-service/experimental/place-experimental-ov" track-metadata-eventdetail="https://developers.google.com/maps/documentation/places/web-service/experimental/place-experimental-ov" class="devsite-tabs-content gc-analytics-event " track-type="nav" track-metadata-position="nav - experimental" track-metadata-module="primary nav" data-category="Site-Wide Custom Events" data-label="Tab: Experimental" track-name="experimental" > Experimental </a> </tab> </nav> </devsite-tabs> </div> </div> </div> </div> </devsite-header> <devsite-book-nav scrollbars > <div class="devsite-book-nav-filter" > <span class="filter-list-icon material-icons" aria-hidden="true"></span> <input type="text" placeholder="Filter" aria-label="Type to filter" role="searchbox"> <span class="filter-clear-button hidden" data-title="Clear filter" aria-label="Clear filter" role="button" tabindex="0"></span> </div> <nav class="devsite-book-nav devsite-nav nocontent" aria-label="Side menu"> <div class="devsite-mobile-header"> <button type="button" id="devsite-close-nav" class="devsite-header-icon-button button-flat material-icons gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Close navigation" aria-label="Close navigation"> </button> <div class="devsite-product-name-wrapper"> <a href="https://developers.google.com/maps"> <div class="devsite-product-logo-container" size="medium" > <picture> <img class="devsite-product-logo" alt="Google Maps Platform" src="https://developers.google.com/static/maps/images/maps-icon.svg" srcset=" /static/maps/images/maps-icon.svg" sizes="64px" loading="lazy" > </picture> </div> </a> <span class="devsite-product-name"> <ul class="devsite-breadcrumb-list" > <li class="devsite-breadcrumb-item devsite-has-google-wordmark"> <a href="https://developers.google.com/maps" class="devsite-breadcrumb-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Upper Header" data-value="1" track-type="globalNav" track-name="breadcrumb" track-metadata-position="1" track-metadata-eventdetail="Google Maps Platform" > <svg class="devsite-google-wordmark" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 148 48"> <title>Google</title> <path class="devsite-google-wordmark-svg-path" d="M19.58,37.65c-9.87,0-18.17-8.04-18.17-17.91c0-9.87,8.3-17.91,18.17-17.91c5.46,0,9.35,2.14,12.27,4.94l-3.45,3.45c-2.1-1.97-4.93-3.49-8.82-3.49c-7.21,0-12.84,5.81-12.84,13.02c0,7.21,5.64,13.02,12.84,13.02c4.67,0,7.34-1.88,9.04-3.58c1.4-1.4,2.32-3.41,2.66-6.16H19.58v-4.89h16.47c0.18,0.87,0.26,1.92,0.26,3.06c0,3.67-1.01,8.21-4.24,11.44C28.93,35.9,24.91,37.65,19.58,37.65z M61.78,26.12c0,6.64-5.1,11.53-11.36,11.53s-11.36-4.89-11.36-11.53c0-6.68,5.1-11.53,11.36-11.53S61.78,19.43,61.78,26.12z M56.8,26.12c0-4.15-2.96-6.99-6.39-6.99c-3.43,0-6.39,2.84-6.39,6.99c0,4.11,2.96,6.99,6.39,6.99C53.84,33.11,56.8,30.22,56.8,26.12z M87.25,26.12c0,6.64-5.1,11.53-11.36,11.53c-6.26,0-11.36-4.89-11.36-11.53c0-6.68,5.1-11.53,11.36-11.53C82.15,14.59,87.25,19.43,87.25,26.12zM82.28,26.12c0-4.15-2.96-6.99-6.39-6.99c-3.43,0-6.39,2.84-6.39,6.99c0,4.11,2.96,6.99,6.39,6.99C79.32,33.11,82.28,30.22,82.28,26.12z M112.09,15.29v20.7c0,8.52-5.02,12.01-10.96,12.01c-5.59,0-8.95-3.76-10.22-6.81l4.41-1.83c0.79,1.88,2.71,4.1,5.81,4.1c3.8,0,6.16-2.36,6.16-6.77v-1.66h-0.18c-1.14,1.4-3.32,2.62-6.07,2.62c-5.76,0-11.05-5.02-11.05-11.49c0-6.51,5.28-11.57,11.05-11.57c2.75,0,4.93,1.22,6.07,2.58h0.18v-1.88H112.09z M107.64,26.16c0-4.06-2.71-7.03-6.16-7.03c-3.49,0-6.42,2.97-6.42,7.03c0,4.02,2.93,6.94,6.42,6.94C104.93,33.11,107.64,30.18,107.64,26.16z M120.97,3.06v33.89h-5.07V3.06H120.97z M140.89,29.92l3.93,2.62c-1.27,1.88-4.32,5.11-9.61,5.11c-6.55,0-11.28-5.07-11.28-11.53c0-6.86,4.77-11.53,10.71-11.53c5.98,0,8.91,4.76,9.87,7.34l0.52,1.31l-15.42,6.38c1.18,2.31,3.01,3.49,5.59,3.49C137.79,33.11,139.58,31.84,140.89,29.92zM128.79,25.77l10.31-4.28c-0.57-1.44-2.27-2.45-4.28-2.45C132.24,19.04,128.66,21.31,128.79,25.77z"/> </svg>Maps Platform </a> </li> </ul> </span> </div> </div> <div class="devsite-book-nav-wrapper"> <div class="devsite-mobile-nav-top"> <ul class="devsite-nav-list"> <li class="devsite-nav-item"> <a href="https://mapsplatform.google.com/" class="devsite-nav-title gc-analytics-event " data-category="home" data-label="navTopMenu" track-name="overview" data-action="tabClick" data-category="Site-Wide Custom Events" data-label="Responsive Tab: Overview" track-type="globalNav" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Overview </span> </a> </li> <li class="devsite-nav-item"> <a href="https://mapsplatform.google.com/maps-products/" class="devsite-nav-title gc-analytics-event " data-category="products" data-label="navTopMenu" track-name="products" data-action="tabClick" data-category="Site-Wide Custom Events" data-label="Responsive Tab: Products" track-type="globalNav" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Products </span> </a> </li> <li class="devsite-nav-item"> <a href="https://mapsplatform.google.com/pricing/" class="devsite-nav-title gc-analytics-event " data-category="pricing" data-label="navTopMenu" track-name="pricing" data-action="tabClick" data-category="Site-Wide Custom Events" data-label="Responsive Tab: Pricing" track-type="globalNav" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Pricing </span> </a> </li> <li class="devsite-nav-item"> <a href="/maps/documentation" class="devsite-nav-title gc-analytics-event devsite-nav-active" data-category="documentation" data-label="navTopMenu" track-name="documentation" data-action="tabClick" data-category="Site-Wide Custom Events" data-label="Responsive Tab: Documentation" track-type="globalNav" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Documentation </span> </a> <ul class="devsite-nav-responsive-tabs devsite-nav-has-menu "> <li class="devsite-nav-item"> <span class="devsite-nav-title" tooltip data-category="documentation" data-label="navTopMenu" track-name="documentation" data-action="tabClick" > <span class="devsite-nav-text" tooltip menu="Documentation"> More </span> <span class="devsite-nav-icon material-icons" data-icon="forward" menu="Documentation"> </span> </span> </li> </ul> <ul class="devsite-nav-responsive-tabs"> <li class="devsite-nav-item"> <a href="/maps/documentation/places/web-service" class="devsite-nav-title gc-analytics-event devsite-nav-has-children devsite-nav-active" data-category="Site-Wide Custom Events" data-label="Tab: Guides" track-name="guides" data-category="Site-Wide Custom Events" data-label="Responsive Tab: Guides" track-type="globalNav" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip menu="_book"> Guides </span> <span class="devsite-nav-icon material-icons" data-icon="forward" menu="_book"> </span> </a> </li> <li class="devsite-nav-item"> <a href="/maps/documentation/places/web-service/reference/rest" class="devsite-nav-title gc-analytics-event devsite-nav-has-children " data-category="Site-Wide Custom Events" data-label="Tab: Reference" track-name="reference" data-category="Site-Wide Custom Events" data-label="Responsive Tab: Reference" track-type="globalNav" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Reference </span> <span class="devsite-nav-icon material-icons" data-icon="forward" > </span> </a> </li> <li class="devsite-nav-item"> <a href="/maps/documentation/places/web-service/support" class="devsite-nav-title gc-analytics-event devsite-nav-has-children " data-category="Site-Wide Custom Events" data-label="Tab: Support" track-name="support" data-category="Site-Wide Custom Events" data-label="Responsive Tab: Support" track-type="globalNav" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Support </span> <span class="devsite-nav-icon material-icons" data-icon="forward" > </span> </a> </li> <li class="devsite-nav-item"> <a href="/maps/documentation/places/web-service/experimental/place-experimental-ov" class="devsite-nav-title gc-analytics-event devsite-nav-has-children " data-category="Site-Wide Custom Events" data-label="Tab: Experimental" track-name="experimental" data-category="Site-Wide Custom Events" data-label="Responsive Tab: Experimental" track-type="globalNav" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Experimental </span> <span class="devsite-nav-icon material-icons" data-icon="forward" > </span> </a> </li> </ul> </li> <li class="devsite-nav-item"> <a href="https://mapsplatform.google.com/resources/blog" class="devsite-nav-title gc-analytics-event " data-category="blog" data-label="navTopMenu" track-name="blog" data-action="tabClick" data-category="Site-Wide Custom Events" data-label="Responsive Tab: Blog" track-type="globalNav" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Blog </span> </a> </li> <li class="devsite-nav-item"> <a href="/maps/developer-community" class="devsite-nav-title gc-analytics-event " data-category="community" data-label="navTopMenu" track-name="community" data-action="tabClick" data-category="Site-Wide Custom Events" data-label="Responsive Tab: Community" track-type="globalNav" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Community </span> </a> <ul class="devsite-nav-responsive-tabs devsite-nav-has-menu "> <li class="devsite-nav-item"> <span class="devsite-nav-title" tooltip data-category="community" data-label="navTopMenu" track-name="community" data-action="tabClick" > <span class="devsite-nav-text" tooltip menu="Community"> More </span> <span class="devsite-nav-icon material-icons" data-icon="forward" menu="Community"> </span> </span> </li> </ul> </li> </ul> </div> <div class="devsite-mobile-nav-bottom"> <ul class="devsite-nav-list" menu="_book"> <li class="devsite-nav-item"><a href="/maps/documentation/places/web-service" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /maps/documentation/places/web-service" track-type="bookNav" track-name="click" track-metadata-eventdetail="/maps/documentation/places/web-service" ><span class="devsite-nav-text" tooltip>Places API</span></a></li> <li class="devsite-nav-item"><a href="/maps/documentation/places/web-service/overview" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /maps/documentation/places/web-service/overview" track-type="bookNav" track-name="click" track-metadata-eventdetail="/maps/documentation/places/web-service/overview" ><span class="devsite-nav-text" tooltip>Overview</span></a></li> <li class="devsite-nav-item"><a href="/maps/documentation/places/web-service/choose-api" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /maps/documentation/places/web-service/choose-api" track-type="bookNav" track-name="click" track-metadata-eventdetail="/maps/documentation/places/web-service/choose-api" ><span class="devsite-nav-text" tooltip>Choose your API version</span></a></li> <li class="devsite-nav-item"><a href="/maps/documentation/places/web-service/place-id" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /maps/documentation/places/web-service/place-id" track-type="bookNav" track-name="click" track-metadata-eventdetail="/maps/documentation/places/web-service/place-id" ><span class="devsite-nav-text" tooltip>Place IDs</span></a></li> <li class="devsite-nav-item"><a href="/maps/documentation/places/web-service/icons" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /maps/documentation/places/web-service/icons" track-type="bookNav" track-name="click" track-metadata-eventdetail="/maps/documentation/places/web-service/icons" ><span class="devsite-nav-text" tooltip>Place Icons</span></a></li> <li class="devsite-nav-item devsite-nav-heading"><div class="devsite-nav-title devsite-nav-title-no-path"> <span class="devsite-nav-text" tooltip>Setup</span> </div></li> <li class="devsite-nav-item"><a href="/maps/documentation/places/web-service/cloud-setup" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /maps/documentation/places/web-service/cloud-setup" track-type="bookNav" track-name="click" track-metadata-eventdetail="/maps/documentation/places/web-service/cloud-setup" ><span class="devsite-nav-text" tooltip>Set up your Google Cloud project</span></a></li> <li class="devsite-nav-item"><a href="/maps/documentation/places/web-service/get-api-key" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /maps/documentation/places/web-service/get-api-key" track-type="bookNav" track-name="click" track-metadata-eventdetail="/maps/documentation/places/web-service/get-api-key" ><span class="devsite-nav-text" tooltip>Use API Keys</span></a></li> <li class="devsite-nav-item"><a href="/maps/documentation/places/web-service/oauth-token" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /maps/documentation/places/web-service/oauth-token" track-type="bookNav" track-name="click" track-metadata-eventdetail="/maps/documentation/places/web-service/oauth-token" ><span class="devsite-nav-text" tooltip>Use OAuth - Places API (New) only</span></a></li> <li class="devsite-nav-item devsite-nav-heading"><div class="devsite-nav-title devsite-nav-title-no-path"> <span class="devsite-nav-text" tooltip>Places API (New)</span> </div></li> <li class="devsite-nav-item devsite-nav-expandable"><div class="devsite-expandable-nav"> <a class="devsite-nav-toggle" aria-hidden="true"></a><div class="devsite-nav-title devsite-nav-title-no-path" tabindex="0" role="button"> <span class="devsite-nav-text" tooltip>Use the Places API (New)</span> </div><ul class="devsite-nav-section"><li class="devsite-nav-item"><a href="/maps/documentation/places/web-service/op-overview" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /maps/documentation/places/web-service/op-overview" track-type="bookNav" track-name="click" track-metadata-eventdetail="/maps/documentation/places/web-service/op-overview" ><span class="devsite-nav-text" tooltip>Overview</span></a></li><li class="devsite-nav-item"><a href="/maps/documentation/places/web-service/nearby-search" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /maps/documentation/places/web-service/nearby-search" track-type="bookNav" track-name="click" track-metadata-eventdetail="/maps/documentation/places/web-service/nearby-search" ><span class="devsite-nav-text" tooltip>Nearby Search (New)</span></a></li><li class="devsite-nav-item"><a href="/maps/documentation/places/web-service/text-search" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /maps/documentation/places/web-service/text-search" track-type="bookNav" track-name="click" track-metadata-eventdetail="/maps/documentation/places/web-service/text-search" ><span class="devsite-nav-text" tooltip>Text Search (New)</span></a></li><li class="devsite-nav-item"><a href="/maps/documentation/places/web-service/place-details" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /maps/documentation/places/web-service/place-details" track-type="bookNav" track-name="click" track-metadata-eventdetail="/maps/documentation/places/web-service/place-details" ><span class="devsite-nav-text" tooltip>Place Details (New)</span></a></li><li class="devsite-nav-item"><a href="/maps/documentation/places/web-service/place-photos" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /maps/documentation/places/web-service/place-photos" track-type="bookNav" track-name="click" track-metadata-eventdetail="/maps/documentation/places/web-service/place-photos" ><span class="devsite-nav-text" tooltip>Place Photo (New)</span></a></li><li class="devsite-nav-item"><a href="/maps/documentation/places/web-service/place-autocomplete" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /maps/documentation/places/web-service/place-autocomplete" track-type="bookNav" track-name="click" track-metadata-eventdetail="/maps/documentation/places/web-service/place-autocomplete" ><span class="devsite-nav-text" tooltip>Autocomplete (New)</span></a></li></ul></div></li> <li class="devsite-nav-item devsite-nav-expandable"><div class="devsite-expandable-nav"> <a class="devsite-nav-toggle" aria-hidden="true"></a><div class="devsite-nav-title devsite-nav-title-no-path" tabindex="0" role="button"> <span class="devsite-nav-text" tooltip>Work with place data (New)</span> </div><ul class="devsite-nav-section"><li class="devsite-nav-item"><a href="/maps/documentation/places/web-service/place-types" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /maps/documentation/places/web-service/place-types" track-type="bookNav" track-name="click" track-metadata-eventdetail="/maps/documentation/places/web-service/place-types" ><span class="devsite-nav-text" tooltip>Place Types (New)</span></a></li><li class="devsite-nav-item"><a href="/maps/documentation/places/web-service/data-fields" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /maps/documentation/places/web-service/data-fields" track-type="bookNav" track-name="click" track-metadata-eventdetail="/maps/documentation/places/web-service/data-fields" ><span class="devsite-nav-text" tooltip>Place Data Fields (New)</span></a></li><li class="devsite-nav-item"><a href="/maps/documentation/places/web-service/choose-fields" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /maps/documentation/places/web-service/choose-fields" track-type="bookNav" track-name="click" track-metadata-eventdetail="/maps/documentation/places/web-service/choose-fields" ><span class="devsite-nav-text" tooltip>Choose fields to return</span></a></li></ul></div></li> <li class="devsite-nav-item devsite-nav-expandable"><div class="devsite-expandable-nav"> <a class="devsite-nav-toggle" aria-hidden="true"></a><div class="devsite-nav-title devsite-nav-title-no-path" tabindex="0" role="button"> <span class="devsite-nav-text" tooltip>Use session tokens</span> </div><ul class="devsite-nav-section"><li class="devsite-nav-item"><a href="/maps/documentation/places/web-service/place-session-tokens" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /maps/documentation/places/web-service/place-session-tokens" track-type="bookNav" track-name="click" track-metadata-eventdetail="/maps/documentation/places/web-service/place-session-tokens" ><span class="devsite-nav-text" tooltip>About session tokens</span></a></li><li class="devsite-nav-item"><a href="/maps/documentation/places/web-service/using-session-tokens" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /maps/documentation/places/web-service/using-session-tokens" track-type="bookNav" track-name="click" track-metadata-eventdetail="/maps/documentation/places/web-service/using-session-tokens" ><span class="devsite-nav-text" tooltip>Using session tokens</span></a></li><li class="devsite-nav-item"><a href="/maps/documentation/places/web-service/session-pricing" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /maps/documentation/places/web-service/session-pricing" track-type="bookNav" track-name="click" track-metadata-eventdetail="/maps/documentation/places/web-service/session-pricing" ><span class="devsite-nav-text" tooltip>Autocomplete (New) and session pricing</span></a></li></ul></div></li> <li class="devsite-nav-item devsite-nav-expandable"><div class="devsite-expandable-nav"> <a class="devsite-nav-toggle" aria-hidden="true"></a><div class="devsite-nav-title devsite-nav-title-no-path" tabindex="0" role="button"> <span class="devsite-nav-text" tooltip>Search along route</span> </div><ul class="devsite-nav-section"><li class="devsite-nav-item"><a href="/maps/documentation/places/web-service/sar-overview" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /maps/documentation/places/web-service/sar-overview" track-type="bookNav" track-name="click" track-metadata-eventdetail="/maps/documentation/places/web-service/sar-overview" ><span class="devsite-nav-text" tooltip>Overview</span></a></li><li class="devsite-nav-item"><a href="/maps/documentation/places/web-service/search-along-route" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /maps/documentation/places/web-service/search-along-route" track-type="bookNav" track-name="click" track-metadata-eventdetail="/maps/documentation/places/web-service/search-along-route" ><span class="devsite-nav-text" tooltip>Search along route</span></a></li><li class="devsite-nav-item"><a href="/maps/documentation/places/web-service/routing-summary" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /maps/documentation/places/web-service/routing-summary" track-type="bookNav" track-name="click" track-metadata-eventdetail="/maps/documentation/places/web-service/routing-summary" ><span class="devsite-nav-text" tooltip>Calculate routing summary</span></a></li><li class="devsite-nav-item"><a href="/maps/documentation/places/web-service/routing-summary-sar" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /maps/documentation/places/web-service/routing-summary-sar" track-type="bookNav" track-name="click" track-metadata-eventdetail="/maps/documentation/places/web-service/routing-summary-sar" ><span class="devsite-nav-text" tooltip>Combine routing summary with search along route</span></a></li></ul></div></li> <li class="devsite-nav-item devsite-nav-preview"><a href="/maps/documentation/places/web-service/maps-links" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /maps/documentation/places/web-service/maps-links" track-type="bookNav" track-name="click" track-metadata-eventdetail="/maps/documentation/places/web-service/maps-links" ><span class="devsite-nav-text" tooltip>Link to Google Maps</span><span class="devsite-nav-icon material-icons" data-icon="preview" data-title="Preview" aria-hidden="true"></span></a></li> <li class="devsite-nav-item devsite-nav-preview"><a href="/maps/documentation/places/web-service/content-reporting" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /maps/documentation/places/web-service/content-reporting" track-type="bookNav" track-name="click" track-metadata-eventdetail="/maps/documentation/places/web-service/content-reporting" ><span class="devsite-nav-text" tooltip>Report inappropriate content</span><span class="devsite-nav-icon material-icons" data-icon="preview" data-title="Preview" aria-hidden="true"></span></a></li> <li class="devsite-nav-item"><a href="/maps/documentation/places/web-service/client-libraries" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /maps/documentation/places/web-service/client-libraries" track-type="bookNav" track-name="click" track-metadata-eventdetail="/maps/documentation/places/web-service/client-libraries" ><span class="devsite-nav-text" tooltip>Client Libraries</span></a></li> <li class="devsite-nav-item devsite-nav-heading"><div class="devsite-nav-title devsite-nav-title-no-path"> <span class="devsite-nav-text" tooltip>Places API</span> </div></li> <li class="devsite-nav-item devsite-nav-expandable"><div class="devsite-expandable-nav"> <a class="devsite-nav-toggle" aria-hidden="true"></a><div class="devsite-nav-title devsite-nav-title-no-path" tabindex="0" role="button"> <span class="devsite-nav-text" tooltip>Use the Places APIs</span> </div><ul class="devsite-nav-section"><li class="devsite-nav-item devsite-nav-expandable"><div class="devsite-expandable-nav"> <a class="devsite-nav-toggle" aria-hidden="true"></a><div class="devsite-nav-title devsite-nav-title-no-path" tabindex="0" role="button"> <span class="devsite-nav-text" tooltip>Place Search</span> </div><ul class="devsite-nav-section"><li class="devsite-nav-item"><a href="/maps/documentation/places/web-service/search" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /maps/documentation/places/web-service/search" track-type="bookNav" track-name="click" track-metadata-eventdetail="/maps/documentation/places/web-service/search" ><span class="devsite-nav-text" tooltip>Overview</span></a></li><li class="devsite-nav-item"><a href="/maps/documentation/places/web-service/search-find-place" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /maps/documentation/places/web-service/search-find-place" track-type="bookNav" track-name="click" track-metadata-eventdetail="/maps/documentation/places/web-service/search-find-place" ><span class="devsite-nav-text" tooltip>Find Place</span></a></li><li class="devsite-nav-item"><a href="/maps/documentation/places/web-service/search-nearby" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /maps/documentation/places/web-service/search-nearby" track-type="bookNav" track-name="click" track-metadata-eventdetail="/maps/documentation/places/web-service/search-nearby" ><span class="devsite-nav-text" tooltip>Nearby Search</span></a></li><li class="devsite-nav-item"><a href="/maps/documentation/places/web-service/search-text" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /maps/documentation/places/web-service/search-text" track-type="bookNav" track-name="click" track-metadata-eventdetail="/maps/documentation/places/web-service/search-text" ><span class="devsite-nav-text" tooltip>Text Search</span></a></li></ul></div></li><li class="devsite-nav-item"><a href="/maps/documentation/places/web-service/details" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /maps/documentation/places/web-service/details" track-type="bookNav" track-name="click" track-metadata-eventdetail="/maps/documentation/places/web-service/details" ><span class="devsite-nav-text" tooltip>Place Details</span></a></li><li class="devsite-nav-item"><a href="/maps/documentation/places/web-service/photos" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /maps/documentation/places/web-service/photos" track-type="bookNav" track-name="click" track-metadata-eventdetail="/maps/documentation/places/web-service/photos" ><span class="devsite-nav-text" tooltip>Place Photos</span></a></li><li class="devsite-nav-item"><a href="/maps/documentation/places/web-service/autocomplete" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /maps/documentation/places/web-service/autocomplete" track-type="bookNav" track-name="click" track-metadata-eventdetail="/maps/documentation/places/web-service/autocomplete" ><span class="devsite-nav-text" tooltip>Place Autocomplete</span></a></li><li class="devsite-nav-item"><a href="/maps/documentation/places/web-service/query" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /maps/documentation/places/web-service/query" track-type="bookNav" track-name="click" track-metadata-eventdetail="/maps/documentation/places/web-service/query" ><span class="devsite-nav-text" tooltip>Query Autocomplete</span></a></li></ul></div></li> <li class="devsite-nav-item devsite-nav-expandable"><div class="devsite-expandable-nav"> <a class="devsite-nav-toggle" aria-hidden="true"></a><div class="devsite-nav-title devsite-nav-title-no-path" tabindex="0" role="button"> <span class="devsite-nav-text" tooltip>Work with place data</span> </div><ul class="devsite-nav-section"><li class="devsite-nav-item"><a href="/maps/documentation/places/web-service/supported_types" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /maps/documentation/places/web-service/supported_types" track-type="bookNav" track-name="click" track-metadata-eventdetail="/maps/documentation/places/web-service/supported_types" ><span class="devsite-nav-text" tooltip>Place Types</span></a></li><li class="devsite-nav-item"><a href="/maps/documentation/places/web-service/place-data-fields" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /maps/documentation/places/web-service/place-data-fields" track-type="bookNav" track-name="click" track-metadata-eventdetail="/maps/documentation/places/web-service/place-data-fields" ><span class="devsite-nav-text" tooltip>Place Data Fields</span></a></li><li class="devsite-nav-item"><a href="/maps/documentation/places/web-service/session-tokens" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /maps/documentation/places/web-service/session-tokens" track-type="bookNav" track-name="click" track-metadata-eventdetail="/maps/documentation/places/web-service/session-tokens" ><span class="devsite-nav-text" tooltip>Session Tokens</span></a></li></ul></div></li> <li class="devsite-nav-item"><a href="/maps/documentation/places/web-service/client-library" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /maps/documentation/places/web-service/client-library" track-type="bookNav" track-name="click" track-metadata-eventdetail="/maps/documentation/places/web-service/client-library" ><span class="devsite-nav-text" tooltip>Client Libraries</span></a></li> <li class="devsite-nav-item devsite-nav-heading"><div class="devsite-nav-title devsite-nav-title-no-path"> <span class="devsite-nav-text" tooltip>Migration Guide</span> </div></li> <li class="devsite-nav-item devsite-nav-expandable"><div class="devsite-expandable-nav"> <a class="devsite-nav-toggle" aria-hidden="true"></a><div class="devsite-nav-title devsite-nav-title-no-path" tabindex="0" role="button"> <span class="devsite-nav-text" tooltip>Migrate to Places APIs (New)</span> </div><ul class="devsite-nav-section"><li class="devsite-nav-item"><a href="/maps/documentation/places/web-service/migrate-overview" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /maps/documentation/places/web-service/migrate-overview" track-type="bookNav" track-name="click" track-metadata-eventdetail="/maps/documentation/places/web-service/migrate-overview" ><span class="devsite-nav-text" tooltip>Migration overview</span></a></li><li class="devsite-nav-item"><a href="/maps/documentation/places/web-service/migrate-nearby" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /maps/documentation/places/web-service/migrate-nearby" track-type="bookNav" track-name="click" track-metadata-eventdetail="/maps/documentation/places/web-service/migrate-nearby" ><span class="devsite-nav-text" tooltip>Migrate to Nearby Search (New)</span></a></li><li class="devsite-nav-item"><a href="/maps/documentation/places/web-service/migrate-text" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /maps/documentation/places/web-service/migrate-text" track-type="bookNav" track-name="click" track-metadata-eventdetail="/maps/documentation/places/web-service/migrate-text" ><span class="devsite-nav-text" tooltip>Migrate to Text Search (New)</span></a></li><li class="devsite-nav-item"><a href="/maps/documentation/places/web-service/migrate-details" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /maps/documentation/places/web-service/migrate-details" track-type="bookNav" track-name="click" track-metadata-eventdetail="/maps/documentation/places/web-service/migrate-details" ><span class="devsite-nav-text" tooltip>Migrate to Place Details (New)</span></a></li><li class="devsite-nav-item"><a href="/maps/documentation/places/web-service/migrate-photo" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /maps/documentation/places/web-service/migrate-photo" track-type="bookNav" track-name="click" track-metadata-eventdetail="/maps/documentation/places/web-service/migrate-photo" ><span class="devsite-nav-text" tooltip>Migrate to Place Photo (New)</span></a></li><li class="devsite-nav-item"><a href="/maps/documentation/places/web-service/migrate-autocomplete" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /maps/documentation/places/web-service/migrate-autocomplete" track-type="bookNav" track-name="click" track-metadata-eventdetail="/maps/documentation/places/web-service/migrate-autocomplete" ><span class="devsite-nav-text" tooltip>Migrate to Autocomplete (New)</span></a></li><li class="devsite-nav-item"><a href="/maps/documentation/places/web-service/migrate-response" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /maps/documentation/places/web-service/migrate-response" track-type="bookNav" track-name="click" track-metadata-eventdetail="/maps/documentation/places/web-service/migrate-response" ><span class="devsite-nav-text" tooltip>Migrate the Places API response</span></a></li></ul></div></li> <li class="devsite-nav-item"><a href="/maps/deprecations" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /maps/deprecations" track-type="bookNav" track-name="click" track-metadata-eventdetail="/maps/deprecations" ><span class="devsite-nav-text" tooltip>Deprecations</span></a></li> <li class="devsite-nav-item devsite-nav-heading"><div class="devsite-nav-title devsite-nav-title-no-path"> <span class="devsite-nav-text" tooltip>Best Practices</span> </div></li> <li class="devsite-nav-item"><a href="/maps/documentation/places/web-service/web-services-best-practices" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /maps/documentation/places/web-service/web-services-best-practices" track-type="bookNav" track-name="click" track-metadata-eventdetail="/maps/documentation/places/web-service/web-services-best-practices" ><span class="devsite-nav-text" tooltip>Web Services Best Practices</span></a></li> <li class="devsite-nav-item devsite-nav-heading"><div class="devsite-nav-title devsite-nav-title-no-path"> <span class="devsite-nav-text" tooltip>Billing and Monitoring</span> </div></li> <li class="devsite-nav-item"><a href="/maps/documentation/places/web-service/usage-and-billing" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /maps/documentation/places/web-service/usage-and-billing" track-type="bookNav" track-name="click" track-metadata-eventdetail="/maps/documentation/places/web-service/usage-and-billing" ><span class="devsite-nav-text" tooltip>Usage and Billing</span></a></li> <li class="devsite-nav-item"><a href="/maps/documentation/places/web-service/report-monitor" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /maps/documentation/places/web-service/report-monitor" track-type="bookNav" track-name="click" track-metadata-eventdetail="/maps/documentation/places/web-service/report-monitor" ><span class="devsite-nav-text" tooltip>Reporting and Monitoring</span></a></li> <li class="devsite-nav-item devsite-nav-heading"><div class="devsite-nav-title devsite-nav-title-no-path"> <span class="devsite-nav-text" tooltip>Policies and Terms</span> </div></li> <li class="devsite-nav-item"><a href="/maps/documentation/places/web-service/policies" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /maps/documentation/places/web-service/policies" track-type="bookNav" track-name="click" track-metadata-eventdetail="/maps/documentation/places/web-service/policies" ><span class="devsite-nav-text" tooltip>Places API Policies</span></a></li> <li class="devsite-nav-item devsite-nav-external"><a href="https://cloud.google.com/maps-platform/terms" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: https://cloud.google.com/maps-platform/terms" track-type="bookNav" track-name="click" track-metadata-eventdetail="https://cloud.google.com/maps-platform/terms" ><span class="devsite-nav-text" tooltip>Terms of Service</span><span class="devsite-nav-icon material-icons" data-icon="external" data-title="External" aria-hidden="true"></span></a></li> </ul> <ul class="devsite-nav-list" menu="Documentation" aria-label="Side menu" hidden> <li class="devsite-nav-item devsite-nav-heading"> <span class="devsite-nav-title" tooltip > <span class="devsite-nav-text" tooltip > Get Started </span> </span> </li> <li class="devsite-nav-item"> <a href="/maps/get-started" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Get Started with Google Maps Platform" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Get Started with Google Maps Platform </span> </a> </li> <li class="devsite-nav-item"> <a href="/maps/documentation/api-picker" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: API Picker" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > API Picker </span> </a> </li> <li class="devsite-nav-item"> <a href="/maps/billing-and-pricing/overview" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Billing &amp; Pricing" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Billing &amp; Pricing </span> </a> </li> <li class="devsite-nav-item"> <a href="https://mapsplatform.google.com/resources/trust-center" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Security &amp; Compliance" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Security &amp; Compliance </span> </a> </li> <li class="devsite-nav-item"> <a href="/maps/reporting-and-monitoring/overview" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Reporting &amp; Monitoring" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Reporting &amp; Monitoring </span> </a> </li> <li class="devsite-nav-item"> <a href="/maps/faq" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: FAQ" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > FAQ </span> </a> </li> <li class="devsite-nav-item"> <a href="/maps/support" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Support and Resources" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Support and Resources </span> </a> </li> <li class="devsite-nav-item"> <a href="/maps/support/care" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Customer Care" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Customer Care </span> </a> </li> <li class="devsite-nav-item"> <a href="/maps/incident-management" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Incident Management" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Incident Management </span> </a> </li> <li class="devsite-nav-item devsite-nav-heading"> <span class="devsite-nav-title" tooltip > <span class="devsite-nav-text" tooltip > Maps </span> </span> </li> <li class="devsite-nav-item"> <a href="/maps/documentation/javascript" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Maps JavaScript API" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Maps JavaScript API </span> </a> </li> <li class="devsite-nav-item"> <a href="/maps/documentation/android-sdk" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Maps SDK for Android" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Maps SDK for Android </span> </a> </li> <li class="devsite-nav-item"> <a href="/maps/documentation/ios-sdk" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Maps SDK for iOS" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Maps SDK for iOS </span> </a> </li> <li class="devsite-nav-item"> <a href="/maps/flutter-package/overview" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Google Maps for Flutter" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Google Maps for Flutter </span> </a> </li> <li class="devsite-nav-item"> <a href="/maps/documentation/embed" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Maps Embed API" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Maps Embed API </span> </a> </li> <li class="devsite-nav-item"> <a href="/maps/documentation/maps-static" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Maps Static API" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Maps Static API </span> </a> </li> <li class="devsite-nav-item"> <a href="/maps/documentation/streetview" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Street View Static API" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Street View Static API </span> </a> </li> <li class="devsite-nav-item"> <a href="/maps/documentation/urls" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Maps URLs" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Maps URLs </span> </a> </li> <li class="devsite-nav-item"> <a href="/maps/documentation/aerial-view" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Aerial View API" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Aerial View API </span> </a> </li> <li class="devsite-nav-item"> <a href="/maps/documentation/elevation" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Elevation API" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Elevation API </span> </a> </li> <li class="devsite-nav-item"> <a href="/maps/documentation/tile" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Map Tiles API" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Map Tiles API </span> </a> </li> <li class="devsite-nav-item"> <a href="/maps/documentation/datasets" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Maps Datasets API" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Maps Datasets API </span> </a> </li> <li class="devsite-nav-item"> <a href="/maps/documentation/web-components" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Web Components (Preview)" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Web Components (Preview) </span> </a> </li> <li class="devsite-nav-item devsite-nav-heading"> <span class="devsite-nav-title" tooltip > <span class="devsite-nav-text" tooltip > Routes </span> </span> </li> <li class="devsite-nav-item"> <a href="/maps/documentation/routes" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Routes API" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Routes API </span> </a> </li> <li class="devsite-nav-item"> <a href="/maps/documentation/navigation/android-sdk" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Navigation SDK for Android" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Navigation SDK for Android </span> </a> </li> <li class="devsite-nav-item"> <a href="/maps/documentation/navigation/ios-sdk" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Navigation SDK for iOS" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Navigation SDK for iOS </span> </a> </li> <li class="devsite-nav-item"> <a href="/maps/documentation/cross-platform/navigation" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Navigation for Flutter" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Navigation for Flutter </span> </a> </li> <li class="devsite-nav-item"> <a href="/maps/documentation/cross-platform/navigation" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Navigation for React Native" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Navigation for React Native </span> </a> </li> <li class="devsite-nav-item"> <a href="/maps/documentation/roads" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Roads API" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Roads API </span> </a> </li> <li class="devsite-nav-item"> <a href="/maps/documentation/directions" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Directions API" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Directions API </span> </a> </li> <li class="devsite-nav-item"> <a href="/maps/documentation/distance-matrix" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Distance Matrix API" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Distance Matrix API </span> </a> </li> <li class="devsite-nav-item"> <a href="/maps/documentation/route-optimization" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Route Optimization API" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Route Optimization API </span> </a> </li> <li class="devsite-nav-item devsite-nav-heading"> <span class="devsite-nav-title" tooltip > <span class="devsite-nav-text" tooltip > Solutions </span> </span> </li> <li class="devsite-nav-item"> <a href="/maps/solutions" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Industry solutions" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Industry solutions </span> </a> </li> <li class="devsite-nav-item"> <a href="/maps/documentation/mobility" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Mobility services" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Mobility services </span> </a> </li> <li class="devsite-nav-item devsite-nav-heading"> <span class="devsite-nav-title" tooltip > <span class="devsite-nav-text" tooltip > Places </span> </span> </li> <li class="devsite-nav-item"> <a href="/maps/documentation/places/web-service" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Places API" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Places API </span> </a> </li> <li class="devsite-nav-item"> <a href="/maps/documentation/places/android-sdk" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Places SDK for Android" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Places SDK for Android </span> </a> </li> <li class="devsite-nav-item"> <a href="/maps/documentation/places/ios-sdk" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Places SDK for iOS" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Places SDK for iOS </span> </a> </li> <li class="devsite-nav-item"> <a href="/maps/documentation/javascript/places" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Places Library, Maps JavaScript API" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Places Library, Maps JavaScript API </span> </a> </li> <li class="devsite-nav-item"> <a href="/maps/documentation/geocoding" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Geocoding API" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Geocoding API </span> </a> </li> <li class="devsite-nav-item"> <a href="/maps/documentation/geolocation" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Geolocation API" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Geolocation API </span> </a> </li> <li class="devsite-nav-item"> <a href="/maps/documentation/address-validation" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Address Validation API" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Address Validation API </span> </a> </li> <li class="devsite-nav-item"> <a href="/maps/documentation/timezone" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Time Zone API" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Time Zone API </span> </a> </li> <li class="devsite-nav-item"> <a href="/maps/documentation/places-insights" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Places Insights API (Preview)" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Places Insights API (Preview) </span> </a> </li> <li class="devsite-nav-item devsite-nav-heading"> <span class="devsite-nav-title" tooltip > <span class="devsite-nav-text" tooltip > Environment </span> </span> </li> <li class="devsite-nav-item"> <a href="/maps/documentation/air-quality" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Air Quality API" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Air Quality API </span> </a> </li> <li class="devsite-nav-item"> <a href="/maps/documentation/pollen" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Pollen API" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Pollen API </span> </a> </li> <li class="devsite-nav-item"> <a href="/maps/documentation/solar" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Solar API" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Solar API </span> </a> </li> <li class="devsite-nav-item devsite-nav-heading"> <span class="devsite-nav-title" tooltip > <span class="devsite-nav-text" tooltip > Additional Resources </span> </span> </li> <li class="devsite-nav-item"> <a href="/maps/api-security-best-practices" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: API Security Best Practices" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > API Security Best Practices </span> </a> </li> <li class="devsite-nav-item"> <a href="/maps/digital-signature" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Digital Signature Guide" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Digital Signature Guide </span> </a> </li> <li class="devsite-nav-item"> <a href="/maps/coverage" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Map Coverage Details" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Map Coverage Details </span> </a> </li> <li class="devsite-nav-item"> <a href="/maps/optimization-guide" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Optimization Guide" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Optimization Guide </span> </a> </li> <li class="devsite-nav-item"> <a href="/maps/software-support" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Mobile OS and software support" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Mobile OS and software support </span> </a> </li> <li class="devsite-nav-item"> <a href="/maps/launch-stages" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Launch stages" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Launch stages </span> </a> </li> <li class="devsite-nav-item"> <a href="/maps/deprecations" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Deprecations" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Deprecations </span> </a> </li> <li class="devsite-nav-item"> <a href="/maps/asset-tracking-plan" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Asset Tracking Plan" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Asset Tracking Plan </span> </a> </li> <li class="devsite-nav-item"> <a href="/maps/url-encoding" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: URL Encoding" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > URL Encoding </span> </a> </li> <li class="devsite-nav-item"> <a href="/maps/third-party-platforms/wordpress" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: WordPress Users" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > WordPress Users </span> </a> </li> </ul> <ul class="devsite-nav-list" menu="Community" aria-label="Side menu" hidden> <li class="devsite-nav-item"> <a href="https://stackoverflow.com/questions/tagged/google-maps" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: StackOverflow" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > StackOverflow </span> </a> </li> <li class="devsite-nav-item"> <a href="https://github.com/googlemaps/" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: GitHub" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > GitHub </span> </a> </li> <li class="devsite-nav-item"> <a href="https://www.youtube.com/c/GoogleMapsPlatform" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: YouTube" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > YouTube </span> </a> </li> <li class="devsite-nav-item"> <a href="https://discord.gg/f4hvx8Rp2q" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Discord" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Discord </span> </a> </li> <li class="devsite-nav-item"> <a href="https://twitter.com/GMapsPlatform" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: X (Twitter)" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > X (Twitter) </span> </a> </li> <li class="devsite-nav-item"> <a href="https://issuetracker.google.com/bookmark-groups/76561" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Issue Tracker" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Issue Tracker </span> </a> </li> <li class="devsite-nav-item"> <a href="https://devlibrary.withgoogle.com/products/maps" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Google Dev Library" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Google Dev Library </span> </a> </li> </ul> </div> </div> </nav> </devsite-book-nav> <section id="gc-wrapper"> <main role="main" class="devsite-main-content" has-book-nav > <devsite-content> <article class="devsite-article"><style> /* Styles inlined from /maps/styles/tos-cards.css */ /* Styles for ToS cards. */ /* Display for desktop. */ @media screen and (min-width: 1000px) { #tos-maincontainer { width: 670px; height: 285px; position: relative; border-radius: 4px; display: inline-table; } #tos-leftcolumn { float: left; width: 335px; padding-left: 24px; padding-right: 24px; padding-top: 2px; } #tos-contentwrapper { position: absolute; right: 0; } #tos-img { width: 435px; border-radius: 4px; } #tos-top { font-family: Roboto; font-weight: 500; margin-bottom: 10px; z-index: 1; position: relative; } } /* Adapt for devices. */ @media screen and (max-width: 1000px) { #tos-maincontainer { width: 335px; border-radius: 4px; } #tos-leftcolumn { width: 335px; padding-left: 24px; padding-right: 24px; padding-top: 2px; } #tos-contentwrapper { position: relative; height: 210px } #tos-img { border-radius: 4px; position: absolute; bottom: 0px; } #tos-top { font-family: Roboto; font-weight: 500; margin-bottom: 5px; z-index: 1; position: relative; } } #tos-head { color: #ffffff; font-size: 24px; font-family: Roboto; font-weight: 500; line-height: 28px; margin-bottom: 12px; z-index: 1; position: relative; } .tos-text { color: rgba(255,255,255,0.9); font-size: 15px; font-family: Roboto; font-weight: 400; line-height: 20px; z-index: 1; position: relative; } a.tos-link { color: #ffffff; font-weight: 500; } a.tos-link:hover { text-decoration: underline; } /* Unique background and text colors. */ .tos-01 { background-color: #bb6ac7; color: #673d70; } .tos-02 { background-color: #498bfc; color: #24467c; } .tos-03 { background-color: #84b2ff; color: #255fa9; } .tos-04 { background-color: #ffb850; color: #b07920; } .tos-05 { background-color: #ff8b82; color: #d03b31; } .tos-06 { background-color: #9876cd; color: #634293; } .tos-07 { background-color: #fe5555; color: #b23229; } .tos-08 { background-color: #6abb6c; color: #398143; } .tos-09 { background-color: #b58afe; color: #6c4e99; } </style><style> /* Styles inlined from /maps/documentation/local_extensions.css */ .version { text-align: right; } .code { color: #006000; font-family: "Courier", monospace; font-size: 100%; } .grid td { padding: 4px; border-collapse: collapse; border: 1px solid gray; } .header td { font-weight: bold; background: #EEEEEE; } .encodeBox { width: 550px; height: 40px; font-size: 14px; font-family: Courier; } .inputField { width: 160px; } #pointList { width: 300px; font-size: 12px; } #txtAddress { width: 14em; } .welcome { border: none; } .welcome td{ border: none; padding:0 10px 0 10px; } .number { background-color: #E5ECF9; text-align:center; vertical-align:middle; padding: 0 5px; } .leftpadding { padding: 0 0 0 10px; } .identifier { color: black; } /* List the contents inline to save vertical space */ .summarylist { margin-right: 4em; } .summarylist li { display: inline; margin: 0em; margin-right: 0.2em; line-height: 1.5em; } /* Self-links for Maps API for Flash */ a.self-link:link { color: #0000cc; text-decoration: none; } a.self-link:active { color: #0000cc; text-decoration: none; } a.self-link:visited { color: #0000cc; text-decoration: none; } /* Self-links for Maps API */ .self-link { cursor: pointer; } .blackbg { background: #333; } </style><style> /* Styles inlined from /maps/styles/common.css */ /* Enable Billing Modal Dialog Styles */ .devsite-enable-billing-dialog { left: 50%; margin-left: -274px; top: 25%; width: 548px; } .devsite-dialog-close { color: #747474; } #devsite-dialog-onload-billing-enabled { padding: 0; } #devsite-dialog-onload-billing-enabled .get-key-check { background: no-repeat #8cc152 center/72px url(/maps/images/lhimages/v2/check@2x.png); height: 150px; width: 100%; } #devsite-dialog-onload-billing-enabled .devsite-dialog-contents, #devsite-dialog-onload-billing-enabled .devsite-dialog-buttons { margin: 8px; } .devsite-enable-billing-dialog ol { list-style: none; margin: 40px 0; padding: 0; } .devsite-enable-billing-dialog li { counter-increment: step-counter; font-size: 14px; line-height: 16px; margin-bottom: 28px; } .devsite-enable-billing-dialog li::before { border-radius: 50%; border: 2px solid #ececec; color: #00bcd4; content: counter(step-counter); font-size: 14px; font-weight: 500; margin-right: 22px; padding: 6px 10px; } /* Style Wizard introduction */ .styleWizardIntroMain { border-radius: 3px; height: 500; width: 640; } .styleWizardIntroSixMapSamples { left: calc(50% - (500px / 2)); line-height: 1; position: relative; text-align: center; width: 500px; } .styleWizardIntroSample { border: 1px solid rgba(0,0,0,0.07); border-radius: 3px; box-shadow: 0 1px 12px 0 rgba(0,0,0,0.10); display: inline-block; height: 140px; margin: 10px; overflow: hidden; width: 140px; } .styleWizardIntroCaption { text-align: center; } /* TODO(cl/330601385) waiting on fix to be deployed */ .devsite-jsfiddle-hide { position:absolute; top: -99999px; left: -99999px; display:block; } /* Styles for /maps/solutions best practices content */ #bp-background { border-radius: 25px; background: #e8eaed; } #bp-heading span { float:left; margin-right:10px; position:relative; padding: 10px; } /* Use as <ul id="bp-bullet><li>{{ [bp|add]_bullet }}Text here... to have icons serve as the bullet symbol. */ #bp-bullet { list-style-type: none; text-indent: -20px; margin-left: 50px; } #platform-box { float: right; position: relative; width: 35%; padding: 20px 20px 0 20px; margin-left: 30px; margin-bottom: 30px; background-color: #ceead6; border-color: #e8eaed; border-style: solid; } #sb-box { float: right; position: relative; width: 25%; padding: 20px 20px 0 20px; margin-left: 30px; margin-bottom: 30px; background-color: #d2e3fc; border-color: #e8eaed; border-style: solid; } /** Table formatting used in the How to use, How to access, and Inputs and * outputs sections of the API overviews. You can leave the first column blank, * as shown in the How to access sections. For questions, contact @wildwood **/ .implementation-path tr td:first-of-type { background: var(--tenant-background-1) !important; max-width: 48px; vertical-align: top; } .implementation-path tr td:nth-of-type(2) { background: var(--tenant-background-1) !important; color: var(--tenant-primary-text-color); min-width: 200px; text-align: left; vertical-align: top; } .implementation-path tr td { color: var(--tenant-secondary-text-color); padding: 24px; } .implementation-path tr { border-top: var(--tenant-primary-border); vertical-align: top; } /** From docs-intro.css - This forms the bubbles with numbers in the above table. **/ .implementation-path .numbered { background: var(--tenant-numbered-row-background-color, #BDBDBD); border-radius: 50%; color: var(--tenant-inverted-text-color); display: inline-block; font-size: 20px; height: 36px; line-height: 36px; margin-right: 20px; text-align: center; vertical-align: top; width: 36px; position: relative; top:-8px; } </style><style> .center { text-align: center } </style> <div class="devsite-banner devsite-banner-announcement nocontent" > <div class="devsite-banner-message"> <div class="devsite-banner-message-text"> The next generation of the <b>Places API</b> is now available with the release of <a href="/maps/documentation/places/web-service/choose-api">Places API (New)</a>. </div> </div> </div> <div class="devsite-article-meta nocontent" role="navigation"> <ul class="devsite-breadcrumb-list" aria-label="Breadcrumb"> <li class="devsite-breadcrumb-item "> <a href="https://developers.google.com/" class="devsite-breadcrumb-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Breadcrumbs" data-value="1" track-type="globalNav" track-name="breadcrumb" track-metadata-position="1" track-metadata-eventdetail="" > Home </a> </li> <li class="devsite-breadcrumb-item "> <div class="devsite-breadcrumb-guillemet material-icons" aria-hidden="true"></div> <a href="https://developers.google.com/products" class="devsite-breadcrumb-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Breadcrumbs" data-value="2" track-type="globalNav" track-name="breadcrumb" track-metadata-position="2" track-metadata-eventdetail="" > Products </a> </li> <li class="devsite-breadcrumb-item "> <div class="devsite-breadcrumb-guillemet material-icons" aria-hidden="true"></div> <a href="https://developers.google.com/maps" class="devsite-breadcrumb-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Breadcrumbs" data-value="3" track-type="globalNav" track-name="breadcrumb" track-metadata-position="3" track-metadata-eventdetail="Google Maps Platform" > Google Maps Platform </a> </li> <li class="devsite-breadcrumb-item "> <div class="devsite-breadcrumb-guillemet material-icons" aria-hidden="true"></div> <a href="https://developers.google.com/maps/documentation" class="devsite-breadcrumb-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Breadcrumbs" data-value="4" track-type="globalNav" track-name="breadcrumb" track-metadata-position="4" track-metadata-eventdetail="" > Documentation </a> </li> <li class="devsite-breadcrumb-item "> <div class="devsite-breadcrumb-guillemet material-icons" aria-hidden="true"></div> <a href="https://developers.google.com/maps/documentation/places/web-service/overview" class="devsite-breadcrumb-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Breadcrumbs" data-value="5" track-type="globalNav" track-name="breadcrumb" track-metadata-position="5" track-metadata-eventdetail="Places API" > Places API </a> </li> <li class="devsite-breadcrumb-item "> <div class="devsite-breadcrumb-guillemet material-icons" aria-hidden="true"></div> <a href="https://developers.google.com/maps/documentation/places/web-service" class="devsite-breadcrumb-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Breadcrumbs" data-value="6" track-type="globalNav" track-name="breadcrumb" track-metadata-position="6" track-metadata-eventdetail="" > Guides </a> </li> </ul> <devsite-thumb-rating position="header"> </devsite-thumb-rating> </div> <devsite-feedback position="header" project-name="Places API" product-id="81777" bucket="" context="Places API Docs" version="t-devsite-webserver-20241114-r00-rc02.464922260396498922" data-label="Send Feedback Button" track-type="feedback" track-name="sendFeedbackLink" track-metadata-position="header" class="nocontent" project-icon="https://www.gstatic.com/devrel-devsite/prod/v870e399c64f7c43c99a3043db4b3a74327bb93d0914e84a0c3dba90bbfd67625/developers/images/touchicon-180-new.png" > <button> Send feedback </button> </devsite-feedback> <h1 class="devsite-page-title" tabindex="-1"> Place Autocomplete </h1> <devsite-feature-tooltip ack-key="AckCollectionsBookmarkTooltipDismiss" analytics-category="Site-Wide Custom Events" analytics-action-show="Callout Profile displayed" analytics-action-close="Callout Profile dismissed" analytics-label="Create Collection Callout" class="devsite-page-bookmark-tooltip nocontent" dismiss-button="true" id="devsite-collections-dropdown" dismiss-button-text="Dismiss" close-button-text="Got it"> <devsite-bookmark></devsite-bookmark> <span slot="popout-heading"> Stay organized with collections </span> <span slot="popout-contents"> Save and categorize content based on your preferences. </span> </devsite-feature-tooltip> <div class="devsite-page-title-meta"><devsite-view-release-notes></devsite-view-release-notes></div> <devsite-toc class="devsite-nav" depth="2" devsite-toc-embedded > </devsite-toc> <div class="devsite-article-body clearfix "> <style> .page_switcher { margin: 16px -40px; border-top: 1px solid #dadce0; border-bottom: 1px solid #dadce0; padding: 16px 40px; background-color: rgb(241, 243, 244); } </style> <div class="page_switcher"> <span style="margin-right:16px;font-weight:bold">Select platform:</span> <a class="button" class="gc-analytics-event" data-category="GMPPlatformSwitch" data-label="places_autocomplete_android" style="border-radius: 16px;height: 32px; line-height:30px;" title="View this page for the Android platform docs." href="/maps/documentation/places/android-sdk/autocomplete">Android</a> <a class="button" class="gc-analytics-event" data-category="GMPPlatformSwitch" data-label="places_autocomplete_ios" style="border-radius: 16px;height: 32px; line-height:30px;" title="View this page for the iOS platform docs." href="/maps/documentation/places/ios-sdk/autocomplete">iOS</a> <a class="button" class="gc-analytics-event" data-category="GMPPlatformSwitch" data-label="places_autocomplete_js" style="border-radius: 16px;height: 32px; line-height:30px;" title="View this page for the JavaScript platform docs." href="/maps/documentation/javascript/places-autocomplete">JavaScript</a> <a class="button button-primary" class="gc-analytics-event" data-category="GMPPlatformSwitch" data-label="places_autocomplete_web" style="border-radius: 16px;height: 32px; line-height:30px;" title="View this page for the Web Service platform docs." href="/maps/documentation/places/web-service/autocomplete">Web Service</a> </div> <section class="expandable"> <span class="showalways" style="color:#039be5"><strong>Note: Server-side and client-side libraries</strong></span> <p class="note">The Places API is also available with the <a href="/maps/documentation/places/web-service/client-library">Java Client, Python Client, Go Client and Node.js Client for Google Maps Services</a>. The Places API and the client libraries are for use in server applications. </p> <p class="note">If you're building a client-side application, take a look at the <a href="/maps/documentation/places/android-sdk">Places SDK for Android</a>, the <a href="/maps/documentation/places/ios-sdk">Places SDK for iOS</a>, and the <a href="/maps/documentation/javascript/places">Places Library, Maps JavaScript API</a>. </p> </section> <p>The Place Autocomplete service is a web service that returns place predictions in response to an HTTP request. The request specifies a textual search string and optional geographic bounds. The service can be used to provide autocomplete functionality for text-based geographic searches, by returning places such as businesses, addresses and points of interest as a user types.</p> <h2 id="place_autocomplete_requests" data-text="Place Autocomplete requests" tabindex="-1">Place Autocomplete requests</h2> <p class="note">The Place Autocomplete service is part of the Places API and shares an <a href="/maps/documentation/places/web-service/get-api-key">API key</a> and quotas with the <a href="/maps/documentation/places/web-service/overview">Places API</a>.</p> <aside class="note"><strong>Note:</strong> You can use Place Autocomplete even without a map. If you do show a map, it must be a Google map. When you display predictions from the Place Autocomplete service without a map, you must include the Google logo displayed inline with the search field/results. For more information, see <a href="/maps/documentation/places/web-service/policies#logo">Displaying the Google logo and attributions</a>. </aside> <p>The Place Autocomplete service can match on full words and substrings, resolving place names, addresses, and <a href="https://plus.codes" class="external">plus codes</a>. Applications can therefore send queries as the user types, to provide on-the-fly place predictions.</p> <p>You must properly format plus codes. This means you must URL-escape the plus sign to <code translate="no" dir="ltr">%2B</code>, and you must URL-escape spaces to <code translate="no" dir="ltr">%20</code>.</p> <ul> <li><strong>global code</strong> is a four character area code, and six character or longer local code. For example, the URL-escape global code <code translate="no" dir="ltr">849VCWC8+R9</code> is <code translate="no" dir="ltr">849VCWC8%2BR9</code>.</li> <li><strong>compound code</strong> is a six character (or longer) local code with an explicit location. For example, the URL-escaped compound code <code translate="no" dir="ltr">CWC8+R9 Mountain View, CA, USA</code> is <code translate="no" dir="ltr">CWC8%2BR9%20Mountain%20View%20CA%20USA</code>.</li> </ul> <p>The returned predictions are designed to be presented to the user to aid them in selecting the desired place. You can send a <a href="/maps/documentation/places/web-service/details#PlaceDetailsRequests">Place Details request</a> for more information about any of the places which are returned.</p> <p>A Place Autocomplete request is an HTTP URL of the following form:</p> <div></div><devsite-code><pre class="notranslate" dir="ltr" is-upgraded> https://maps.googleapis.com/maps/api/place/autocomplete/<em>output</em>?<em>parameters</em> </pre></devsite-code> <p>where <code translate="no" dir="ltr">output</code> may be either of the following values:</p> <ul> <li><code translate="no" dir="ltr">json</code> (recommended) indicates output in JavaScript Object Notation (JSON)</li> <li><code translate="no" dir="ltr">xml</code> indicates output as XML</li> </ul> <p>Certain parameters are required to initiate a Place Autocomplete request. As is standard in URLs, all parameters are separated using the ampersand (<code translate="no" dir="ltr">&amp;</code>) character. The list of parameters and their possible values are enumerated below.</p> <style> .nonref-property-description p:first-of-type, .ref-property-description p:first-of-type { margin-top: 0 !important;} .nonref-property-description p:last-of-type, .ref-property-description p:last-of-type { margin-bottom: 0 !important;} .schema-object-property-key.add-link { padding-right: 40px !important; font-size: inherit; } .schema-object-property-key.deprecated-item, .parameter-name.deprecated-item { text-decoration: line-through; } </style> <div data-code-snippet="true" data-github-path="googledata/devsite/content/en/maps/_openapi-specification/dist/documentation/parameters/maps_http_parameters_placeautocomplete.html" data-git-revision="main" class="prettyprint notranslate lang-json" ><h2 id="required-parameters" data-text="Required parameters" tabindex="-1">Required parameters</h2><ul><li><h3 class="parameter-name" id="input" data-text="input" tabindex="-1">input</h3><p> The text string on which to search. The Place Autocomplete service will return candidate matches based on this string and order results based on their perceived relevance. </p></li></ul><h2 id="optional-parameters" data-text="Optional parameters" tabindex="-1">Optional parameters</h2><ul><li><h3 class="parameter-name" id="components" data-text="components" tabindex="-1">components</h3><p> A grouping of places to which you would like to restrict your results. Currently, you can use components to filter by up to 5 countries. Countries must be passed as a two character, ISO 3166-1 Alpha-2 compatible country code. For example: <code translate="no" dir="ltr">components=country:fr</code> would restrict your results to places within France. Multiple countries must be passed as multiple <code translate="no" dir="ltr">country:XX</code> filters, with the pipe character <code translate="no" dir="ltr">|</code> as a separator. For example: <code translate="no" dir="ltr">components=country:us|country:pr|country:vi|country:gu|country:mp</code > would restrict your results to places within the United States and its unincorporated organized territories. </p><div class="note"><strong>Note:</strong> If you receive unexpected results with a country code, verify that you are using a code which includes the countries, dependent territories, and special areas of geographical interest you intend. You can find code information at <a href="https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes" target="blank" class="external" >Wikipedia: List of ISO 3166 country codes</a > or the <a href="https://www.iso.org/obp/ui/#search" target="blank" class="external" >ISO Online Browsing Platform</a >. </div></li><li><h3 class="parameter-name" id="language" data-text="language" tabindex="-1">language</h3><p>The language in which to return results.</p><ul><li> See the <a href="https://developers.google.com/maps/faq#languagesupport" >list of supported languages</a >. Google often updates the supported languages, so this list may not be exhaustive. </li><li> If <code translate="no" dir="ltr">language</code> is not supplied, the API attempts to use the preferred language as specified in the <code translate="no" dir="ltr">Accept-Language</code> header. </li><li> 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. </li><li> If a name is not available in the preferred language, the API uses the closest match. </li><li> 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, <em>utca</em> and <em>tér</em> are synonyms for street in Hungarian. </li></ul></li><li><h3 class="parameter-name" id="location" data-text="location" tabindex="-1">location</h3><p> The point around which to retrieve place information. This must be specified as <code translate="no" dir="ltr">latitude,longitude</code>. The <code translate="no" dir="ltr">radius</code> parameter must also be provided when specifying a location. If <code translate="no" dir="ltr">radius</code> is not provided, the <code translate="no" dir="ltr">location</code> parameter is ignored. </p><div class="note"> When using the Text Search API, the `location` parameter may be overriden if the `query` contains an explicit location such as `Market in Barcelona`. </div></li><li><h3 class="parameter-name" id="locationbias" data-text="locationbias" tabindex="-1">locationbias</h3><p> Prefer results in a specified area, by specifying either a radius plus lat/lng, or two lat/lng pairs representing the points of a rectangle. If this parameter is not specified, the API uses IP address biasing by default. </p><ul><li> IP bias: Instructs the API to use IP address biasing. Pass the string <code translate="no" dir="ltr">ipbias</code> (this option has no additional parameters). </li><li> Circular: A string specifying radius in meters, plus lat/lng in decimal degrees. Use the following format: <code translate="no" dir="ltr">circle:radius@lat,lng</code>. </li><li> Rectangular: A string specifying two lat/lng pairs in decimal degrees, representing the south/west and north/east points of a rectangle. Use the following format:<code translate="no" dir="ltr">rectangle:south,west|north,east</code>. Note that east/west values are wrapped to the range -180, 180, and north/south values are clamped to the range -90, 90. </li></ul></li><li><h3 class="parameter-name" id="locationrestriction" data-text="locationrestriction" tabindex="-1">locationrestriction</h3><p> Restrict results to a specified area, by specifying either a radius plus lat/lng, or two lat/lng pairs representing the points of a rectangle. </p><ul><li> Circular: A string specifying radius in meters, plus lat/lng in decimal degrees. Use the following format: <code translate="no" dir="ltr">circle:radius@lat,lng</code>. </li><li> Rectangular: A string specifying two lat/lng pairs in decimal degrees, representing the south/west and north/east points of a rectangle. Use the following format:<code translate="no" dir="ltr">rectangle:south,west|north,east</code>. Note that east/west values are wrapped to the range -180, 180, and north/south values are clamped to the range -90, 90. </li></ul></li><li><h3 class="parameter-name" id="offset" data-text="offset" tabindex="-1">offset</h3><p> The position, in the input term, of the last character that the service uses to match predictions. For example, if the input is <code translate="no" dir="ltr">Google</code> and the offset is 3, the service will match on <code translate="no" dir="ltr">Goo</code>. The string determined by the offset is matched against the first word in the input term only. For example, if the input term is <code translate="no" dir="ltr">Google abc</code> and the offset is 3, the service will attempt to match against <code translate="no" dir="ltr">Goo abc</code>. If no offset is supplied, the service will use the whole term. The offset should generally be set to the position of the text caret. </p></li><li><h3 class="parameter-name" id="origin" data-text="origin" tabindex="-1">origin</h3><p> The origin point from which to calculate straight-line distance to the destination (returned as <code translate="no" dir="ltr">distance_meters</code>). If this value is omitted, straight-line distance will not be returned. Must be specified as <code translate="no" dir="ltr">latitude,longitude</code>. </p></li><li><h3 class="parameter-name" id="radius" data-text="radius" tabindex="-1">radius</h3><p> Defines the distance (in meters) within which to return place results. You may bias results to a specified circle by passing a <code translate="no" dir="ltr">location</code> and a <code translate="no" dir="ltr">radius</code> parameter. Doing so instructs the Places service to <em>prefer</em> showing results within that circle; results outside of the defined area may still be displayed. </p><p> The radius will automatically be clamped to a maximum value depending on the type of search and other parameters. </p><ul><li>Autocomplete: 50,000 meters</li><li> Nearby Search: <ul><li>with <code translate="no" dir="ltr">keyword</code> or <code translate="no" dir="ltr">name</code>: 50,000 meters</li><li> without <code translate="no" dir="ltr">keyword</code> or <code translate="no" dir="ltr">name</code><ul><li> Up to 50,000 meters, adjusted dynamically based on area density, independent of <code translate="no" dir="ltr">rankby</code> parameter. </li><li> When using <code translate="no" dir="ltr">rankby=distance</code>, the radius parameter will not be accepted, and will result in an <code translate="no" dir="ltr">INVALID_REQUEST</code>. </li></ul></li></ul></li><li>Query Autocomplete: 50,000 meters</li><li>Text Search: 50,000 meters</li></ul></li><li><h3 class="parameter-name" id="region" data-text="region" tabindex="-1">region</h3><p> The region code, specified as a <a href="https://en.wikipedia.org/wiki/List_of_Internet_top-level_domains#Country_code_top-level_domains" >ccTLD ("top-level domain")</a > two-character value. Most ccTLD codes are identical to ISO 3166-1 codes, with some notable exceptions. For example, the United Kingdom's ccTLD is "uk" (.co.uk) while its ISO 3166-1 code is "gb" (technically for the entity of "The United Kingdom of Great Britain and Northern Ireland"). </p></li><li><h3 class="parameter-name" id="sessiontoken" data-text="sessiontoken" tabindex="-1">sessiontoken</h3><p> A random string which identifies an autocomplete <a href="https://developers.google.com/maps/documentation/places/web-service/details#session_tokens" >session</a > for billing purposes. </p><p> The session begins when the user starts typing a query, and concludes when they select a place and a call to Place Details is made. Each session can have multiple queries, followed by one place selection. The API key(s) used for each request within a session must belong to the same Google Cloud Console project. Once a session has concluded, the token is no longer valid; your app must generate a fresh token for each session. If the <code translate="no" dir="ltr">sessiontoken</code> parameter is omitted, or if you reuse a session token, the session is charged as if no session token was provided (each request is billed separately). </p><p>We recommend the following guidelines:</p><ul><li>Use session tokens for all autocomplete sessions.</li><li> Generate a fresh token for each session. Using a version 4 UUID is recommended. </li><li> Ensure that the API key(s) used for all Place Autocomplete and Place Details requests within a session belong to the same Cloud Console project. </li><li> Be sure to pass a unique session token for each new session. Using the same token for more than one session will result in each request being billed individually. </li></ul></li><li><h3 class="parameter-name" id="strictbounds" data-text="strictbounds" tabindex="-1">strictbounds</h3><p> Returns only those places that are strictly within the region defined by <code translate="no" dir="ltr">location</code> and <code translate="no" dir="ltr">radius</code>. This is a restriction, rather than a bias, meaning that results outside this region will not be returned even if they match the user input. </p></li><li><h3 class="parameter-name" id="types" data-text="types" tabindex="-1">types</h3><p> You can restrict results from a Place Autocomplete request to be of a certain type by passing the <code translate="no" dir="ltr">types</code> parameter. This parameter specifies a type or a type collection, as listed in <a href="/maps/documentation/places/web-service/supported_types" >Place Types</a >. If nothing is specified, all types are returned. </p><p>A place can only have a <strong>single primary type</strong> from types listed in <a href="/maps/documentation/places/web-service/supported_types#table1">Table 1</a> or <a href="/maps/documentation/places/web-service/supported_types#table2">Table 2</a>. For example, a hotel where food is served may by returned only with <code translate="no" dir="ltr">types=lodging</code> and not with <code translate="no" dir="ltr">types=restaurant</code>. </p><p> For the value of the <code translate="no" dir="ltr">types</code> parameter you can specify either: </p><ul><li><p> Up to five values from <a href="/maps/documentation/places/web-service/supported_types#table1" >Table 1</a > or <a href="/maps/documentation/places/web-service/supported_types#table2" >Table 2</a >. For multiple values, separate each value with a <code translate="no" dir="ltr">|</code> (vertical bar). For example: </p><p><code translate="no" dir="ltr">types=book_store|cafe</code></p></li><li><p> Any single supported filter in <a href="/maps/documentation/places/web-service/supported_types#table3" >Table 3</a >. You cannot mix type collections. </p></li></ul><aside class="note"><strong>Note:</strong> Although <code translate="no" dir="ltr">geocode</code> and <code translate="no" dir="ltr">establishment</code> are part of Table 2, they cannot be combined with any other type in Tables 1, 2, or 3 in Place Autocomplete request filters.</aside><p> The request will be rejected with an <code translate="no" dir="ltr">INVALID_REQUEST</code> error if: </p><ul><li>More than five types are specified.</li><li>Any unrecognized types are present.</li><li> Any types from in <a href="/maps/documentation/places/web-service/supported_types#table1" >Table 1</a > or <a href="/maps/documentation/places/web-service/supported_types#table2" >Table 2</a > are mixed with any of the filters in <a href="/maps/documentation/places/web-service/supported_types#table3" >Table 3</a >. </li></ul><aside><b>Note:</b> The <code translate="no" dir="ltr">types</code> parameter only works on the primary type of the place, not all types associated with the place. Although every place has a primary type, not every primary type is supported by Places API (New). Supported types include those listed in <a href="/maps/documentation/places/web-service/supported_types#table1">Table 1</a> or <a href="/maps/documentation/places/web-service/supported_types#table2">Table 2</a>.</aside></li></ul></div> <h2 id="example_autocomplete_requests" data-text="Place Autocomplete examples" tabindex="-1">Place Autocomplete examples</h2> <p>A request for establishments containing the string "Amoeba" within an area centered in San Francisco, CA:</p> <div id="maps_http_places_autocomplete_amoeba-code-sample"> <div class="ds-selector-tabs"> <section> <h3 id="maps_http_places_autocomplete_amoeba-txt" data-text="URL" tabindex="-1">URL</h3> <div></div><devsite-code><pre data-code-snippet="true" data-github-path="googledata/devsite/content/en/maps/_openapi-specification/dist/snippets/maps_http_places_autocomplete_amoeba/maps_http_places_autocomplete_amoeba.txt" data-git-revision="main" data-region-tag="maps_http_places_autocomplete_amoeba" class=" devsite-click-to-copy notranslate" dir="ltr" is-upgraded syntax="Carbon"><span class="devsite-syntax-nx">https</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-c1">//maps.googleapis.com/maps/api/place/autocomplete/json</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">?</span><span class="devsite-syntax-nx">input</span><span class="devsite-syntax-p">=</span><span class="devsite-syntax-nx">amoeba</span> <span class="devsite-syntax-w"> </span>&amp;<span class="devsite-syntax-nx">location</span><span class="devsite-syntax-p">=</span><span class="devsite-syntax-m devsite-syntax-m-Double">37.76999</span><span class="devsite-syntax-o">%</span><span class="devsite-syntax-mi">2</span><span class="devsite-syntax-nx">C</span><span class="devsite-syntax-o">-</span><span class="devsite-syntax-m devsite-syntax-m-Double">122.44696</span> <span class="devsite-syntax-w"> </span>&amp;<span class="devsite-syntax-nx">radius</span><span class="devsite-syntax-p">=</span><span class="devsite-syntax-mi">500</span> <span class="devsite-syntax-w"> </span>&amp;<span class="devsite-syntax-nx">types</span><span class="devsite-syntax-p">=</span><span class="devsite-syntax-nx">establishment</span> <span class="devsite-syntax-w"> </span>&amp;<span class="devsite-syntax-nx">key</span><span class="devsite-syntax-p">=</span><span class="devsite-syntax-nx">YOUR_API_KEY</span></pre></devsite-code> </section> <section> <h3 id="maps_http_places_autocomplete_amoeba-sh" data-text="cURL" tabindex="-1">cURL</h3> <div></div><devsite-code><pre data-code-snippet="true" data-github-path="googledata/devsite/content/en/maps/_openapi-specification/dist/snippets/maps_http_places_autocomplete_amoeba/maps_http_places_autocomplete_amoeba.sh" data-git-revision="main" data-region-tag="maps_http_places_autocomplete_amoeba" class=" devsite-click-to-copy notranslate" dir="ltr" is-upgraded syntax="Bash">curl<span class="devsite-syntax-w"> </span>-L<span class="devsite-syntax-w"> </span>-X<span class="devsite-syntax-w"> </span>GET<span class="devsite-syntax-w"> </span><span class="devsite-syntax-s1">'https://maps.googleapis.com/maps/api/place/autocomplete/json?input=amoeba&amp;types=establishment&amp;location=37.76999%2C-122.44696&amp;radius=500&amp;key=YOUR_API_KEY'</span></pre></devsite-code> </section> </div> </div> <p>The same request, restricted to results within 500 meters of Ashbury St &amp; Haight St, San Francisco:</p> <div id="maps_http_places_autocomplete_amoeba_strict-code-sample"> <div class="ds-selector-tabs"> <section> <h3 id="maps_http_places_autocomplete_amoeba_strict-txt" data-text="URL" tabindex="-1">URL</h3> <div></div><devsite-code><pre data-code-snippet="true" data-github-path="googledata/devsite/content/en/maps/_openapi-specification/dist/snippets/maps_http_places_autocomplete_amoeba_strict/maps_http_places_autocomplete_amoeba_strict.txt" data-git-revision="main" data-region-tag="maps_http_places_autocomplete_amoeba_strict" class=" devsite-click-to-copy notranslate" dir="ltr" is-upgraded syntax="Carbon"><span class="devsite-syntax-nx">https</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-c1">//maps.googleapis.com/maps/api/place/autocomplete/json</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">?</span><span class="devsite-syntax-nx">input</span><span class="devsite-syntax-p">=</span><span class="devsite-syntax-nx">amoeba</span> <span class="devsite-syntax-w"> </span>&amp;<span class="devsite-syntax-nx">location</span><span class="devsite-syntax-p">=</span><span class="devsite-syntax-m devsite-syntax-m-Double">37.76999</span><span class="devsite-syntax-o">%</span><span class="devsite-syntax-mi">2</span><span class="devsite-syntax-nx">C</span><span class="devsite-syntax-o">-</span><span class="devsite-syntax-m devsite-syntax-m-Double">122.44696</span> <span class="devsite-syntax-w"> </span>&amp;<span class="devsite-syntax-nx">radius</span><span class="devsite-syntax-p">=</span><span class="devsite-syntax-mi">500</span> <span class="devsite-syntax-w"> </span>&amp;<span class="devsite-syntax-nx">strictbounds</span><span class="devsite-syntax-p">=</span><span class="devsite-syntax-kc">true</span> <span class="devsite-syntax-w"> </span>&amp;<span class="devsite-syntax-nx">types</span><span class="devsite-syntax-p">=</span><span class="devsite-syntax-nx">establishment</span> <span class="devsite-syntax-w"> </span>&amp;<span class="devsite-syntax-nx">key</span><span class="devsite-syntax-p">=</span><span class="devsite-syntax-nx">YOUR_API_KEY</span></pre></devsite-code> </section> <section> <h3 id="maps_http_places_autocomplete_amoeba_strict-sh" data-text="cURL" tabindex="-1">cURL</h3> <div></div><devsite-code><pre data-code-snippet="true" data-github-path="googledata/devsite/content/en/maps/_openapi-specification/dist/snippets/maps_http_places_autocomplete_amoeba_strict/maps_http_places_autocomplete_amoeba_strict.sh" data-git-revision="main" data-region-tag="maps_http_places_autocomplete_amoeba_strict" class=" devsite-click-to-copy notranslate" dir="ltr" is-upgraded syntax="Bash">curl<span class="devsite-syntax-w"> </span>-L<span class="devsite-syntax-w"> </span>-X<span class="devsite-syntax-w"> </span>GET<span class="devsite-syntax-w"> </span><span class="devsite-syntax-s1">'https://maps.googleapis.com/maps/api/place/autocomplete/json?input=amoeba&amp;types=establishment&amp;location=37.76999%2C-122.44696&amp;radius=500&amp;strictbounds=true&amp;key=YOUR_API_KEY'</span></pre></devsite-code> </section> </div> </div> <p>A request for addresses containing "Vict" with results in French:</p> <div id="maps_http_places_autocomplete_fr-code-sample"> <div class="ds-selector-tabs"> <section> <h3 id="maps_http_places_autocomplete_fr-txt" data-text="URL" tabindex="-1">URL</h3> <div></div><devsite-code><pre data-code-snippet="true" data-github-path="googledata/devsite/content/en/maps/_openapi-specification/dist/snippets/maps_http_places_autocomplete_fr/maps_http_places_autocomplete_fr.txt" data-git-revision="main" data-region-tag="maps_http_places_autocomplete_fr" class=" devsite-click-to-copy notranslate" dir="ltr" is-upgraded syntax="Carbon"><span class="devsite-syntax-nx">https</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-c1">//maps.googleapis.com/maps/api/place/autocomplete/json</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">?</span><span class="devsite-syntax-nx">input</span><span class="devsite-syntax-p">=</span><span class="devsite-syntax-nx">Vict</span> <span class="devsite-syntax-w"> </span>&amp;<span class="devsite-syntax-nx">language</span><span class="devsite-syntax-p">=</span><span class="devsite-syntax-nx">fr</span> <span class="devsite-syntax-w"> </span>&amp;<span class="devsite-syntax-nx">types</span><span class="devsite-syntax-p">=</span><span class="devsite-syntax-nx">geocode</span> <span class="devsite-syntax-w"> </span>&amp;<span class="devsite-syntax-nx">key</span><span class="devsite-syntax-p">=</span><span class="devsite-syntax-nx">YOUR_API_KEY</span></pre></devsite-code> </section> <section> <h3 id="maps_http_places_autocomplete_fr-sh" data-text="cURL" tabindex="-1">cURL</h3> <div></div><devsite-code><pre data-code-snippet="true" data-github-path="googledata/devsite/content/en/maps/_openapi-specification/dist/snippets/maps_http_places_autocomplete_fr/maps_http_places_autocomplete_fr.sh" data-git-revision="main" data-region-tag="maps_http_places_autocomplete_fr" class=" devsite-click-to-copy notranslate" dir="ltr" is-upgraded syntax="Bash">curl<span class="devsite-syntax-w"> </span>-L<span class="devsite-syntax-w"> </span>-X<span class="devsite-syntax-w"> </span>GET<span class="devsite-syntax-w"> </span><span class="devsite-syntax-s1">'https://maps.googleapis.com/maps/api/place/autocomplete/json?input=Vict&amp;types=geocode&amp;language=fr&amp;key=YOUR_API_KEY'</span></pre></devsite-code> </section> </div> </div> <p>A request for cities containing "Vict" with results in Brazilian Portuguese:</p> <div id="maps_http_places_autocomplete_pt_br-code-sample"> <div class="ds-selector-tabs"> <section> <h3 id="maps_http_places_autocomplete_pt_br-txt" data-text="URL" tabindex="-1">URL</h3> <div></div><devsite-code><pre data-code-snippet="true" data-github-path="googledata/devsite/content/en/maps/_openapi-specification/dist/snippets/maps_http_places_autocomplete_pt_br/maps_http_places_autocomplete_pt_br.txt" data-git-revision="main" data-region-tag="maps_http_places_autocomplete_pt_br" class=" devsite-click-to-copy notranslate" dir="ltr" is-upgraded syntax="Carbon"><span class="devsite-syntax-nx">https</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-c1">//maps.googleapis.com/maps/api/place/autocomplete/json</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">?</span><span class="devsite-syntax-nx">input</span><span class="devsite-syntax-p">=</span><span class="devsite-syntax-nx">Vict</span> <span class="devsite-syntax-w"> </span>&amp;<span class="devsite-syntax-nx">language</span><span class="devsite-syntax-p">=</span><span class="devsite-syntax-nx">pt_BR</span> <span class="devsite-syntax-w"> </span>&amp;<span class="devsite-syntax-nx">types</span><span class="devsite-syntax-p">=</span><span class="devsite-syntax-o">%</span><span class="devsite-syntax-mi">28</span><span class="devsite-syntax-nx">cities</span><span class="devsite-syntax-o">%</span><span class="devsite-syntax-mi">29</span> <span class="devsite-syntax-w"> </span>&amp;<span class="devsite-syntax-nx">key</span><span class="devsite-syntax-p">=</span><span class="devsite-syntax-nx">YOUR_API_KEY</span></pre></devsite-code> </section> <section> <h3 id="maps_http_places_autocomplete_pt_br-sh" data-text="cURL" tabindex="-1">cURL</h3> <div></div><devsite-code><pre data-code-snippet="true" data-github-path="googledata/devsite/content/en/maps/_openapi-specification/dist/snippets/maps_http_places_autocomplete_pt_br/maps_http_places_autocomplete_pt_br.sh" data-git-revision="main" data-region-tag="maps_http_places_autocomplete_pt_br" class=" devsite-click-to-copy notranslate" dir="ltr" is-upgraded syntax="Bash">curl<span class="devsite-syntax-w"> </span>-L<span class="devsite-syntax-w"> </span>-X<span class="devsite-syntax-w"> </span>GET<span class="devsite-syntax-w"> </span><span class="devsite-syntax-s1">'https://maps.googleapis.com/maps/api/place/autocomplete/json?input=Vict&amp;types=(cities)&amp;language=pt_BR&amp;key=YOUR_API_KEY'</span></pre></devsite-code> </section> </div> </div> <p>Note that you'll need to replace the <a href="/maps/documentation/places/web-service/get-api-key">API key</a> in these examples with your own key.</p> <!-- Custom anchor used by /places/_includes/_autocomplete_best_practices.html --> <a name="programmatic-response"></a> <h2 id="place_autocomplete_responses" data-text="Place Autocomplete response" tabindex="-1">Place Autocomplete response</h2> <p>Place Autocomplete responses are returned in the format indicated by the <code translate="no" dir="ltr">output</code> flag within the request's URL path. The results below are indicative of what may be returned for a query with the following parameters:</p> <div id="maps_http_places_autocomplete_paris-code-sample"> <div class="ds-selector-tabs"> <section> <h3 id="maps_http_places_autocomplete_paris-txt" data-text="URL" tabindex="-1">URL</h3> <div></div><devsite-code><pre data-code-snippet="true" data-github-path="googledata/devsite/content/en/maps/_openapi-specification/dist/snippets/maps_http_places_autocomplete_paris/maps_http_places_autocomplete_paris.txt" data-git-revision="main" data-region-tag="maps_http_places_autocomplete_paris" class=" devsite-click-to-copy notranslate" dir="ltr" is-upgraded syntax="Carbon"><span class="devsite-syntax-nx">https</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-c1">//maps.googleapis.com/maps/api/place/autocomplete/json</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">?</span><span class="devsite-syntax-nx">input</span><span class="devsite-syntax-p">=</span><span class="devsite-syntax-nx">Paris</span> <span class="devsite-syntax-w"> </span>&amp;<span class="devsite-syntax-nx">types</span><span class="devsite-syntax-p">=</span><span class="devsite-syntax-nx">geocode</span> <span class="devsite-syntax-w"> </span>&amp;<span class="devsite-syntax-nx">key</span><span class="devsite-syntax-p">=</span><span class="devsite-syntax-nx">YOUR_API_KEY</span></pre></devsite-code> </section> <section> <h3 id="maps_http_places_autocomplete_paris-sh" data-text="cURL" tabindex="-1">cURL</h3> <div></div><devsite-code><pre data-code-snippet="true" data-github-path="googledata/devsite/content/en/maps/_openapi-specification/dist/snippets/maps_http_places_autocomplete_paris/maps_http_places_autocomplete_paris.sh" data-git-revision="main" data-region-tag="maps_http_places_autocomplete_paris" class=" devsite-click-to-copy notranslate" dir="ltr" is-upgraded syntax="Bash">curl<span class="devsite-syntax-w"> </span>-L<span class="devsite-syntax-w"> </span>-X<span class="devsite-syntax-w"> </span>GET<span class="devsite-syntax-w"> </span><span class="devsite-syntax-s1">'https://maps.googleapis.com/maps/api/place/autocomplete/json?input=Paris&amp;types=geocode&amp;key=YOUR_API_KEY'</span></pre></devsite-code> </section> </div> </div> <div> <devsite-selector> <section><h3 id="json" data-text="JSON" tabindex="-1">JSON</h3> <div></div><devsite-code><pre style="max-height: 400px; overflow: scroll;" data-code-snippet="true" data-github-path="googledata/devsite/content/en/maps/_openapi-specification/specification/responses/maps_http_places_autocomplete_paris_response.yml" data-git-revision="main" class="devsite-click-to-copy notranslate" dir="ltr" is-upgraded syntax="JSON"><span class="devsite-syntax-p">{</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"predictions"</span><span class="devsite-syntax-p">:</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">[</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">{</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"description"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-s2">"Paris, France"</span><span class="devsite-syntax-p">,</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"matched_substrings"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">[{</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"length"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-mi">5</span><span class="devsite-syntax-p">,</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"offset"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-mi">0</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">}],</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"place_id"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-s2">"ChIJD7fiBh9u5kcRYJSMaMOCCwQ"</span><span class="devsite-syntax-p">,</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"reference"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-s2">"ChIJD7fiBh9u5kcRYJSMaMOCCwQ"</span><span class="devsite-syntax-p">,</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"structured_formatting"</span><span class="devsite-syntax-p">:</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">{</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"main_text"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-s2">"Paris"</span><span class="devsite-syntax-p">,</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"main_text_matched_substrings"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">[{</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"length"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-mi">5</span><span class="devsite-syntax-p">,</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"offset"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-mi">0</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">}],</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"secondary_text"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-s2">"France"</span><span class="devsite-syntax-p">,</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">},</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"terms"</span><span class="devsite-syntax-p">:</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">[</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">{</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"offset"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-mi">0</span><span class="devsite-syntax-p">,</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"value"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-s2">"Paris"</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">},</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">{</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"offset"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-mi">7</span><span class="devsite-syntax-p">,</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"value"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-s2">"France"</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">},</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">],</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"types"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">[</span><span class="devsite-syntax-s2">"locality"</span><span class="devsite-syntax-p">,</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-s2">"political"</span><span class="devsite-syntax-p">,</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-s2">"geocode"</span><span class="devsite-syntax-p">],</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">},</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">{</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"description"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-s2">"Paris, TX, USA"</span><span class="devsite-syntax-p">,</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"matched_substrings"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">[{</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"length"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-mi">5</span><span class="devsite-syntax-p">,</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"offset"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-mi">0</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">}],</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"place_id"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-s2">"ChIJmysnFgZYSoYRSfPTL2YJuck"</span><span class="devsite-syntax-p">,</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"reference"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-s2">"ChIJmysnFgZYSoYRSfPTL2YJuck"</span><span class="devsite-syntax-p">,</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"structured_formatting"</span><span class="devsite-syntax-p">:</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">{</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"main_text"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-s2">"Paris"</span><span class="devsite-syntax-p">,</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"main_text_matched_substrings"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">[{</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"length"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-mi">5</span><span class="devsite-syntax-p">,</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"offset"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-mi">0</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">}],</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"secondary_text"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-s2">"TX, USA"</span><span class="devsite-syntax-p">,</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">},</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"terms"</span><span class="devsite-syntax-p">:</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">[</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">{</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"offset"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-mi">0</span><span class="devsite-syntax-p">,</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"value"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-s2">"Paris"</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">},</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">{</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"offset"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-mi">7</span><span class="devsite-syntax-p">,</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"value"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-s2">"TX"</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">},</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">{</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"offset"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-mi">11</span><span class="devsite-syntax-p">,</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"value"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-s2">"USA"</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">},</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">],</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"types"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">[</span><span class="devsite-syntax-s2">"locality"</span><span class="devsite-syntax-p">,</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-s2">"political"</span><span class="devsite-syntax-p">,</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-s2">"geocode"</span><span class="devsite-syntax-p">],</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">},</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">{</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"description"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-s2">"Paris, TN, USA"</span><span class="devsite-syntax-p">,</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"matched_substrings"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">[{</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"length"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-mi">5</span><span class="devsite-syntax-p">,</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"offset"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-mi">0</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">}],</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"place_id"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-s2">"ChIJ4zHP-Sije4gRBDEsVxunOWg"</span><span class="devsite-syntax-p">,</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"reference"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-s2">"ChIJ4zHP-Sije4gRBDEsVxunOWg"</span><span class="devsite-syntax-p">,</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"structured_formatting"</span><span class="devsite-syntax-p">:</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">{</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"main_text"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-s2">"Paris"</span><span class="devsite-syntax-p">,</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"main_text_matched_substrings"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">[{</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"length"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-mi">5</span><span class="devsite-syntax-p">,</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"offset"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-mi">0</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">}],</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"secondary_text"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-s2">"TN, USA"</span><span class="devsite-syntax-p">,</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">},</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"terms"</span><span class="devsite-syntax-p">:</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">[</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">{</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"offset"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-mi">0</span><span class="devsite-syntax-p">,</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"value"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-s2">"Paris"</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">},</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">{</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"offset"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-mi">7</span><span class="devsite-syntax-p">,</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"value"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-s2">"TN"</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">},</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">{</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"offset"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-mi">11</span><span class="devsite-syntax-p">,</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"value"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-s2">"USA"</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">},</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">],</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"types"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">[</span><span class="devsite-syntax-s2">"locality"</span><span class="devsite-syntax-p">,</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-s2">"political"</span><span class="devsite-syntax-p">,</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-s2">"geocode"</span><span class="devsite-syntax-p">],</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">},</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">{</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"description"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-s2">"Paris, Brant, ON, Canada"</span><span class="devsite-syntax-p">,</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"matched_substrings"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">[{</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"length"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-mi">5</span><span class="devsite-syntax-p">,</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"offset"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-mi">0</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">}],</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"place_id"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-s2">"ChIJsamfQbVtLIgR-X18G75Hyi0"</span><span class="devsite-syntax-p">,</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"reference"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-s2">"ChIJsamfQbVtLIgR-X18G75Hyi0"</span><span class="devsite-syntax-p">,</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"structured_formatting"</span><span class="devsite-syntax-p">:</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">{</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"main_text"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-s2">"Paris"</span><span class="devsite-syntax-p">,</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"main_text_matched_substrings"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">[{</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"length"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-mi">5</span><span class="devsite-syntax-p">,</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"offset"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-mi">0</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">}],</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"secondary_text"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-s2">"Brant, ON, Canada"</span><span class="devsite-syntax-p">,</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">},</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"terms"</span><span class="devsite-syntax-p">:</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">[</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">{</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"offset"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-mi">0</span><span class="devsite-syntax-p">,</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"value"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-s2">"Paris"</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">},</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">{</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"offset"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-mi">7</span><span class="devsite-syntax-p">,</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"value"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-s2">"Brant"</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">},</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">{</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"offset"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-mi">14</span><span class="devsite-syntax-p">,</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"value"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-s2">"ON"</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">},</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">{</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"offset"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-mi">18</span><span class="devsite-syntax-p">,</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"value"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-s2">"Canada"</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">},</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">],</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"types"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">[</span><span class="devsite-syntax-s2">"neighborhood"</span><span class="devsite-syntax-p">,</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-s2">"political"</span><span class="devsite-syntax-p">,</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-s2">"geocode"</span><span class="devsite-syntax-p">],</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">},</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">{</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"description"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-s2">"Paris, KY, USA"</span><span class="devsite-syntax-p">,</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"matched_substrings"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">[{</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"length"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-mi">5</span><span class="devsite-syntax-p">,</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"offset"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-mi">0</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">}],</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"place_id"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-s2">"ChIJsU7_xMfKQ4gReI89RJn0-RQ"</span><span class="devsite-syntax-p">,</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"reference"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-s2">"ChIJsU7_xMfKQ4gReI89RJn0-RQ"</span><span class="devsite-syntax-p">,</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"structured_formatting"</span><span class="devsite-syntax-p">:</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">{</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"main_text"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-s2">"Paris"</span><span class="devsite-syntax-p">,</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"main_text_matched_substrings"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">[{</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"length"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-mi">5</span><span class="devsite-syntax-p">,</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"offset"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-mi">0</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">}],</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"secondary_text"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-s2">"KY, USA"</span><span class="devsite-syntax-p">,</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">},</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"terms"</span><span class="devsite-syntax-p">:</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">[</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">{</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"offset"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-mi">0</span><span class="devsite-syntax-p">,</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"value"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-s2">"Paris"</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">},</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">{</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"offset"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-mi">7</span><span class="devsite-syntax-p">,</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"value"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-s2">"KY"</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">},</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">{</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"offset"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-mi">11</span><span class="devsite-syntax-p">,</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"value"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-s2">"USA"</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">},</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">],</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"types"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">[</span><span class="devsite-syntax-s2">"locality"</span><span class="devsite-syntax-p">,</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-s2">"political"</span><span class="devsite-syntax-p">,</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-s2">"geocode"</span><span class="devsite-syntax-p">],</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">},</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">],</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-nt">"status"</span><span class="devsite-syntax-p">:</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-s2">"OK"</span><span class="devsite-syntax-p">,</span> <span class="devsite-syntax-p">}</span></pre></devsite-code></section> <section><h3 id="xml" data-text="XML" tabindex="-1">XML</h3> <div></div><devsite-code><pre style="max-height: 400px; overflow: scroll;" data-code-snippet="true" data-github-path="googledata/devsite/content/en/maps/_openapi-specification/specification/responses/maps_http_places_autocomplete_paris_response.xml" data-git-revision="main" class="devsite-click-to-copy notranslate" dir="ltr" is-upgraded syntax="XML">&lt;AutocompletionResponse&gt; <span class="devsite-syntax-w"> </span>&lt;status&gt;OK&lt;/status&gt; <span class="devsite-syntax-w"> </span>&lt;prediction&gt; <span class="devsite-syntax-w"> </span>&lt;description&gt;Paris,<span class="devsite-syntax-w"> </span>France&lt;/description&gt; <span class="devsite-syntax-w"> </span>&lt;type&gt;locality&lt;/type&gt; <span class="devsite-syntax-w"> </span>&lt;type&gt;political&lt;/type&gt; <span class="devsite-syntax-w"> </span>&lt;type&gt;geocode&lt;/type&gt; <span class="devsite-syntax-w"> </span>&lt;reference&gt;ChIJD7fiBh9u5kcRYJSMaMOCCwQ&lt;/reference&gt; <span class="devsite-syntax-w"> </span>&lt;term&gt; <span class="devsite-syntax-w"> </span>&lt;value&gt;Paris&lt;/value&gt; <span class="devsite-syntax-w"> </span>&lt;offset&gt;0&lt;/offset&gt; <span class="devsite-syntax-w"> </span>&lt;/term&gt; <span class="devsite-syntax-w"> </span>&lt;term&gt; <span class="devsite-syntax-w"> </span>&lt;value&gt;France&lt;/value&gt; <span class="devsite-syntax-w"> </span>&lt;offset&gt;7&lt;/offset&gt; <span class="devsite-syntax-w"> </span>&lt;/term&gt; <span class="devsite-syntax-w"> </span>&lt;matched_substring&gt; <span class="devsite-syntax-w"> </span>&lt;offset&gt;0&lt;/offset&gt; <span class="devsite-syntax-w"> </span>&lt;length&gt;5&lt;/length&gt; <span class="devsite-syntax-w"> </span>&lt;/matched_substring&gt; <span class="devsite-syntax-w"> </span>&lt;place_id&gt;ChIJD7fiBh9u5kcRYJSMaMOCCwQ&lt;/place_id&gt; <span class="devsite-syntax-w"> </span>&lt;structured_formatting&gt; <span class="devsite-syntax-w"> </span>&lt;description&gt;Paris&lt;/description&gt; <span class="devsite-syntax-w"> </span>&lt;subdescription&gt;France&lt;/subdescription&gt; <span class="devsite-syntax-w"> </span>&lt;description_matched_substring&gt; <span class="devsite-syntax-w"> </span>&lt;offset&gt;0&lt;/offset&gt; <span class="devsite-syntax-w"> </span>&lt;length&gt;5&lt;/length&gt; <span class="devsite-syntax-w"> </span>&lt;/description_matched_substring&gt; <span class="devsite-syntax-w"> </span>&lt;/structured_formatting&gt; <span class="devsite-syntax-w"> </span>&lt;/prediction&gt; <span class="devsite-syntax-w"> </span>&lt;prediction&gt; <span class="devsite-syntax-w"> </span>&lt;description&gt;Paris,<span class="devsite-syntax-w"> </span>TX,<span class="devsite-syntax-w"> </span>USA&lt;/description&gt; <span class="devsite-syntax-w"> </span>&lt;type&gt;locality&lt;/type&gt; <span class="devsite-syntax-w"> </span>&lt;type&gt;political&lt;/type&gt; <span class="devsite-syntax-w"> </span>&lt;type&gt;geocode&lt;/type&gt; <span class="devsite-syntax-w"> </span>&lt;reference&gt;ChIJmysnFgZYSoYRSfPTL2YJuck&lt;/reference&gt; <span class="devsite-syntax-w"> </span>&lt;term&gt; <span class="devsite-syntax-w"> </span>&lt;value&gt;Paris&lt;/value&gt; <span class="devsite-syntax-w"> </span>&lt;offset&gt;0&lt;/offset&gt; <span class="devsite-syntax-w"> </span>&lt;/term&gt; <span class="devsite-syntax-w"> </span>&lt;term&gt; <span class="devsite-syntax-w"> </span>&lt;value&gt;TX&lt;/value&gt; <span class="devsite-syntax-w"> </span>&lt;offset&gt;7&lt;/offset&gt; <span class="devsite-syntax-w"> </span>&lt;/term&gt; <span class="devsite-syntax-w"> </span>&lt;term&gt; <span class="devsite-syntax-w"> </span>&lt;value&gt;USA&lt;/value&gt; <span class="devsite-syntax-w"> </span>&lt;offset&gt;11&lt;/offset&gt; <span class="devsite-syntax-w"> </span>&lt;/term&gt; <span class="devsite-syntax-w"> </span>&lt;matched_substring&gt; <span class="devsite-syntax-w"> </span>&lt;offset&gt;0&lt;/offset&gt; <span class="devsite-syntax-w"> </span>&lt;length&gt;5&lt;/length&gt; <span class="devsite-syntax-w"> </span>&lt;/matched_substring&gt; <span class="devsite-syntax-w"> </span>&lt;place_id&gt;ChIJmysnFgZYSoYRSfPTL2YJuck&lt;/place_id&gt; <span class="devsite-syntax-w"> </span>&lt;structured_formatting&gt; <span class="devsite-syntax-w"> </span>&lt;description&gt;Paris&lt;/description&gt; <span class="devsite-syntax-w"> </span>&lt;subdescription&gt;TX,<span class="devsite-syntax-w"> </span>USA&lt;/subdescription&gt; <span class="devsite-syntax-w"> </span>&lt;description_matched_substring&gt; <span class="devsite-syntax-w"> </span>&lt;offset&gt;0&lt;/offset&gt; <span class="devsite-syntax-w"> </span>&lt;length&gt;5&lt;/length&gt; <span class="devsite-syntax-w"> </span>&lt;/description_matched_substring&gt; <span class="devsite-syntax-w"> </span>&lt;/structured_formatting&gt; <span class="devsite-syntax-w"> </span>&lt;/prediction&gt; <span class="devsite-syntax-w"> </span>&lt;prediction&gt; <span class="devsite-syntax-w"> </span>&lt;description&gt;Paris,<span class="devsite-syntax-w"> </span>TN,<span class="devsite-syntax-w"> </span>USA&lt;/description&gt; <span class="devsite-syntax-w"> </span>&lt;type&gt;locality&lt;/type&gt; <span class="devsite-syntax-w"> </span>&lt;type&gt;political&lt;/type&gt; <span class="devsite-syntax-w"> </span>&lt;type&gt;geocode&lt;/type&gt; <span class="devsite-syntax-w"> </span>&lt;reference&gt;ChIJ4zHP-Sije4gRBDEsVxunOWg&lt;/reference&gt; <span class="devsite-syntax-w"> </span>&lt;term&gt; <span class="devsite-syntax-w"> </span>&lt;value&gt;Paris&lt;/value&gt; <span class="devsite-syntax-w"> </span>&lt;offset&gt;0&lt;/offset&gt; <span class="devsite-syntax-w"> </span>&lt;/term&gt; <span class="devsite-syntax-w"> </span>&lt;term&gt; <span class="devsite-syntax-w"> </span>&lt;value&gt;TN&lt;/value&gt; <span class="devsite-syntax-w"> </span>&lt;offset&gt;7&lt;/offset&gt; <span class="devsite-syntax-w"> </span>&lt;/term&gt; <span class="devsite-syntax-w"> </span>&lt;term&gt; <span class="devsite-syntax-w"> </span>&lt;value&gt;USA&lt;/value&gt; <span class="devsite-syntax-w"> </span>&lt;offset&gt;11&lt;/offset&gt; <span class="devsite-syntax-w"> </span>&lt;/term&gt; <span class="devsite-syntax-w"> </span>&lt;matched_substring&gt; <span class="devsite-syntax-w"> </span>&lt;offset&gt;0&lt;/offset&gt; <span class="devsite-syntax-w"> </span>&lt;length&gt;5&lt;/length&gt; <span class="devsite-syntax-w"> </span>&lt;/matched_substring&gt; <span class="devsite-syntax-w"> </span>&lt;place_id&gt;ChIJ4zHP-Sije4gRBDEsVxunOWg&lt;/place_id&gt; <span class="devsite-syntax-w"> </span>&lt;structured_formatting&gt; <span class="devsite-syntax-w"> </span>&lt;description&gt;Paris&lt;/description&gt; <span class="devsite-syntax-w"> </span>&lt;subdescription&gt;TN,<span class="devsite-syntax-w"> </span>USA&lt;/subdescription&gt; <span class="devsite-syntax-w"> </span>&lt;description_matched_substring&gt; <span class="devsite-syntax-w"> </span>&lt;offset&gt;0&lt;/offset&gt; <span class="devsite-syntax-w"> </span>&lt;length&gt;5&lt;/length&gt; <span class="devsite-syntax-w"> </span>&lt;/description_matched_substring&gt; <span class="devsite-syntax-w"> </span>&lt;/structured_formatting&gt; <span class="devsite-syntax-w"> </span>&lt;/prediction&gt; <span class="devsite-syntax-w"> </span>&lt;prediction&gt; <span class="devsite-syntax-w"> </span>&lt;description&gt;Paris,<span class="devsite-syntax-w"> </span>Brant,<span class="devsite-syntax-w"> </span>ON,<span class="devsite-syntax-w"> </span>Canada&lt;/description&gt; <span class="devsite-syntax-w"> </span>&lt;type&gt;neighborhood&lt;/type&gt; <span class="devsite-syntax-w"> </span>&lt;type&gt;political&lt;/type&gt; <span class="devsite-syntax-w"> </span>&lt;type&gt;geocode&lt;/type&gt; <span class="devsite-syntax-w"> </span>&lt;reference&gt;ChIJsamfQbVtLIgR-X18G75Hyi0&lt;/reference&gt; <span class="devsite-syntax-w"> </span>&lt;term&gt; <span class="devsite-syntax-w"> </span>&lt;value&gt;Paris&lt;/value&gt; <span class="devsite-syntax-w"> </span>&lt;offset&gt;0&lt;/offset&gt; <span class="devsite-syntax-w"> </span>&lt;/term&gt; <span class="devsite-syntax-w"> </span>&lt;term&gt; <span class="devsite-syntax-w"> </span>&lt;value&gt;Brant&lt;/value&gt; <span class="devsite-syntax-w"> </span>&lt;offset&gt;7&lt;/offset&gt; <span class="devsite-syntax-w"> </span>&lt;/term&gt; <span class="devsite-syntax-w"> </span>&lt;term&gt; <span class="devsite-syntax-w"> </span>&lt;value&gt;ON&lt;/value&gt; <span class="devsite-syntax-w"> </span>&lt;offset&gt;14&lt;/offset&gt; <span class="devsite-syntax-w"> </span>&lt;/term&gt; <span class="devsite-syntax-w"> </span>&lt;term&gt; <span class="devsite-syntax-w"> </span>&lt;value&gt;Canada&lt;/value&gt; <span class="devsite-syntax-w"> </span>&lt;offset&gt;18&lt;/offset&gt; <span class="devsite-syntax-w"> </span>&lt;/term&gt; <span class="devsite-syntax-w"> </span>&lt;matched_substring&gt; <span class="devsite-syntax-w"> </span>&lt;offset&gt;0&lt;/offset&gt; <span class="devsite-syntax-w"> </span>&lt;length&gt;5&lt;/length&gt; <span class="devsite-syntax-w"> </span>&lt;/matched_substring&gt; <span class="devsite-syntax-w"> </span>&lt;place_id&gt;ChIJsamfQbVtLIgR-X18G75Hyi0&lt;/place_id&gt; <span class="devsite-syntax-w"> </span>&lt;structured_formatting&gt; <span class="devsite-syntax-w"> </span>&lt;description&gt;Paris&lt;/description&gt; <span class="devsite-syntax-w"> </span>&lt;subdescription&gt;Brant,<span class="devsite-syntax-w"> </span>ON,<span class="devsite-syntax-w"> </span>Canada&lt;/subdescription&gt; <span class="devsite-syntax-w"> </span>&lt;description_matched_substring&gt; <span class="devsite-syntax-w"> </span>&lt;offset&gt;0&lt;/offset&gt; <span class="devsite-syntax-w"> </span>&lt;length&gt;5&lt;/length&gt; <span class="devsite-syntax-w"> </span>&lt;/description_matched_substring&gt; <span class="devsite-syntax-w"> </span>&lt;/structured_formatting&gt; <span class="devsite-syntax-w"> </span>&lt;/prediction&gt; <span class="devsite-syntax-w"> </span>&lt;prediction&gt; <span class="devsite-syntax-w"> </span>&lt;description&gt;Paris,<span class="devsite-syntax-w"> </span>KY,<span class="devsite-syntax-w"> </span>USA&lt;/description&gt; <span class="devsite-syntax-w"> </span>&lt;type&gt;locality&lt;/type&gt; <span class="devsite-syntax-w"> </span>&lt;type&gt;political&lt;/type&gt; <span class="devsite-syntax-w"> </span>&lt;type&gt;geocode&lt;/type&gt; <span class="devsite-syntax-w"> </span>&lt;reference&gt;ChIJsU7_xMfKQ4gReI89RJn0-RQ&lt;/reference&gt; <span class="devsite-syntax-w"> </span>&lt;term&gt; <span class="devsite-syntax-w"> </span>&lt;value&gt;Paris&lt;/value&gt; <span class="devsite-syntax-w"> </span>&lt;offset&gt;0&lt;/offset&gt; <span class="devsite-syntax-w"> </span>&lt;/term&gt; <span class="devsite-syntax-w"> </span>&lt;term&gt; <span class="devsite-syntax-w"> </span>&lt;value&gt;KY&lt;/value&gt; <span class="devsite-syntax-w"> </span>&lt;offset&gt;7&lt;/offset&gt; <span class="devsite-syntax-w"> </span>&lt;/term&gt; <span class="devsite-syntax-w"> </span>&lt;term&gt; <span class="devsite-syntax-w"> </span>&lt;value&gt;USA&lt;/value&gt; <span class="devsite-syntax-w"> </span>&lt;offset&gt;11&lt;/offset&gt; <span class="devsite-syntax-w"> </span>&lt;/term&gt; <span class="devsite-syntax-w"> </span>&lt;matched_substring&gt; <span class="devsite-syntax-w"> </span>&lt;offset&gt;0&lt;/offset&gt; <span class="devsite-syntax-w"> </span>&lt;length&gt;5&lt;/length&gt; <span class="devsite-syntax-w"> </span>&lt;/matched_substring&gt; <span class="devsite-syntax-w"> </span>&lt;place_id&gt;ChIJsU7_xMfKQ4gReI89RJn0-RQ&lt;/place_id&gt; <span class="devsite-syntax-w"> </span>&lt;structured_formatting&gt; <span class="devsite-syntax-w"> </span>&lt;description&gt;Paris&lt;/description&gt; <span class="devsite-syntax-w"> </span>&lt;subdescription&gt;KY,<span class="devsite-syntax-w"> </span>USA&lt;/subdescription&gt; <span class="devsite-syntax-w"> </span>&lt;description_matched_substring&gt; <span class="devsite-syntax-w"> </span>&lt;offset&gt;0&lt;/offset&gt; <span class="devsite-syntax-w"> </span>&lt;length&gt;5&lt;/length&gt; <span class="devsite-syntax-w"> </span>&lt;/description_matched_substring&gt; <span class="devsite-syntax-w"> </span>&lt;/structured_formatting&gt; <span class="devsite-syntax-w"> </span>&lt;/prediction&gt; &lt;/AutocompletionResponse&gt;</pre></devsite-code></section> </devsite-selector> </div> <style> .nonref-property-description p:first-of-type, .ref-property-description p:first-of-type { margin-top: 0 !important;} .nonref-property-description p:last-of-type, .ref-property-description p:last-of-type { margin-bottom: 0 !important;} .schema-object-property-key.add-link { padding-right: 40px !important; font-size: inherit; } .schema-object-property-key.deprecated-item, .parameter-name.deprecated-item { text-decoration: line-through; } </style> <div data-code-snippet="true" data-github-path="googledata/devsite/content/en/maps/_openapi-specification/dist/documentation/schemas/maps_http_schema_placesautocompleteresponse.html" data-git-revision="main" class="prettyprint notranslate lang-json" ><h3 class="schema-object" id="PlacesAutocompleteResponse" data-text=" PlacesAutocompleteResponse " tabindex="-1"> PlacesAutocompleteResponse </h3><table><thead><tr><th align="left">Field</th><th>Required</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td align="left"><h4 id="PlacesAutocompleteResponse-predictions" class="add-link schema-object-property-key" data-text="predictions" tabindex="-1"><code translate="no" dir="ltr">predictions</code></h4></td><td><strong>required</strong></td><td> Array&#x3C;<a href="#PlaceAutocompletePrediction" title="PlaceAutocompletePrediction" >PlaceAutocompletePrediction</a >></td><td><div class="ref-property-description"><p>Contains an array of predictions.</p><p> See <a href="#PlaceAutocompletePrediction" >PlaceAutocompletePrediction</a > for more information. </p></div></td></tr><tr><td align="left"><h4 id="PlacesAutocompleteResponse-status" class="add-link schema-object-property-key" data-text="status" tabindex="-1"><code translate="no" dir="ltr">status</code></h4></td><td><strong>required</strong></td><td><a href="#PlacesAutocompleteStatus" title="PlacesAutocompleteStatus" >PlacesAutocompleteStatus</a ></td><td><div class="ref-property-description"><p> Contains the status of the request, and may contain debugging information to help you track down why the request failed. </p><p> See <a href="#PlacesAutocompleteStatus">PlacesAutocompleteStatus</a> for more information. </p></div></td></tr><tr><td align="left"><h4 id="PlacesAutocompleteResponse-error_message" class="add-link schema-object-property-key" data-text="error_message" tabindex="-1"><code translate="no" dir="ltr">error_message</code></h4></td><td>optional</td><td>string</td><td><div class="nonref-property-description"><p> When the service returns a status code other than <code translate="no" dir="ltr">OK&#x3C;</code>, there may be an additional <code translate="no" dir="ltr">error_message</code> field within the response object. This field contains more detailed information about thereasons behind the given status code. This field is not always returned, and its content is subject to change. </p></div></td></tr><tr><td align="left"><h4 id="PlacesAutocompleteResponse-info_messages" class="add-link schema-object-property-key" data-text="info_messages" tabindex="-1"><code translate="no" dir="ltr">info_messages</code></h4></td><td>optional</td><td>Array&#x3C;string></td><td><div class="nonref-property-description"><p> When the service returns additional information about the request specification, there may be an additional <code translate="no" dir="ltr">info_messages</code> field within the response object. This field is only returned for successful requests. It may not always be returned, and its content is subject to change. </p></div></td></tr></tbody></table></div> <p>Of particular interest within the results are the <code translate="no" dir="ltr">place_id</code> elements, which can be used to request more specific details about the place via a separate query. See <a href="/maps/documentation/places/web-service/details#PlaceDetailsRequests">Place Details requests</a>.</p> <p>An <strong>XML response</strong> consists of a single <code translate="no" dir="ltr">&lt;AutocompletionResponse&gt;</code> element with two types of child elements:</p> <ul> <li>A single <code translate="no" dir="ltr">&lt;status&gt;</code> element contains metadata on the request. See <a href="#place_autocomplete_status_codes">Status Codes</a> below.</li> <li>Zero or more <code translate="no" dir="ltr">&lt;prediction&gt;</code> elements, each containing information about a single place. See <a href="#place_autocomplete_results">Place Autocomplete Results</a> for information about these results. The Places API returns up to 5 results.</li> </ul> <p>We recommend that you use <code translate="no" dir="ltr">json</code> as the preferred output flag unless your application requires <code translate="no" dir="ltr">xml</code> for some reason. Processing XML trees requires some care, so that you reference proper nodes and elements. See <a href="/maps/documentation/directions/web-service-best-practices#ParsingXML">Processing XML with XPath</a> for help processing XML.</p> <aside class="note">The <code translate="no" dir="ltr">street_number</code> address component may not be present in Place Details responses for place IDs in some autocomplete predictions. This typically happens when the address cannot be interpolated for a place. In these cases, the prediction's <code translate="no" dir="ltr">types</code> array will contain "route". For autocomplete predictions with a number in the description (input query is matched), the Place Details response for the place ID contains the street number only if the <code translate="no" dir="ltr">types</code> array for the prediction contains at least one of: <ul> <li>street_address</li> <li>premise</li> <li>establishment</li> </ul> </aside> <style> .nonref-property-description p:first-of-type, .ref-property-description p:first-of-type { margin-top: 0 !important;} .nonref-property-description p:last-of-type, .ref-property-description p:last-of-type { margin-bottom: 0 !important;} .schema-object-property-key.add-link { padding-right: 40px !important; font-size: inherit; } .schema-object-property-key.deprecated-item, .parameter-name.deprecated-item { text-decoration: line-through; } </style> <div data-code-snippet="true" data-github-path="googledata/devsite/content/en/maps/_openapi-specification/dist/documentation/schemas/maps_http_schema_placesautocompletestatus.html" data-git-revision="main" class="prettyprint notranslate lang-json" ><h3 class="schema-object" id="PlacesAutocompleteStatus" data-text=" PlacesAutocompleteStatus " tabindex="-1"> PlacesAutocompleteStatus </h3><p>Status codes returned by service.</p><ul><li><code translate="no" dir="ltr">OK</code> indicating the API request was successful.</li><li><code translate="no" dir="ltr">ZERO_RESULTS</code> indicating that the search was successful but returned no results. This may occur if the search was passed a bounds in a remote location. </li><li><code translate="no" dir="ltr">INVALID_REQUEST</code> indicating the API request was malformed, generally due to the missing <code translate="no" dir="ltr">input</code> parameter. </li><li><code translate="no" dir="ltr">OVER_QUERY_LIMIT</code> indicating any of the following: <ul><li>You have exceeded the QPS limits.</li><li>Billing has not been enabled on your account.</li><li> The monthly $200 credit, or a self-imposed usage cap, has been exceeded. </li><li> The provided method of payment is no longer valid (for example, a credit card has expired). </li></ul> See the <a href="https://developers.google.com/maps/faq#over-limit-key-error" >Maps FAQ</a > for more information about how to resolve this error. </li><li><code translate="no" dir="ltr">REQUEST_DENIED</code> indicating that your request was denied, generally because: <ul><li>The request is missing an API key.</li><li>The <code translate="no" dir="ltr">key</code> parameter is invalid.</li></ul></li><li><code translate="no" dir="ltr">UNKNOWN_ERROR</code> indicating an unknown error.</li></ul></div> <p>When the Places service returns JSON results from a search, it places them within a <code translate="no" dir="ltr">predictions</code> array. Even if the service returns no results (such as if the <code translate="no" dir="ltr">location</code> is remote) it still returns an empty <code translate="no" dir="ltr">predictions</code> array. XML responses consist of zero or more <code translate="no" dir="ltr">&lt;prediction&gt;</code> elements.</p> <style> .nonref-property-description p:first-of-type, .ref-property-description p:first-of-type { margin-top: 0 !important;} .nonref-property-description p:last-of-type, .ref-property-description p:last-of-type { margin-bottom: 0 !important;} .schema-object-property-key.add-link { padding-right: 40px !important; font-size: inherit; } .schema-object-property-key.deprecated-item, .parameter-name.deprecated-item { text-decoration: line-through; } </style> <div data-code-snippet="true" data-github-path="googledata/devsite/content/en/maps/_openapi-specification/dist/documentation/schemas/maps_http_schema_placeautocompleteprediction.html" data-git-revision="main" class="prettyprint notranslate lang-json" ><h3 class="schema-object" id="PlaceAutocompletePrediction" data-text=" PlaceAutocompletePrediction " tabindex="-1"> PlaceAutocompletePrediction </h3><table><thead><tr><th align="left">Field</th><th>Required</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td align="left"><h4 id="PlaceAutocompletePrediction-description" class="add-link schema-object-property-key" data-text="description" tabindex="-1"><code translate="no" dir="ltr">description</code></h4></td><td><strong>required</strong></td><td>string</td><td><div class="nonref-property-description"><p> Contains the human-readable name for the returned result. For <code translate="no" dir="ltr">establishment</code> results, this is usually the business name. This content is meant to be read as-is. Do not programmatically parse the formatted address. </p></div></td></tr><tr><td align="left"><h4 id="PlaceAutocompletePrediction-matched_substrings" class="add-link schema-object-property-key" data-text="matched_substrings" tabindex="-1"><code translate="no" dir="ltr">matched_substrings</code></h4></td><td><strong>required</strong></td><td> Array&#x3C;<a href="#PlaceAutocompleteMatchedSubstring" title="PlaceAutocompleteMatchedSubstring" >PlaceAutocompleteMatchedSubstring</a >></td><td><div class="ref-property-description"><p> A list of substrings that describe the location of the entered term in the prediction result text, so that the term can be highlighted if desired. </p><p> See <a href="#PlaceAutocompleteMatchedSubstring" >PlaceAutocompleteMatchedSubstring</a > for more information. </p></div></td></tr><tr><td align="left"><h4 id="PlaceAutocompletePrediction-structured_formatting" class="add-link schema-object-property-key" data-text="structured_formatting" tabindex="-1"><code translate="no" dir="ltr">structured_formatting</code></h4></td><td><strong>required</strong></td><td><a href="#PlaceAutocompleteStructuredFormat" title="PlaceAutocompleteStructuredFormat" >PlaceAutocompleteStructuredFormat</a ></td><td><div class="ref-property-description"><p> Provides pre-formatted text that can be shown in your autocomplete results. This content is meant to be read as-is. Do not programmatically parse the formatted address. </p><p> See <a href="#PlaceAutocompleteStructuredFormat" >PlaceAutocompleteStructuredFormat</a > for more information. </p></div></td></tr><tr><td align="left"><h4 id="PlaceAutocompletePrediction-terms" class="add-link schema-object-property-key" data-text="terms" tabindex="-1"><code translate="no" dir="ltr">terms</code></h4></td><td><strong>required</strong></td><td> Array&#x3C;<a href="#PlaceAutocompleteTerm" title="PlaceAutocompleteTerm" >PlaceAutocompleteTerm</a >></td><td><div class="ref-property-description"><p> Contains an array of terms identifying each section of the returned description (a section of the description is generally terminated with a comma). Each entry in the array has a <code translate="no" dir="ltr">value</code> field, containing the text of the term, and an <code translate="no" dir="ltr">offset</code> field, defining the start position of this term in the description, measured in Unicode characters. </p><p> See <a href="#PlaceAutocompleteTerm">PlaceAutocompleteTerm</a> for more information. </p></div></td></tr><tr><td align="left"><h4 id="PlaceAutocompletePrediction-distance_meters" class="add-link schema-object-property-key" data-text="distance_meters" tabindex="-1"><code translate="no" dir="ltr">distance_meters</code></h4></td><td>optional</td><td>integer</td><td><div class="nonref-property-description"><p> The straight-line distance in meters from the origin. This field is only returned for requests made with an <code translate="no" dir="ltr">origin</code>. </p></div></td></tr><tr><td align="left"><h4 id="PlaceAutocompletePrediction-place_id" class="add-link schema-object-property-key" data-text="place_id" tabindex="-1"><code translate="no" dir="ltr">place_id</code></h4></td><td>optional</td><td>string</td><td><div class="nonref-property-description"><p> A textual identifier that uniquely identifies a place. To retrieve information about the place, pass this identifier in the placeId field of a Places API request. For more information about place IDs, see the <a href="https://developers.google.com/maps/documentation/places/web-service/place-id" >Place IDs</a > overview. </p></div></td></tr><tr><td align="left"><h4 id="PlaceAutocompletePrediction-reference" class="add-link schema-object-property-key deprecated-item hide-from-toc" data-text="reference" tabindex="-1"><code translate="no" dir="ltr">reference</code></h4></td><td>optional</td><td>string</td><td><aside class="deprecated"><code translate="no" dir="ltr">reference</code> is deprecated.</aside><div class="nonref-property-description"><p>See place_id.</p></div></td></tr><tr><td align="left"><h4 id="PlaceAutocompletePrediction-types" class="add-link schema-object-property-key" data-text="types" tabindex="-1"><code translate="no" dir="ltr">types</code></h4></td><td>optional</td><td>Array&#x3C;string></td><td><div class="nonref-property-description"><p> Contains an array of types that apply to this place. For example: <code translate="no" dir="ltr">[ "political", "locality" ]</code> or <code translate="no" dir="ltr">[ "establishment", "geocode", "beauty_salon" ]</code>. The array can contain multiple values. Learn more about <a href="https://developers.google.com/maps/documentation/places/web-service/supported_types" >Place types</a >. </p></div></td></tr></tbody></table></div> <style> .nonref-property-description p:first-of-type, .ref-property-description p:first-of-type { margin-top: 0 !important;} .nonref-property-description p:last-of-type, .ref-property-description p:last-of-type { margin-bottom: 0 !important;} .schema-object-property-key.add-link { padding-right: 40px !important; font-size: inherit; } .schema-object-property-key.deprecated-item, .parameter-name.deprecated-item { text-decoration: line-through; } </style> <div data-code-snippet="true" data-github-path="googledata/devsite/content/en/maps/_openapi-specification/dist/documentation/schemas/maps_http_schema_placeautocompletematchedsubstring.html" data-git-revision="main" class="prettyprint notranslate lang-json" ><h3 class="schema-object" id="PlaceAutocompleteMatchedSubstring" data-text=" PlaceAutocompleteMatchedSubstring " tabindex="-1"> PlaceAutocompleteMatchedSubstring </h3><table><thead><tr><th align="left">Field</th><th>Required</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td align="left"><h4 id="PlaceAutocompleteMatchedSubstring-length" class="add-link schema-object-property-key" data-text="length" tabindex="-1"><code translate="no" dir="ltr">length</code></h4></td><td><strong>required</strong></td><td>number</td><td><div class="nonref-property-description"><p>Length of the matched substring in the prediction result text.</p></div></td></tr><tr><td align="left"><h4 id="PlaceAutocompleteMatchedSubstring-offset" class="add-link schema-object-property-key" data-text="offset" tabindex="-1"><code translate="no" dir="ltr">offset</code></h4></td><td><strong>required</strong></td><td>number</td><td><div class="nonref-property-description"><p> Start location of the matched substring in the prediction result text. </p></div></td></tr></tbody></table></div> <style> .nonref-property-description p:first-of-type, .ref-property-description p:first-of-type { margin-top: 0 !important;} .nonref-property-description p:last-of-type, .ref-property-description p:last-of-type { margin-bottom: 0 !important;} .schema-object-property-key.add-link { padding-right: 40px !important; font-size: inherit; } .schema-object-property-key.deprecated-item, .parameter-name.deprecated-item { text-decoration: line-through; } </style> <div data-code-snippet="true" data-github-path="googledata/devsite/content/en/maps/_openapi-specification/dist/documentation/schemas/maps_http_schema_placeautocompletestructuredformat.html" data-git-revision="main" class="prettyprint notranslate lang-json" ><h3 class="schema-object" id="PlaceAutocompleteStructuredFormat" data-text=" PlaceAutocompleteStructuredFormat " tabindex="-1"> PlaceAutocompleteStructuredFormat </h3><table><thead><tr><th align="left">Field</th><th>Required</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td align="left"><h4 id="PlaceAutocompleteStructuredFormat-main_text" class="add-link schema-object-property-key" data-text="main_text" tabindex="-1"><code translate="no" dir="ltr">main_text</code></h4></td><td><strong>required</strong></td><td>string</td><td><div class="nonref-property-description"><p> Contains the main text of a prediction, usually the name of the place. </p></div></td></tr><tr><td align="left"><h4 id="PlaceAutocompleteStructuredFormat-main_text_matched_substrings" class="add-link schema-object-property-key" data-text="main_text_matched_substrings" tabindex="-1"><code translate="no" dir="ltr">main_text_matched_substrings</code></h4></td><td><strong>required</strong></td><td> Array&#x3C;<a href="#PlaceAutocompleteMatchedSubstring" title="PlaceAutocompleteMatchedSubstring" >PlaceAutocompleteMatchedSubstring</a >></td><td><div class="ref-property-description"><p> Contains an array with <code translate="no" dir="ltr">offset</code> value and <code translate="no" dir="ltr">length</code>. These describe the location of the entered term in the prediction result text, so that the term can be highlighted if desired. </p><p> See <a href="#PlaceAutocompleteMatchedSubstring" >PlaceAutocompleteMatchedSubstring</a > for more information. </p></div></td></tr><tr><td align="left"><h4 id="PlaceAutocompleteStructuredFormat-secondary_text" class="add-link schema-object-property-key" data-text="secondary_text" tabindex="-1"><code translate="no" dir="ltr">secondary_text</code></h4></td><td>optional</td><td>string</td><td><div class="nonref-property-description"><p> Contains the secondary text of a prediction, usually the location of the place. </p></div></td></tr><tr><td align="left"><h4 id="PlaceAutocompleteStructuredFormat-secondary_text_matched_substrings" class="add-link schema-object-property-key" data-text="secondary_text_matched_substrings" tabindex="-1"><code translate="no" dir="ltr">secondary_text_matched_substrings</code></h4></td><td>optional</td><td> Array&#x3C;<a href="#PlaceAutocompleteMatchedSubstring" title="PlaceAutocompleteMatchedSubstring" >PlaceAutocompleteMatchedSubstring</a >></td><td><div class="ref-property-description"><p> Contains an array with <code translate="no" dir="ltr">offset</code> value and <code translate="no" dir="ltr">length</code>. These describe the location of the entered term in the prediction result text, so that the term can be highlighted if desired. </p><p> See <a href="#PlaceAutocompleteMatchedSubstring" >PlaceAutocompleteMatchedSubstring</a > for more information. </p></div></td></tr></tbody></table></div> <style> .nonref-property-description p:first-of-type, .ref-property-description p:first-of-type { margin-top: 0 !important;} .nonref-property-description p:last-of-type, .ref-property-description p:last-of-type { margin-bottom: 0 !important;} .schema-object-property-key.add-link { padding-right: 40px !important; font-size: inherit; } .schema-object-property-key.deprecated-item, .parameter-name.deprecated-item { text-decoration: line-through; } </style> <div data-code-snippet="true" data-github-path="googledata/devsite/content/en/maps/_openapi-specification/dist/documentation/schemas/maps_http_schema_placeautocompleteterm.html" data-git-revision="main" class="prettyprint notranslate lang-json" ><h3 class="schema-object" id="PlaceAutocompleteTerm" data-text="PlaceAutocompleteTerm" tabindex="-1">PlaceAutocompleteTerm</h3><table><thead><tr><th align="left">Field</th><th>Required</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td align="left"><h4 id="PlaceAutocompleteTerm-offset" class="add-link schema-object-property-key" data-text="offset" tabindex="-1"><code translate="no" dir="ltr">offset</code></h4></td><td><strong>required</strong></td><td>number</td><td><div class="nonref-property-description"><p> Defines the start position of this term in the description, measured in Unicode characters </p></div></td></tr><tr><td align="left"><h4 id="PlaceAutocompleteTerm-value" class="add-link schema-object-property-key" data-text="value" tabindex="-1"><code translate="no" dir="ltr">value</code></h4></td><td><strong>required</strong></td><td>string</td><td><div class="nonref-property-description"><p>The text of the term.</p></div></td></tr></tbody></table></div> <h2 id="best-practices" data-text="Place Autocomplete optimization" tabindex="-1">Place Autocomplete optimization</h2> <p>This section describes best practices to help you make the most of the Place Autocomplete service.</p> <p>Here are some general guidelines:</p> <ul> <li>The quickest way to develop a working user interface is to use the Maps JavaScript API <a href="/maps/documentation/javascript/places-autocomplete#add-autocomplete">Autocomplete widget</a>, Places SDK for Android <a href="/maps/documentation/places/android-sdk/autocomplete#add_an_autocomplete_widget">Autocomplete widget</a>, or Places SDK for iOS <a href="/maps/documentation/places/ios-sdk/autocomplete#adding_an_autocomplete_ui_control">Autocomplete UI control</a></li> <li>Develop an understanding of essential Place Autocomplete <a href="/maps/documentation/places/web-service/place-data-fields">data fields</a> from the start.</li> <li> Location biasing and location restriction fields are optional but can have a significant impact on autocomplete performance.</li> <li>Use error handling to make sure your app degrades gracefully if the API returns an error.</li> <li>Make sure your app handles when there is no selection and offers users a way to continue.</li> </ul> <h3 id="cost_best_practices" data-text="Cost optimization best practices" tabindex="-1">Cost optimization best practices</h3> <h4 id="basic-cost-optimization" data-text="Basic cost optimization" tabindex="-1">Basic cost optimization</h4> <div class="video-wrapper"> <iframe class="devsite-embedded-youtube-video" data-video-id="VOP8cvCLGac" data-list="PL2rFahu9sLJ0pXNXfSiBlwqK4UidLIQWJ" data-autohide="1" data-showinfo="0" allowfullscreen> </iframe> </div> <p>To optimize the cost of using the Place Autocomplete service, use field masks in Place Details and Place Autocomplete widgets to return only the <a href="/maps/documentation/places/web-service/place-data-fields">place data fields</a> you need.</p> <h4 id="advanced-cost-optimization" data-text="Advanced cost optimization" tabindex="-1">Advanced cost optimization</h4> <p>Consider programmatic implementation of Place Autocomplete in order to access <a href="/maps/billing-and-pricing/pricing#ac-per-request">Per Request pricing</a> and request <a href="/maps/documentation/geocoding/overview#results">Geocoding API results</a> about the selected place instead of Place Details. Per Request pricing paired with Geocoding API is more cost-effective than Per Session (session-based) pricing if both of the following conditions are met: </p> <ul> <li>If you only need the latitude/longitude or address of the user's selected place, the Geocoding API delivers this information for less than a Place Details call.</li> <li>If users select an autocomplete prediction within an average of four Autocomplete predictions requests or fewer, Per Request pricing may be more cost-effective than Per Session pricing.</li> </ul> For help selecting the Place Autocomplete implementation that fits your needs, select the tab that corresponds to your answer to the following question. <p><strong>Does your application require any information other than the address and latitude/longitude of the selected prediction?</strong></p> <devsite-selector> <section> <h3 id="select-place-details" class="two-line-tab" data-text="Yes, needs more details" tabindex="-1">Yes, needs more details</h3> <p> <strong>Use session-based Place Autocomplete with Place Details.</strong><br> Since your application requires Place Details such as the place name, business status, or opening hours, your implementation of Place Autocomplete should use a session token (<a href="#sessiontoken">programmatically</a> or built into the <a href="/maps/documentation/javascript/places-autocomplete#add-autocomplete">JavaScript</a>, <a href="/maps/documentation/places/android-sdk/autocomplete#add_an_autocomplete_widget">Android</a>, or <a href="/maps/documentation/places/ios-sdk/autocomplete#adding_an_autocomplete_ui_control">iOS</a> widgets) for a total cost of $0.017 <a href="/maps/billing-and-pricing/pricing#about-autocomplete-sessions">per session</a> plus applicable <a href="/maps/billing-and-pricing/pricing#data-skus">Places Data SKUs</a> depending on which place data fields you request.<sup><a href="#fn1" rel="footnote">1</a></sup> </p> <p> <strong>Widget implementation</strong><br> Session management is automatically built into the <a href="/maps/documentation/javascript/places-autocomplete#add-autocomplete">JavaScript</a>, <a href="/maps/documentation/places/android-sdk/autocomplete#add_an_autocomplete_widget">Android</a>, or <a href="/maps/documentation/places/ios-sdk/autocomplete#adding_an_autocomplete_ui_control">iOS</a> widgets. This includes both the Place Autocomplete requests and the Place Details request on the selected prediction. Be sure to specify the <code translate="no" dir="ltr">fields</code> parameter in order to ensure you are only requesting the <a href="/maps/documentation/places/web-service/place-data-fields">place data fields</a> you need. </p> <p> <strong>Programmatic implementation</strong><br> Use a <a href="#sessiontoken">session token</a> with your Place Autocomplete requests. When requesting <a href="/maps/documentation/places/web-service/details">Place Details</a> about the selected prediction, include the following parameters: </p> <ol> <li>The place ID from <a href="#programmatic-response">the Place Autocomplete response</a></li> <li>The session token used in the Place Autocomplete request</li> <li>The <code translate="no" dir="ltr">fields</code> parameter specifying the <a href="/maps/documentation/places/web-service/place-data-fields">place data fields</a> you need</li> </ol> </section> <section> <!-- LINT.IfChange --> <h3 id="select-location-only" class="two-line-tab" data-text="No, needs only address and location" tabindex="-1">No, needs only address and location</h3> <!-- LINT.ThenChange(//depot/google3/googledata/devsite/content/en/maps/_redirects.yaml) --> <p> Geocoding API could be a more cost-effective option than Place Details for your application, depending on the performance of your Place Autocomplete usage. Every application's Autocomplete efficiency varies depending on what users are entering, where the application is being used, and whether <a href="#perf-best-practices">performance optimization best practices</a> have been implemented. </p> <p> In order to answer the following question, analyze how many characters a user types on average before selecting a Place Autocomplete prediction in your application. </p> <p> <strong>Do your users select a Place Autocomplete prediction in four or fewer requests, on average?</strong> </p> <devsite-selector> <section> <h3 id="select-location-performant" data-text="Yes" tabindex="-1">Yes</h3> <p> <strong>Implement Place Autocomplete programmatically without session tokens and call Geocoding API on the selected place prediction.</strong><br> Geocoding API delivers addresses and latitude/longitude coordinates for $0.005 per request. Making four <a href="/maps/billing-and-pricing/pricing#ac-per-request">Place Autocomplete - Per Request</a> requests costs $0.01132 so the total cost of four requests plus a <a href="/maps/billing-and-pricing/pricing#geocoding">Geocoding API</a> call about the selected place prediction would be $0.01632 which is less than the Per Session Autocomplete price of $0.017 per session.<sup><a href="#fn1" rel="footnote">1</a></sup> </p> <p> Consider employing <a href="#perf-best-practices">performance best practices</a> to help your users get the prediction they're looking for in even fewer characters. </p> </section> <section> <h3 id="select-location-nonperformant" data-text="No" tabindex="-1">No</h3> <p> <strong>Use session-based Place Autocomplete with Place Details.</strong><br> Since the average number of requests you expect to make before a user selects a Place Autocomplete prediction exceeds the cost of Per Session pricing, your implementation of Place Autocomplete should use a session token for both the Place Autocomplete requests and the associated Place Details request for a total cost of $0.017 <a href="/maps/billing-and-pricing/pricing#about-autocomplete-sessions">per session</a>.<sup><a href="#fn1" rel="footnote">1</a></sup> </p> <p> <strong>Widget implementation</strong><br> Session management is automatically built into the <a href="/maps/documentation/javascript/places-autocomplete#add-autocomplete">JavaScript</a>, <a href="/maps/documentation/places/android-sdk/autocomplete#add_an_autocomplete_widget">Android</a>, or <a href="/maps/documentation/places/ios-sdk/autocomplete#adding_an_autocomplete_ui_control">iOS</a> widgets. This includes both the Place Autocomplete requests and the Place Details request on the selected prediction. Be sure to specify the <code translate="no" dir="ltr">fields</code> parameter in order to ensure you are only requesting <a href="/maps/billing-and-pricing/pricing#data-skus">Basic Data</a> fields. </p> <p> <strong>Programmatic implementation</strong><br> Use a <a href="#sessiontoken">session token</a> with your Place Autocomplete requests. When requesting <a href="/maps/documentation/places/web-service/details">Place Details</a> about the selected prediction, include the following parameters: </p> <ol> <li>The place ID from <a href="#programmatic-response">the Place Autocomplete response</a></li> <li>The session token used in the Place Autocomplete request</li> <li>The <code translate="no" dir="ltr">fields</code> parameter specifying <a href="/maps/billing-and-pricing/pricing#data-skus">Basic Data</a> fields such as address and geometry</li> </ol> <p> <strong>Consider delaying Place Autocomplete requests</strong><br> You can employ strategies such as delaying a Place Autocomplete request until the user has typed in the first three or four characters so that your application makes fewer requests. For example, making Place Autocomplete requests for each character <em>after</em> the user has typed the third character means that if the user types seven characters then selects a prediction for which you make one Geocoding API request, the total cost would be $0.01632 (4 * $0.00283 Autocomplete Per Request + $0.005 Geocoding).<sup><a href="#fn1" rel="footnote">1</a></sup> </p> <p> If delaying requests can get your average programmatic request below four, you can follow the guidance for <a href="https://developers.google.com/maps/documentation/places/web-service/autocomplete?tab=Yes#select-location-only">performant Place Autocomplete with Geocoding API</a> implementation. Note that delaying requests can be perceived as latency by the user who might be expecting to see predictions with every new keystroke. </p> <p> Consider employing <a href="#perf-best-practices">performance best practices</a> to help your users get the prediction they're looking for in fewer characters. </p> </section> </devsite-selector> </section> </devsite-selector> <div class="footnotes"> <hr> <ol> <li id="fn1"> <p>Costs listed here are in USD. Please refer to the <a href="/maps/billing-and-pricing/billing">Google Maps Platform Billing</a> page for full pricing information.</p> </li> </ol> </div> <devsite-thumb-rating position="main"></devsite-thumb-rating> <h3 id="perf-best-practices" data-text="Performance best practices" tabindex="-1">Performance best practices</h3> <div class="video-wrapper"> <iframe class="devsite-embedded-youtube-video" data-video-id="bv1p4s_d8OM" data-list="PL2rFahu9sLJ0pXNXfSiBlwqK4UidLIQWJ" data-autohide="1" data-showinfo="0" allowfullscreen> </iframe> </div> <p>The following guidelines describe ways to optimize Place Autocomplete performance:</p> <ul> <li>Add country restrictions, <a href="/maps/documentation/places/web-service/autocomplete#location_biasing">location biasing</a>, and (for programmatic implementations) language preference to your Place Autocomplete implementation. Language preference is not needed with widgets since they pick language preferences from the user's browser or mobile device. </li> <li>If Place Autocomplete is accompanied by a map, you can bias location by map viewport.</li> <li>In situations when a user does not choose one of the Autocomplete predictions, generally because none of those predictions are the desired result-address, you can reuse the original user input to attempt to get more relevant results: <ul> <li>If you expect the user to enter only address information, reuse the original user input in a call to the <a href="/maps/documentation/geocoding/overview">Geocoding API</a>.</li> <li>If you expect the user to enter queries for a specific place by name or address, use a <a href="/maps/documentation/places/web-service/search#FindPlaceRequests">Find Place request</a>. If results are only expected in a specific region, use <a href="/maps/documentation/places/web-service/autocomplete#location_biasing">location biasing</a>.</li> </ul> Other scenarios when it's best to fall back to the Geocoding API include: <ul> <li>Users inputting subpremise addresses, such as addresses for specific units or apartments within a building. For example, the Czech address "Stroupežnického 3191/17, Praha" yields a partial prediction in Place Autocomplete.</li> <li>Users inputting addresses with road-segment prefixes like "23-30 29th St, Queens" in New York City or "47-380 Kamehameha Hwy, Kaneohe" on the island of Kauai in Hawai'i.</li> </ul> </li> </ul> <h3 id="location_biasing" data-text="Location biasing" tabindex="-1">Location biasing</h3> <p>Bias results to a specified area by passing a <code translate="no" dir="ltr">location</code> parameter and a <code translate="no" dir="ltr">radius</code> parameter. This instructs the Place Autocomplete service to <em>prefer</em> showing results within the defined area. Results outside of the defined area may still be displayed. You can use the <code translate="no" dir="ltr">components</code> parameter to filter results to show only those places within a specified country.</p> <aside class="warning"> <b>Warning:</b> If <code translate="no" dir="ltr">radius</code> is not provided, the <code translate="no" dir="ltr">location</code> parameter is ignored. </aside> <p><strong>Tip:</strong> Establishment results generally do not rank highly enough to show in results when the search area is large. If you want establishments to appear in mixed establishment/geocode results, you can specify a smaller radius. Alternatively, use <code translate="no" dir="ltr">types=establishment</code> to restrict results to establishments only.</p> <h3 id="location_restrict" data-text="Location restricting" tabindex="-1">Location restricting</h3> <p>Restrict results to a specified area by passing a <code translate="no" dir="ltr">locationrestriction</code> parameter.</p> <p>You may also restrict results to the region defined by <code translate="no" dir="ltr">location</code> and a <code translate="no" dir="ltr">radius</code> parameter, by adding the <code translate="no" dir="ltr">strictbounds</code> parameter. This instructs the Place Autocomplete service to return <em>only</em> results within that region. <aside class="note"><strong>Note:</strong> Location restrictions are only applied to entire routes, synthetic results located outside the location restriction may be returned based on a route that overlaps with the location restriction.</aside> </div> <devsite-recommendations display="in-page" hidden yield> </devsite-recommendations> <devsite-thumb-rating position="footer"> </devsite-thumb-rating> <devsite-feedback position="footer" project-name="Places API" product-id="81777" bucket="" context="Places API Docs" version="t-devsite-webserver-20241114-r00-rc02.464922260396498922" data-label="Send Feedback Button" track-type="feedback" track-name="sendFeedbackLink" track-metadata-position="footer" class="nocontent" project-icon="https://www.gstatic.com/devrel-devsite/prod/v870e399c64f7c43c99a3043db4b3a74327bb93d0914e84a0c3dba90bbfd67625/developers/images/touchicon-180-new.png" > <button> Send feedback </button> </devsite-feedback> <devsite-recommendations id="recommendations-link" yield></devsite-recommendations> <div class="devsite-floating-action-buttons"> </div> </article> <devsite-content-footer class="nocontent"> <p>Except as otherwise noted, the content of this page is licensed under the <a href="https://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 License</a>, and code samples are licensed under the <a href="https://www.apache.org/licenses/LICENSE-2.0">Apache 2.0 License</a>. For details, see the <a href="https://developers.google.com/site-policies">Google Developers Site Policies</a>. Java is a registered trademark of Oracle and/or its affiliates.</p> <p>Last updated 2024-11-21 UTC.</p> </devsite-content-footer> <devsite-notification > </devsite-notification> <div class="devsite-content-data"> <template class="devsite-thumb-rating-feedback"> <devsite-feedback position="thumb-rating" project-name="Places API" product-id="81777" bucket="" context="Places API Docs" version="t-devsite-webserver-20241114-r00-rc02.464922260396498922" data-label="Send Feedback Button" track-type="feedback" track-name="sendFeedbackLink" track-metadata-position="thumb-rating" class="nocontent" project-icon="https://www.gstatic.com/devrel-devsite/prod/v870e399c64f7c43c99a3043db4b3a74327bb93d0914e84a0c3dba90bbfd67625/developers/images/touchicon-180-new.png" > <button> Need to tell us more? </button> </devsite-feedback> </template> <template class="devsite-content-data-template"> [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-11-21 UTC."],[],[]] </template> </div> </devsite-content> </main> <devsite-footer-promos class="devsite-footer"> <nav class="devsite-footer-promos nocontent" aria-label="Promotions"> <ul class="devsite-footer-promos-list"> <li class="devsite-footer-promo"> <a href="https://stackoverflow.com/search?q=google-places-api+web-services" class="devsite-footer-promo-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Promo Link (index 1)" > <picture> <img class="devsite-footer-promo-icon" src="/static/site-assets/logo-stack-overflow.svg" loading="lazy" alt="Stack Overflow"> </picture> <span class="devsite-footer-promo-label"> Stack Overflow </span> </a> <div class="devsite-footer-promo-description">Ask a question under the google-maps tag.</div> </li> <li class="devsite-footer-promo"> <a href="https://github.com/googlemaps/" class="devsite-footer-promo-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Promo Link (index 2)" > <picture> <img class="devsite-footer-promo-icon" src="/static/site-assets/logo-github.svg" loading="lazy" alt="GitHub"> </picture> <span class="devsite-footer-promo-label"> GitHub </span> </a> <div class="devsite-footer-promo-description">Fork our samples and try them yourself.</div> </li> <li class="devsite-footer-promo"> <a href="https://discord.gg/f4hvx8Rp2q" class="devsite-footer-promo-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Promo Link (index 3)" > <picture> <img class="devsite-footer-promo-icon" src="/static/maps/images/discord-color.png" loading="lazy" alt="Discord"> </picture> <span class="devsite-footer-promo-label"> Discord </span> </a> <div class="devsite-footer-promo-description">Chat with fellow developers about Google Maps Platform.</div> </li> <li class="devsite-footer-promo"> <a href="https://issuetracker.google.com/issues/new?component=188872&amp;template=787713" class="devsite-footer-promo-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Promo Link (index 4)" > <picture> <img class="devsite-footer-promo-icon" src="/static/site-assets/developers_64dp.png" loading="lazy" alt="Issue Tracker"> </picture> <span class="devsite-footer-promo-label"> Issue Tracker </span> </a> <div class="devsite-footer-promo-description">Something wrong? Send us a bug report!</div> </li> </ul> </nav> </devsite-footer-promos> <devsite-footer-linkboxes class="devsite-footer"> <nav class="devsite-footer-linkboxes nocontent" aria-label="Footer links"> <ul class="devsite-footer-linkboxes-list"> <li class="devsite-footer-linkbox "> <h3 class="devsite-footer-linkbox-heading no-link">Learn More</h3> <ul class="devsite-footer-linkbox-list"> <li class="devsite-footer-linkbox-item"> <a href="/maps/faq" class="devsite-footer-linkbox-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Link (index 1)" > FAQ </a> </li> <li class="devsite-footer-linkbox-item"> <a href="/maps/documentation/api-picker" class="devsite-footer-linkbox-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Link (index 2)" > API Picker </a> </li> <li class="devsite-footer-linkbox-item"> <a href="/maps/documentation/javascript/examples/places-placeid-finder" class="devsite-footer-linkbox-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Link (index 3)" > Place ID Finder </a> </li> </ul> </li> <li class="devsite-footer-linkbox "> <h3 class="devsite-footer-linkbox-heading no-link">Platforms</h3> <ul class="devsite-footer-linkbox-list"> <li class="devsite-footer-linkbox-item"> <a href="/maps/apis-by-platform#android" class="devsite-footer-linkbox-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Link (index 1)" > Android </a> </li> <li class="devsite-footer-linkbox-item"> <a href="/maps/apis-by-platform#ios" class="devsite-footer-linkbox-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Link (index 2)" > iOS </a> </li> <li class="devsite-footer-linkbox-item"> <a href="/maps/apis-by-platform#web_apis" class="devsite-footer-linkbox-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Link (index 3)" > Web </a> </li> <li class="devsite-footer-linkbox-item"> <a href="/maps/apis-by-platform#web_service_apis" class="devsite-footer-linkbox-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Link (index 4)" > Web Services </a> </li> </ul> </li> <li class="devsite-footer-linkbox "> <h3 class="devsite-footer-linkbox-heading no-link">Product Info</h3> <ul class="devsite-footer-linkbox-list"> <li class="devsite-footer-linkbox-item"> <a href="/maps/pricing-and-plans" class="devsite-footer-linkbox-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="footerMen"data-action="linkClick"data-category="pricingAndPlans"> Pricing and Plans </a> </li> <li class="devsite-footer-linkbox-item"> <a href="https://mapsplatform.google.com/contact-us/" class="devsite-footer-linkbox-link gc-analytics-event" data-category="Site-Wide Custom Events" data-action="linkClick"data-category="contactSales"data-label="footerMenu"> Contact Sales </a> </li> <li class="devsite-footer-linkbox-item"> <a href="https://developers.google.com/maps/support/" class="devsite-footer-linkbox-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Link (index 3)" > Support </a> </li> <li class="devsite-footer-linkbox-item"> <a href="https://cloud.google.com/maps-platform/terms" class="devsite-footer-linkbox-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Link (index 4)" > Terms of Service </a> </li> </ul> </li> </ul> </nav> </devsite-footer-linkboxes> <devsite-footer-utility class="devsite-footer"> <div class="devsite-footer-utility nocontent"> <nav class="devsite-footer-sites" aria-label="Other Google Developers websites"> <a href="https://developers.google.com/" class="devsite-footer-sites-logo-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Google Developers Link"> <picture> <img class="devsite-footer-sites-logo" src="https://www.gstatic.com/devrel-devsite/prod/v870e399c64f7c43c99a3043db4b3a74327bb93d0914e84a0c3dba90bbfd67625/developers/images/lockup-google-for-developers.svg" loading="lazy" alt="Google Developers"> </picture> </a> <ul class="devsite-footer-sites-list"> <li class="devsite-footer-sites-item"> <a href="//developer.android.com" class="devsite-footer-sites-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Android Link" > Android </a> </li> <li class="devsite-footer-sites-item"> <a href="//developer.chrome.com/home" class="devsite-footer-sites-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Chrome Link" > Chrome </a> </li> <li class="devsite-footer-sites-item"> <a href="//firebase.google.com" class="devsite-footer-sites-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Firebase Link" > Firebase </a> </li> <li class="devsite-footer-sites-item"> <a href="//cloud.google.com" class="devsite-footer-sites-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Google Cloud Platform Link" > Google Cloud Platform </a> </li> <li class="devsite-footer-sites-item"> <a href="//ai.google.dev/" class="devsite-footer-sites-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Google AI Link" > Google AI </a> </li> <li class="devsite-footer-sites-item"> <a href="/products" class="devsite-footer-sites-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer All products Link" > All products </a> </li> </ul> </nav> <nav class="devsite-footer-utility-links" aria-label="Utility links"> <ul class="devsite-footer-utility-list"> <li class="devsite-footer-utility-item "> <a class="devsite-footer-utility-link gc-analytics-event" href="/terms/site-terms" data-category="Site-Wide Custom Events" data-label="Footer Terms link" > Terms </a> </li> <li class="devsite-footer-utility-item "> <a class="devsite-footer-utility-link gc-analytics-event" href="//policies.google.com/privacy" data-category="Site-Wide Custom Events" data-label="Footer Privacy link" > Privacy </a> </li> <li class="devsite-footer-utility-item glue-cookie-notification-bar-control"> <a class="devsite-footer-utility-link gc-analytics-event" href="#" data-category="Site-Wide Custom Events" data-label="Footer Manage cookies link" aria-hidden="true" > Manage cookies </a> </li> <li class="devsite-footer-utility-item devsite-footer-utility-button"> <span class="devsite-footer-utility-description">Sign up for the Google for Developers newsletter</span> <a class="devsite-footer-utility-link gc-analytics-event" href="/newsletter/subscribe" data-category="Site-Wide Custom Events" data-label="Footer Subscribe link" > Subscribe </a> </li> </ul> <devsite-language-selector> <ul role="presentation"> <li role="presentation"> <a role="menuitem" lang="en" >English</a> </li> <li role="presentation"> <a role="menuitem" lang="de" >Deutsch</a> </li> <li role="presentation"> <a role="menuitem" lang="es" >Español</a> </li> <li role="presentation"> <a role="menuitem" lang="es_419" >Español – América Latina</a> </li> <li role="presentation"> <a role="menuitem" lang="fr" >Français</a> </li> <li role="presentation"> <a role="menuitem" lang="id" >Indonesia</a> </li> <li role="presentation"> <a role="menuitem" lang="it" >Italiano</a> </li> <li role="presentation"> <a role="menuitem" lang="pl" >Polski</a> </li> <li role="presentation"> <a role="menuitem" lang="pt_br" >Português – Brasil</a> </li> <li role="presentation"> <a role="menuitem" lang="vi" >Tiếng Việt</a> </li> <li role="presentation"> <a role="menuitem" lang="tr" >Türkçe</a> </li> <li role="presentation"> <a role="menuitem" lang="ru" >Русский</a> </li> <li role="presentation"> <a role="menuitem" lang="he" >עברית</a> </li> <li role="presentation"> <a role="menuitem" lang="ar" >العربيّة</a> </li> <li role="presentation"> <a role="menuitem" lang="fa" >فارسی</a> </li> <li role="presentation"> <a role="menuitem" lang="hi" >हिंदी</a> </li> <li role="presentation"> <a role="menuitem" lang="bn" >বাংলা</a> </li> <li role="presentation"> <a role="menuitem" lang="th" >ภาษาไทย</a> </li> <li role="presentation"> <a role="menuitem" lang="zh_cn" >中文 – 简体</a> </li> <li role="presentation"> <a role="menuitem" lang="zh_tw" >中文 – 繁體</a> </li> <li role="presentation"> <a role="menuitem" lang="ja" >日本語</a> </li> <li role="presentation"> <a role="menuitem" lang="ko" >한국어</a> </li> </ul> </devsite-language-selector> </nav> </div> </devsite-footer-utility> <devsite-panel></devsite-panel> <devsite-concierge data-info-panel data-ai-panel data-api-explorer-panel > </devsite-concierge> </section></section> <devsite-sitemask></devsite-sitemask> <devsite-snackbar></devsite-snackbar> <devsite-tooltip ></devsite-tooltip> <devsite-heading-link></devsite-heading-link> <devsite-analytics> <script type="application/json" analytics>[{&#34;dimensions&#34;: {&#34;dimension5&#34;: &#34;en&#34;, &#34;dimension3&#34;: false, &#34;dimension4&#34;: &#34;Places API&#34;, &#34;dimension6&#34;: &#34;en&#34;, &#34;dimension1&#34;: &#34;Signed out&#34;, &#34;dimension11&#34;: false}, &#34;gaid&#34;: &#34;UA-24532603-1&#34;, &#34;metrics&#34;: {&#34;ratings_value&#34;: &#34;metric1&#34;, &#34;ratings_count&#34;: &#34;metric2&#34;}, &#34;purpose&#34;: 1}]</script> <script type="application/json" tag-management>{&#34;at&#34;: &#34;True&#34;, &#34;ga4&#34;: [{&#34;id&#34;: &#34;G-272J68FCRF&#34;, &#34;purpose&#34;: 1}], &#34;ga4p&#34;: [{&#34;id&#34;: &#34;G-272J68FCRF&#34;, &#34;purpose&#34;: 1}], &#34;gtm&#34;: [{&#34;id&#34;: &#34;GTM-W2H69MN&#34;, &#34;purpose&#34;: 0}], &#34;parameters&#34;: {&#34;internalUser&#34;: &#34;False&#34;, &#34;language&#34;: {&#34;machineTranslated&#34;: &#34;False&#34;, &#34;requested&#34;: &#34;en&#34;, &#34;served&#34;: &#34;en&#34;}, &#34;pageType&#34;: &#34;article&#34;, &#34;projectName&#34;: &#34;Places API&#34;, &#34;signedIn&#34;: &#34;False&#34;, &#34;tenant&#34;: &#34;developers&#34;, &#34;recommendations&#34;: {&#34;sourcePage&#34;: &#34;&#34;, &#34;sourceType&#34;: 0, &#34;sourceRank&#34;: 0, &#34;sourceIdenticalDescriptions&#34;: 0, &#34;sourceTitleWords&#34;: 0, &#34;sourceDescriptionWords&#34;: 0, &#34;experiment&#34;: &#34;&#34;}, &#34;experiment&#34;: {&#34;ids&#34;: &#34;&#34;}}}</script> </devsite-analytics> <devsite-badger></devsite-badger> <script nonce="0ba5t2feNu/5yXDQ8ViHGtEGcdUHtA"> (function(d,e,v,s,i,t,E){d['GoogleDevelopersObject']=i; t=e.createElement(v);t.async=1;t.src=s;E=e.getElementsByTagName(v)[0]; E.parentNode.insertBefore(t,E);})(window, document, 'script', 'https://www.gstatic.com/devrel-devsite/prod/v870e399c64f7c43c99a3043db4b3a74327bb93d0914e84a0c3dba90bbfd67625/developers/js/app_loader.js', '[1,"en",null,"/js/devsite_app_module.js","https://www.gstatic.com/devrel-devsite/prod/v870e399c64f7c43c99a3043db4b3a74327bb93d0914e84a0c3dba90bbfd67625","https://www.gstatic.com/devrel-devsite/prod/v870e399c64f7c43c99a3043db4b3a74327bb93d0914e84a0c3dba90bbfd67625/developers","https://developers-dot-devsite-v2-prod.appspot.com",null,null,["/_pwa/developers/manifest.json","https://www.gstatic.com/devrel-devsite/prod/v870e399c64f7c43c99a3043db4b3a74327bb93d0914e84a0c3dba90bbfd67625/images/video-placeholder.svg","https://www.gstatic.com/devrel-devsite/prod/v870e399c64f7c43c99a3043db4b3a74327bb93d0914e84a0c3dba90bbfd67625/developers/images/favicon-new.png","https://fonts.googleapis.com/css?family=Google+Sans:400,500|Roboto:400,400italic,500,500italic,700,700italic|Roboto+Mono:400,500,700&display=swap"],1,null,[1,6,8,12,14,17,21,25,50,52,63,70,75,76,80,87,91,92,93,97,98,100,101,102,103,104,105,107,108,109,110,112,113,116,117,118,120,122,124,125,126,127,129,130,131,132,133,134,135,136,138,140,141,147,148,149,151,152,156,157,158,159,161,163,164,168,169,170,179,180,182,183,186,191,193,196],"AIzaSyAP-jjEJBzmIyKR4F-3XITp8yM9T1gEEI8","AIzaSyB6xiKGDR5O3Ak2okS4rLkauxGUG7XP0hg","developers.google.com","AIzaSyAQk0fBONSGUqCNznf6Krs82Ap1-NV6J4o","AIzaSyCCxcqdrZ_7QMeLCRY20bh_SXdAYqy70KY",null,null,null,["MiscFeatureFlags__enable_project_variables","TpcFeatures__enable_required_headers","Search__enable_ai_eligibility_checks","MiscFeatureFlags__enable_firebase_utm","Cloud__enable_cloudx_ping","Search__enable_ai_search_summaries","Profiles__enable_profile_collections","Profiles__enable_page_saving","CloudShell__cloud_code_overflow_menu","Concierge__enable_concierge_restricted","Search__enable_page_map","Analytics__enable_clearcut_logging","BookNav__enable_tenant_cache_key","Search__enable_dynamic_content_confidential_banner","Concierge__enable_concierge","Profiles__enable_recognition_badges","Cloud__enable_cloud_facet_chat","Profiles__require_profile_eligibility_for_signin","MiscFeatureFlags__enable_explain_this_code","Profiles__enable_public_developer_profiles","Cloud__enable_legacy_calculator_redirect","MiscFeatureFlags__developers_footer_image","CloudShell__cloud_shell_button","MiscFeatureFlags__emergency_css","MiscFeatureFlags__developers_footer_dark_image","Profiles__enable_developer_profiles_callout","Significatio__enable_by_tenant","Concierge__enable_pushui","Cloud__enable_free_trial_server_call","Profiles__enable_dashboard_curated_recommendations","EngEduTelemetry__enable_engedu_telemetry","Cloud__enable_cloudx_experiment_ids","Cloud__enable_cloud_shell_fte_user_flow","Search__enable_suggestions_from_borg","MiscFeatureFlags__enable_variable_operator","Profiles__enable_awarding_url","Search__enable_ai_search_summaries_restricted","Cloud__enable_llm_concierge_chat","Cloud__enable_cloud_dlp_service","Experiments__reqs_query_experiments","TpcFeatures__enable_mirror_tenant_redirects","DevPro__enable_developer_subscriptions","MiscFeatureFlags__enable_view_transitions","Profiles__enable_complete_playlist_endpoint","Cloud__enable_cloud_shell","Profiles__enable_completecodelab_endpoint","DevPro__enable_cloud_innovators_plus","Profiles__enable_release_notes_notifications"],null,null,"AIzaSyBLEMok-5suZ67qRPzx0qUtbnLmyT_kCVE","https://developerscontentserving-pa.clients6.google.com","AIzaSyCM4QpTRSqP5qI4Dvjt4OAScIN8sOUlO-k","https://developerscontentsearch-pa.clients6.google.com",1,4,null,"https://developerprofiles-pa.clients6.google.com",[1,"developers","Google for Developers","developers.google.com",null,"developers-dot-devsite-v2-prod.appspot.com",null,null,[1,1,[1],null,null,null,null,null,null,null,null,[1],null,null,null,null,null,null,[1],[1,null,null,[1,20],"/recommendations/information"],null,null,null,[1,1,1],[1,1,null,1,1]],null,[null,null,null,null,null,null,"/images/lockup-new.svg","/images/touchicon-180-new.png",null,null,null,null,1,null,null,null,null,null,null,null,null,1,null,null,null,"/images/lockup-dark-theme-new.svg",[]],[],null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,[6,1,14,15,20,22,23,29,32,36],null,[[null,null,null,[3,7,10,2,39,17,4,32,24,11,12,13,34,15,25],null,null,[1,[["docType","Choose a content type",[["Tutorial",null,null,null,null,null,null,null,null,"Tutorial"],["Guide",null,null,null,null,null,null,null,null,"Guide"],["Sample",null,null,null,null,null,null,null,null,"Sample"]]],["product","Choose a product",[["Android",null,null,null,null,null,null,null,null,"Android"],["ARCore",null,null,null,null,null,null,null,null,"ARCore"],["ChromeOS",null,null,null,null,null,null,null,null,"ChromeOS"],["Firebase",null,null,null,null,null,null,null,null,"Firebase"],["Flutter",null,null,null,null,null,null,null,null,"Flutter"],["Assistant",null,null,null,null,null,null,null,null,"Google Assistant"],["GoogleCloud",null,null,null,null,null,null,null,null,"Google Cloud"],["GoogleMapsPlatform",null,null,null,null,null,null,null,null,"Google Maps Platform"],["GooglePay",null,null,null,null,null,null,null,null,"Google Pay & Google Wallet"],["GooglePlay",null,null,null,null,null,null,null,null,"Google Play"],["Tensorflow",null,null,null,null,null,null,null,null,"TensorFlow"]]],["category","Choose a topic",[["AiAndMachineLearning",null,null,null,null,null,null,null,null,"AI and Machine Learning"],["Data",null,null,null,null,null,null,null,null,"Data"],["Enterprise",null,null,null,null,null,null,null,null,"Enterprise"],["Gaming",null,null,null,null,null,null,null,null,"Gaming"],["Mobile",null,null,null,null,null,null,null,null,"Mobile"],["Web",null,null,null,null,null,null,null,null,"Web"]]]]]],[1,1],null,1],[[["UA-24532603-1"],["UA-22084204-5"],null,null,["UA-24532603-5"],null,null,[["G-272J68FCRF"],null,null,[["G-272J68FCRF",2]]],[["UA-24532603-1",2]],null,[["UA-24532603-5",2]],null,1],[[14,11],[16,13],[11,8],[4,3],[15,12],[5,4],[6,5],[1,1],[12,9],[13,10],[3,2]],[[1,1],[2,2]]],null,4,null,null,null,null,null,null,null,null,null,null,null,null,null,"developers.devsite.google"],null,"pk_live_5170syrHvgGVmSx9sBrnWtA5luvk9BwnVcvIi7HizpwauFG96WedXsuXh790rtij9AmGllqPtMLfhe2RSwD6Pn38V00uBCydV4m"]') </script> <devsite-a11y-announce></devsite-a11y-announce> </body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10