1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208
|
<html><body>
<style>
body, h1, h2, h3, div, span, p, pre, a {
margin: 0;
padding: 0;
border: 0;
font-weight: inherit;
font-style: inherit;
font-size: 100%;
font-family: inherit;
vertical-align: baseline;
}
body {
font-size: 13px;
padding: 1em;
}
h1 {
font-size: 26px;
margin-bottom: 1em;
}
h2 {
font-size: 24px;
margin-bottom: 1em;
}
h3 {
font-size: 20px;
margin-bottom: 1em;
margin-top: 1em;
}
pre, code {
line-height: 1.5;
font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
}
pre {
margin-top: 0.5em;
}
h1, h2, h3, p {
font-family: Arial, sans serif;
}
h1, h2, h3 {
border-bottom: solid #CCC 1px;
}
.toc_element {
margin-top: 0.5em;
}
.firstline {
margin-left: 2 em;
}
.method {
margin-top: 1em;
border: solid 1px #CCC;
padding: 1em;
background: #EEE;
}
.details {
font-weight: bold;
font-size: 14px;
}
</style>
<h1><a href="places_v1.html">Places API (New)</a> . <a href="places_v1.places.html">places</a></h1>
<h2>Instance Methods</h2>
<p class="toc_element">
<code><a href="places_v1.places.photos.html">photos()</a></code>
</p>
<p class="firstline">Returns the photos Resource.</p>
<p class="toc_element">
<code><a href="#autocomplete">autocomplete(body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Returns predictions for the given input.</p>
<p class="toc_element">
<code><a href="#close">close()</a></code></p>
<p class="firstline">Close httplib2 connections.</p>
<p class="toc_element">
<code><a href="#get">get(name, languageCode=None, regionCode=None, sessionToken=None, x__xgafv=None)</a></code></p>
<p class="firstline">Get the details of a place based on its resource name, which is a string in the `places/{place_id}` format.</p>
<p class="toc_element">
<code><a href="#searchNearby">searchNearby(body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Search for places near locations.</p>
<p class="toc_element">
<code><a href="#searchText">searchText(body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Text query based place search.</p>
<p class="toc_element">
<code><a href="#searchText_next">searchText_next()</a></code></p>
<p class="firstline">Retrieves the next page of results.</p>
<h3>Method Details</h3>
<div class="method">
<code class="details" id="autocomplete">autocomplete(body=None, x__xgafv=None)</code>
<pre>Returns predictions for the given input.
Args:
body: object, The request body.
The object takes the form of:
{ # Request proto for AutocompletePlaces.
"includePureServiceAreaBusinesses": True or False, # Optional. Include pure service area businesses if the field is set to true. Pure service area business is a business that visits or delivers to customers directly but does not serve customers at their business address. For example, businesses like cleaning services or plumbers. Those businesses do not have a physical address or location on Google Maps. Places will not return fields including `location`, `plus_code`, and other location related fields for these businesses.
"includeQueryPredictions": True or False, # Optional. If true, the response will include both Place and query predictions. Otherwise the response will only return Place predictions.
"includedPrimaryTypes": [ # Optional. Included primary Place type (for example, "restaurant" or "gas_station") in Place Types (https://developers.google.com/maps/documentation/places/web-service/place-types), or only `(regions)`, or only `(cities)`. A Place is only returned if its primary type is included in this list. Up to 5 values can be specified. If no types are specified, all Place types are returned.
"A String",
],
"includedRegionCodes": [ # Optional. Only include results in the specified regions, specified as up to 15 CLDR two-character region codes. An empty set will not restrict the results. If both `location_restriction` and `included_region_codes` are set, the results will be located in the area of intersection.
"A String",
],
"input": "A String", # Required. The text string on which to search.
"inputOffset": 42, # Optional. A zero-based Unicode character offset of `input` indicating the cursor position in `input`. The cursor position may influence what predictions are returned. If empty, defaults to the length of `input`.
"languageCode": "A String", # Optional. The language in which to return results. Defaults to en-US. The results may be in mixed languages if the language used in `input` is different from `language_code` or if the returned Place does not have a translation from the local language to `language_code`.
"locationBias": { # The region to search. The results may be biased around the specified region. # Optional. Bias results to a specified location. At most one of `location_bias` or `location_restriction` should be set. If neither are set, the results will be biased by IP address, meaning the IP address will be mapped to an imprecise location and used as a biasing signal.
"circle": { # Circle with a LatLng as center and radius. # A circle defined by a center point and radius.
"center": { # An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges. # Required. Center latitude and longitude. The range of latitude must be within [-90.0, 90.0]. The range of the longitude must be within [-180.0, 180.0].
"latitude": 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
"longitude": 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
},
"radius": 3.14, # Required. Radius measured in meters. The radius must be within [0.0, 50000.0].
},
"rectangle": { # A latitude-longitude viewport, represented as two diagonally opposite `low` and `high` points. A viewport is considered a closed region, i.e. it includes its boundary. The latitude bounds must range between -90 to 90 degrees inclusive, and the longitude bounds must range between -180 to 180 degrees inclusive. Various cases include: - If `low` = `high`, the viewport consists of that single point. - If `low.longitude` > `high.longitude`, the longitude range is inverted (the viewport crosses the 180 degree longitude line). - If `low.longitude` = -180 degrees and `high.longitude` = 180 degrees, the viewport includes all longitudes. - If `low.longitude` = 180 degrees and `high.longitude` = -180 degrees, the longitude range is empty. - If `low.latitude` > `high.latitude`, the latitude range is empty. Both `low` and `high` must be populated, and the represented box cannot be empty (as specified by the definitions above). An empty viewport will result in an error. For example, this viewport fully encloses New York City: { "low": { "latitude": 40.477398, "longitude": -74.259087 }, "high": { "latitude": 40.91618, "longitude": -73.70018 } } # A viewport defined by a northeast and a southwest corner.
"high": { # An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges. # Required. The high point of the viewport.
"latitude": 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
"longitude": 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
},
"low": { # An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges. # Required. The low point of the viewport.
"latitude": 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
"longitude": 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
},
},
},
"locationRestriction": { # The region to search. The results will be restricted to the specified region. # Optional. Restrict results to a specified location. At most one of `location_bias` or `location_restriction` should be set. If neither are set, the results will be biased by IP address, meaning the IP address will be mapped to an imprecise location and used as a biasing signal.
"circle": { # Circle with a LatLng as center and radius. # A circle defined by a center point and radius.
"center": { # An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges. # Required. Center latitude and longitude. The range of latitude must be within [-90.0, 90.0]. The range of the longitude must be within [-180.0, 180.0].
"latitude": 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
"longitude": 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
},
"radius": 3.14, # Required. Radius measured in meters. The radius must be within [0.0, 50000.0].
},
"rectangle": { # A latitude-longitude viewport, represented as two diagonally opposite `low` and `high` points. A viewport is considered a closed region, i.e. it includes its boundary. The latitude bounds must range between -90 to 90 degrees inclusive, and the longitude bounds must range between -180 to 180 degrees inclusive. Various cases include: - If `low` = `high`, the viewport consists of that single point. - If `low.longitude` > `high.longitude`, the longitude range is inverted (the viewport crosses the 180 degree longitude line). - If `low.longitude` = -180 degrees and `high.longitude` = 180 degrees, the viewport includes all longitudes. - If `low.longitude` = 180 degrees and `high.longitude` = -180 degrees, the longitude range is empty. - If `low.latitude` > `high.latitude`, the latitude range is empty. Both `low` and `high` must be populated, and the represented box cannot be empty (as specified by the definitions above). An empty viewport will result in an error. For example, this viewport fully encloses New York City: { "low": { "latitude": 40.477398, "longitude": -74.259087 }, "high": { "latitude": 40.91618, "longitude": -73.70018 } } # A viewport defined by a northeast and a southwest corner.
"high": { # An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges. # Required. The high point of the viewport.
"latitude": 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
"longitude": 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
},
"low": { # An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges. # Required. The low point of the viewport.
"latitude": 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
"longitude": 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
},
},
},
"origin": { # An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges. # Optional. The origin point from which to calculate geodesic distance to the destination (returned as `distance_meters`). If this value is omitted, geodesic distance will not be returned.
"latitude": 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
"longitude": 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
},
"regionCode": "A String", # Optional. The region code, specified as a CLDR two-character region code. This affects address formatting, result ranking, and may influence what results are returned. This does not restrict results to the specified region. To restrict results to a region, use `region_code_restriction`.
"sessionToken": "A String", # Optional. A string which identifies an Autocomplete session for billing purposes. Must be a URL and filename safe base64 string with at most 36 ASCII characters in length. Otherwise an INVALID_ARGUMENT error is returned. The session begins when the user starts typing a query, and concludes when they select a place and a call to Place Details or Address Validation is made. Each session can have multiple queries, followed by one Place Details or Address Validation request. The credentials 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 `session_token` 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). We recommend the following guidelines: * Use session tokens for all Place Autocomplete calls. * Generate a fresh token for each session. Using a version 4 UUID is recommended. * Ensure that the credentials used for all Place Autocomplete, Place Details, and Address Validation requests within a session belong to the same Cloud Console project. * 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.
}
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{ # Response proto for AutocompletePlaces.
"suggestions": [ # Contains a list of suggestions, ordered in descending order of relevance.
{ # An Autocomplete suggestion result.
"placePrediction": { # Prediction results for a Place Autocomplete prediction. # A prediction for a Place.
"distanceMeters": 42, # The length of the geodesic in meters from `origin` if `origin` is specified. Certain predictions such as routes may not populate this field.
"place": "A String", # The resource name of the suggested Place. This name can be used in other APIs that accept Place names.
"placeId": "A String", # The unique identifier of the suggested Place. This identifier can be used in other APIs that accept Place IDs.
"structuredFormat": { # Contains a breakdown of a Place or query prediction into main text and secondary text. For Place predictions, the main text contains the specific name of the Place. For query predictions, the main text contains the query. The secondary text contains additional disambiguating features (such as a city or region) to further identify the Place or refine the query. # A breakdown of the Place prediction into main text containing the name of the Place and secondary text containing additional disambiguating features (such as a city or region). `structured_format` is recommended for developers who wish to show two separate, but related, UI elements. Developers who wish to show a single UI element may want to use `text` instead. They are two different ways to represent a Place prediction. Users should not try to parse `structured_format` into `text` or vice versa.
"mainText": { # Text representing a Place or query prediction. The text may be used as is or formatted. # Represents the name of the Place or query.
"matches": [ # A list of string ranges identifying where the input request matched in `text`. The ranges can be used to format specific parts of `text`. The substrings may not be exact matches of `input` if the matching was determined by criteria other than string matching (for example, spell corrections or transliterations). These values are Unicode character offsets of `text`. The ranges are guaranteed to be ordered in increasing offset values.
{ # Identifies a substring within a given text.
"endOffset": 42, # Zero-based offset of the last Unicode character (exclusive).
"startOffset": 42, # Zero-based offset of the first Unicode character of the string (inclusive).
},
],
"text": "A String", # Text that may be used as is or formatted with `matches`.
},
"secondaryText": { # Text representing a Place or query prediction. The text may be used as is or formatted. # Represents additional disambiguating features (such as a city or region) to further identify the Place or refine the query.
"matches": [ # A list of string ranges identifying where the input request matched in `text`. The ranges can be used to format specific parts of `text`. The substrings may not be exact matches of `input` if the matching was determined by criteria other than string matching (for example, spell corrections or transliterations). These values are Unicode character offsets of `text`. The ranges are guaranteed to be ordered in increasing offset values.
{ # Identifies a substring within a given text.
"endOffset": 42, # Zero-based offset of the last Unicode character (exclusive).
"startOffset": 42, # Zero-based offset of the first Unicode character of the string (inclusive).
},
],
"text": "A String", # Text that may be used as is or formatted with `matches`.
},
},
"text": { # Text representing a Place or query prediction. The text may be used as is or formatted. # Contains the human-readable name for the returned result. For establishment results, this is usually the business name and address. `text` is recommended for developers who wish to show a single UI element. Developers who wish to show two separate, but related, UI elements may want to use `structured_format` instead. They are two different ways to represent a Place prediction. Users should not try to parse `structured_format` into `text` or vice versa. This text may be different from the `display_name` returned by GetPlace. May be in mixed languages if the request `input` and `language_code` are in different languages or if the Place does not have a translation from the local language to `language_code`.
"matches": [ # A list of string ranges identifying where the input request matched in `text`. The ranges can be used to format specific parts of `text`. The substrings may not be exact matches of `input` if the matching was determined by criteria other than string matching (for example, spell corrections or transliterations). These values are Unicode character offsets of `text`. The ranges are guaranteed to be ordered in increasing offset values.
{ # Identifies a substring within a given text.
"endOffset": 42, # Zero-based offset of the last Unicode character (exclusive).
"startOffset": 42, # Zero-based offset of the first Unicode character of the string (inclusive).
},
],
"text": "A String", # Text that may be used as is or formatted with `matches`.
},
"types": [ # List of types that apply to this Place from Table A or Table B in https://developers.google.com/maps/documentation/places/web-service/place-types. A type is a categorization of a Place. Places with shared types will share similar characteristics.
"A String",
],
},
"queryPrediction": { # Prediction results for a Query Autocomplete prediction. # A prediction for a query.
"structuredFormat": { # Contains a breakdown of a Place or query prediction into main text and secondary text. For Place predictions, the main text contains the specific name of the Place. For query predictions, the main text contains the query. The secondary text contains additional disambiguating features (such as a city or region) to further identify the Place or refine the query. # A breakdown of the query prediction into main text containing the query and secondary text containing additional disambiguating features (such as a city or region). `structured_format` is recommended for developers who wish to show two separate, but related, UI elements. Developers who wish to show a single UI element may want to use `text` instead. They are two different ways to represent a query prediction. Users should not try to parse `structured_format` into `text` or vice versa.
"mainText": { # Text representing a Place or query prediction. The text may be used as is or formatted. # Represents the name of the Place or query.
"matches": [ # A list of string ranges identifying where the input request matched in `text`. The ranges can be used to format specific parts of `text`. The substrings may not be exact matches of `input` if the matching was determined by criteria other than string matching (for example, spell corrections or transliterations). These values are Unicode character offsets of `text`. The ranges are guaranteed to be ordered in increasing offset values.
{ # Identifies a substring within a given text.
"endOffset": 42, # Zero-based offset of the last Unicode character (exclusive).
"startOffset": 42, # Zero-based offset of the first Unicode character of the string (inclusive).
},
],
"text": "A String", # Text that may be used as is or formatted with `matches`.
},
"secondaryText": { # Text representing a Place or query prediction. The text may be used as is or formatted. # Represents additional disambiguating features (such as a city or region) to further identify the Place or refine the query.
"matches": [ # A list of string ranges identifying where the input request matched in `text`. The ranges can be used to format specific parts of `text`. The substrings may not be exact matches of `input` if the matching was determined by criteria other than string matching (for example, spell corrections or transliterations). These values are Unicode character offsets of `text`. The ranges are guaranteed to be ordered in increasing offset values.
{ # Identifies a substring within a given text.
"endOffset": 42, # Zero-based offset of the last Unicode character (exclusive).
"startOffset": 42, # Zero-based offset of the first Unicode character of the string (inclusive).
},
],
"text": "A String", # Text that may be used as is or formatted with `matches`.
},
},
"text": { # Text representing a Place or query prediction. The text may be used as is or formatted. # The predicted text. This text does not represent a Place, but rather a text query that could be used in a search endpoint (for example, Text Search). `text` is recommended for developers who wish to show a single UI element. Developers who wish to show two separate, but related, UI elements may want to use `structured_format` instead. They are two different ways to represent a query prediction. Users should not try to parse `structured_format` into `text` or vice versa. May be in mixed languages if the request `input` and `language_code` are in different languages or if part of the query does not have a translation from the local language to `language_code`.
"matches": [ # A list of string ranges identifying where the input request matched in `text`. The ranges can be used to format specific parts of `text`. The substrings may not be exact matches of `input` if the matching was determined by criteria other than string matching (for example, spell corrections or transliterations). These values are Unicode character offsets of `text`. The ranges are guaranteed to be ordered in increasing offset values.
{ # Identifies a substring within a given text.
"endOffset": 42, # Zero-based offset of the last Unicode character (exclusive).
"startOffset": 42, # Zero-based offset of the first Unicode character of the string (inclusive).
},
],
"text": "A String", # Text that may be used as is or formatted with `matches`.
},
},
},
],
}</pre>
</div>
<div class="method">
<code class="details" id="close">close()</code>
<pre>Close httplib2 connections.</pre>
</div>
<div class="method">
<code class="details" id="get">get(name, languageCode=None, regionCode=None, sessionToken=None, x__xgafv=None)</code>
<pre>Get the details of a place based on its resource name, which is a string in the `places/{place_id}` format.
Args:
name: string, Required. The resource name of a place, in the `places/{place_id}` format. (required)
languageCode: string, Optional. Place details will be displayed with the preferred language if available. Current list of supported languages: https://developers.google.com/maps/faq#languagesupport.
regionCode: string, Optional. The Unicode country/region code (CLDR) of the location where the request is coming from. This parameter is used to display the place details, like region-specific place name, if available. The parameter can affect results based on applicable law. For more information, see https://www.unicode.org/cldr/charts/latest/supplemental/territory_language_information.html. Note that 3-digit region codes are not currently supported.
sessionToken: string, Optional. A string which identifies an Autocomplete session for billing purposes. Must be a URL and filename safe base64 string with at most 36 ASCII characters in length. Otherwise an INVALID_ARGUMENT error is returned. The session begins when the user starts typing a query, and concludes when they select a place and a call to Place Details or Address Validation is made. Each session can have multiple queries, followed by one Place Details or Address Validation request. The credentials 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 `session_token` 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). We recommend the following guidelines: * Use session tokens for all Place Autocomplete calls. * Generate a fresh token for each session. Using a version 4 UUID is recommended. * Ensure that the credentials used for all Place Autocomplete, Place Details, and Address Validation requests within a session belong to the same Cloud Console project. * 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.
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{ # All the information representing a Place.
"accessibilityOptions": { # Information about the accessibility options a place offers. # Information about the accessibility options a place offers.
"wheelchairAccessibleEntrance": True or False, # Places has wheelchair accessible entrance.
"wheelchairAccessibleParking": True or False, # Place offers wheelchair accessible parking.
"wheelchairAccessibleRestroom": True or False, # Place has wheelchair accessible restroom.
"wheelchairAccessibleSeating": True or False, # Place has wheelchair accessible seating.
},
"addressComponents": [ # Repeated components for each locality level. Note the following facts about the address_components[] array: - The array of address components may contain more components than the formatted_address. - The array does not necessarily include all the political entities that contain an address, apart from those included in the formatted_address. To retrieve all the political entities that contain a specific address, you should use reverse geocoding, passing the latitude/longitude of the address as a parameter to the request. - The format of the response is not guaranteed to remain the same between requests. In particular, the number of address_components varies based on the address requested and can change over time for the same address. A component can change position in the array. The type of the component can change. A particular component may be missing in a later response.
{ # The structured components that form the formatted address, if this information is available.
"languageCode": "A String", # The language used to format this components, in CLDR notation.
"longText": "A String", # The full text description or name of the address component. For example, an address component for the country Australia may have a long_name of "Australia".
"shortText": "A String", # An abbreviated textual name for the address component, if available. For example, an address component for the country of Australia may have a short_name of "AU".
"types": [ # An array indicating the type(s) of the address component.
"A String",
],
},
],
"addressDescriptor": { # A relational description of a location. Includes a ranked set of nearby landmarks and precise containing areas and their relationship to the target location. # The address descriptor of the place. Address descriptors include additional information that help describe a location using landmarks and areas. See address descriptor regional coverage in https://developers.google.com/maps/documentation/geocoding/address-descriptors/coverage.
"areas": [ # A ranked list of containing or adjacent areas. The most recognizable and precise areas are ranked first.
{ # Area information and the area's relationship with the target location. Areas includes precise sublocality, neighborhoods, and large compounds that are useful for describing a location.
"containment": "A String", # Defines the spatial relationship between the target location and the area.
"displayName": { # Localized variant of a text in a particular language. # The area's display name.
"languageCode": "A String", # The text's BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
"text": "A String", # Localized string in the language corresponding to language_code below.
},
"name": "A String", # The area's resource name.
"placeId": "A String", # The area's place id.
},
],
"landmarks": [ # A ranked list of nearby landmarks. The most recognizable and nearby landmarks are ranked first.
{ # Basic landmark information and the landmark's relationship with the target location. Landmarks are prominent places that can be used to describe a location.
"displayName": { # Localized variant of a text in a particular language. # The landmark's display name.
"languageCode": "A String", # The text's BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
"text": "A String", # Localized string in the language corresponding to language_code below.
},
"name": "A String", # The landmark's resource name.
"placeId": "A String", # The landmark's place id.
"spatialRelationship": "A String", # Defines the spatial relationship between the target location and the landmark.
"straightLineDistanceMeters": 3.14, # The straight line distance, in meters, between the center point of the target and the center point of the landmark. In some situations, this value can be longer than `travel_distance_meters`.
"travelDistanceMeters": 3.14, # The travel distance, in meters, along the road network from the target to the landmark, if known. This value does not take into account the mode of transportation, such as walking, driving, or biking.
"types": [ # A set of type tags for this landmark. For a complete list of possible values, see https://developers.google.com/maps/documentation/places/web-service/place-types.
"A String",
],
},
],
},
"adrFormatAddress": "A String", # The place's address in adr microformat: http://microformats.org/wiki/adr.
"allowsDogs": True or False, # Place allows dogs.
"attributions": [ # A set of data provider that must be shown with this result.
{ # Information about data providers of this place.
"provider": "A String", # Name of the Place's data provider.
"providerUri": "A String", # URI to the Place's data provider.
},
],
"businessStatus": "A String", # The business status for the place.
"consumerAlert": { # The consumer alert message for the place when we detect suspicious review activity on a business or a business violates our policies. # The consumer alert message for the place when we detect suspicious review activity on a business or a business violates our policies.
"details": { # The details of the consumer alert message. # The details of the consumer alert message.ƒ
"aboutLink": { # The link to show together with the description to provide more information. # The link to show together with the description to provide more information.
"title": "A String", # The title to show for the link.
"uri": "A String", # The uri of the link.
},
"description": "A String", # The description of the consumer alert message.
"title": "A String", # The title to show together with the description.
},
"languageCode": "A String", # The language code of the consumer alert message. This is a BCP 47 language code.
"overview": "A String", # The overview of the consumer alert message.
},
"containingPlaces": [ # List of places in which the current place is located.
{ # Info about the place in which this place is located.
"id": "A String", # The place id of the place in which this place is located.
"name": "A String", # The resource name of the place in which this place is located.
},
],
"curbsidePickup": True or False, # Specifies if the business supports curbside pickup.
"currentOpeningHours": { # Information about business hour of the place. # The hours of operation for the next seven days (including today). The time period starts at midnight on the date of the request and ends at 11:59 pm six days later. This field includes the special_days subfield of all hours, set for dates that have exceptional hours.
"nextCloseTime": "A String", # The next time the current opening hours period ends up to 7 days in the future. This field is only populated if the opening hours period is active at the time of serving the request.
"nextOpenTime": "A String", # The next time the current opening hours period starts up to 7 days in the future. This field is only populated if the opening hours period is not active at the time of serving the request.
"openNow": True or False, # Whether the opening hours period is currently active. For regular opening hours and current opening hours, this field means whether the place is open. For secondary opening hours and current secondary opening hours, this field means whether the secondary hours of this place is active.
"periods": [ # The periods that this place is open during the week. The periods are in chronological order, in the place-local timezone. An empty (but not absent) value indicates a place that is never open, e.g. because it is closed temporarily for renovations. The starting day of `periods` is NOT fixed and should not be assumed to be Sunday. The API determines the start day based on a variety of factors. For example, for a 24/7 business, the first period may begin on the day of the request. For other businesses, it might be the first day of the week that they are open. NOTE: The ordering of the `periods` array is independent of the ordering of the `weekday_descriptions` array. Do not assume they will begin on the same day.
{ # A period the place remains in open_now status.
"close": { # Status changing points. # The time that the place starts to be closed.
"date": { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # Date in the local timezone for the place.
"day": 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
"month": 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
"year": 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
},
"day": 42, # A day of the week, as an integer in the range 0-6. 0 is Sunday, 1 is Monday, etc.
"hour": 42, # The hour in 24 hour format. Ranges from 0 to 23.
"minute": 42, # The minute. Ranges from 0 to 59.
"truncated": True or False, # Whether or not this endpoint was truncated. Truncation occurs when the real hours are outside the times we are willing to return hours between, so we truncate the hours back to these boundaries. This ensures that at most 24 * 7 hours from midnight of the day of the request are returned.
},
"open": { # Status changing points. # The time that the place starts to be open.
"date": { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # Date in the local timezone for the place.
"day": 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
"month": 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
"year": 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
},
"day": 42, # A day of the week, as an integer in the range 0-6. 0 is Sunday, 1 is Monday, etc.
"hour": 42, # The hour in 24 hour format. Ranges from 0 to 23.
"minute": 42, # The minute. Ranges from 0 to 59.
"truncated": True or False, # Whether or not this endpoint was truncated. Truncation occurs when the real hours are outside the times we are willing to return hours between, so we truncate the hours back to these boundaries. This ensures that at most 24 * 7 hours from midnight of the day of the request are returned.
},
},
],
"secondaryHoursType": "A String", # A type string used to identify the type of secondary hours.
"specialDays": [ # Structured information for special days that fall within the period that the returned opening hours cover. Special days are days that could impact the business hours of a place, e.g. Christmas day. Set for current_opening_hours and current_secondary_opening_hours if there are exceptional hours.
{ # Structured information for special days that fall within the period that the returned opening hours cover. Special days are days that could impact the business hours of a place, e.g. Christmas day.
"date": { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # The date of this special day.
"day": 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
"month": 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
"year": 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
},
},
],
"weekdayDescriptions": [ # Localized strings describing the opening hours of this place, one string for each day of the week. NOTE: The order of the days and the start of the week is determined by the locale (language and region). The ordering of the `periods` array is independent of the ordering of the `weekday_descriptions` array. Do not assume they will begin on the same day. Will be empty if the hours are unknown or could not be converted to localized text. Example: "Sun: 18:00–06:00"
"A String",
],
},
"currentSecondaryOpeningHours": [ # Contains an array of entries for the next seven days including information about secondary hours of a business. Secondary hours are different from a business's main hours. For example, a restaurant can specify drive through hours or delivery hours as its secondary hours. This field populates the type subfield, which draws from a predefined list of opening hours types (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on the types of the place. This field includes the special_days subfield of all hours, set for dates that have exceptional hours.
{ # Information about business hour of the place.
"nextCloseTime": "A String", # The next time the current opening hours period ends up to 7 days in the future. This field is only populated if the opening hours period is active at the time of serving the request.
"nextOpenTime": "A String", # The next time the current opening hours period starts up to 7 days in the future. This field is only populated if the opening hours period is not active at the time of serving the request.
"openNow": True or False, # Whether the opening hours period is currently active. For regular opening hours and current opening hours, this field means whether the place is open. For secondary opening hours and current secondary opening hours, this field means whether the secondary hours of this place is active.
"periods": [ # The periods that this place is open during the week. The periods are in chronological order, in the place-local timezone. An empty (but not absent) value indicates a place that is never open, e.g. because it is closed temporarily for renovations. The starting day of `periods` is NOT fixed and should not be assumed to be Sunday. The API determines the start day based on a variety of factors. For example, for a 24/7 business, the first period may begin on the day of the request. For other businesses, it might be the first day of the week that they are open. NOTE: The ordering of the `periods` array is independent of the ordering of the `weekday_descriptions` array. Do not assume they will begin on the same day.
{ # A period the place remains in open_now status.
"close": { # Status changing points. # The time that the place starts to be closed.
"date": { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # Date in the local timezone for the place.
"day": 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
"month": 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
"year": 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
},
"day": 42, # A day of the week, as an integer in the range 0-6. 0 is Sunday, 1 is Monday, etc.
"hour": 42, # The hour in 24 hour format. Ranges from 0 to 23.
"minute": 42, # The minute. Ranges from 0 to 59.
"truncated": True or False, # Whether or not this endpoint was truncated. Truncation occurs when the real hours are outside the times we are willing to return hours between, so we truncate the hours back to these boundaries. This ensures that at most 24 * 7 hours from midnight of the day of the request are returned.
},
"open": { # Status changing points. # The time that the place starts to be open.
"date": { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # Date in the local timezone for the place.
"day": 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
"month": 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
"year": 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
},
"day": 42, # A day of the week, as an integer in the range 0-6. 0 is Sunday, 1 is Monday, etc.
"hour": 42, # The hour in 24 hour format. Ranges from 0 to 23.
"minute": 42, # The minute. Ranges from 0 to 59.
"truncated": True or False, # Whether or not this endpoint was truncated. Truncation occurs when the real hours are outside the times we are willing to return hours between, so we truncate the hours back to these boundaries. This ensures that at most 24 * 7 hours from midnight of the day of the request are returned.
},
},
],
"secondaryHoursType": "A String", # A type string used to identify the type of secondary hours.
"specialDays": [ # Structured information for special days that fall within the period that the returned opening hours cover. Special days are days that could impact the business hours of a place, e.g. Christmas day. Set for current_opening_hours and current_secondary_opening_hours if there are exceptional hours.
{ # Structured information for special days that fall within the period that the returned opening hours cover. Special days are days that could impact the business hours of a place, e.g. Christmas day.
"date": { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # The date of this special day.
"day": 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
"month": 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
"year": 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
},
},
],
"weekdayDescriptions": [ # Localized strings describing the opening hours of this place, one string for each day of the week. NOTE: The order of the days and the start of the week is determined by the locale (language and region). The ordering of the `periods` array is independent of the ordering of the `weekday_descriptions` array. Do not assume they will begin on the same day. Will be empty if the hours are unknown or could not be converted to localized text. Example: "Sun: 18:00–06:00"
"A String",
],
},
],
"delivery": True or False, # Specifies if the business supports delivery.
"dineIn": True or False, # Specifies if the business supports indoor or outdoor seating options.
"displayName": { # Localized variant of a text in a particular language. # The localized name of the place, suitable as a short human-readable description. For example, "Google Sydney", "Starbucks", "Pyrmont", etc.
"languageCode": "A String", # The text's BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
"text": "A String", # Localized string in the language corresponding to language_code below.
},
"editorialSummary": { # Localized variant of a text in a particular language. # Contains a summary of the place. A summary is comprised of a textual overview, and also includes the language code for these if applicable. Summary text must be presented as-is and can not be modified or altered.
"languageCode": "A String", # The text's BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
"text": "A String", # Localized string in the language corresponding to language_code below.
},
"evChargeAmenitySummary": { # The summary of amenities near the EV charging station. This only applies to places with type `electric_vehicle_charging_station`. The `overview` field is guaranteed to be provided while the other fields are optional. # The summary of amenities near the EV charging station.
"coffee": { # A block of content that can be served individually. # A summary of the nearby coffee options.
"content": { # Localized variant of a text in a particular language. # Content related to the topic.
"languageCode": "A String", # The text's BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
"text": "A String", # Localized string in the language corresponding to language_code below.
},
"referencedPlaces": [ # The list of resource names of the referenced places. This name can be used in other APIs that accept Place resource names.
"A String",
],
},
"disclosureText": { # Localized variant of a text in a particular language. # The AI disclosure message "Summarized with Gemini" (and its localized variants). This will be in the language specified in the request if available.
"languageCode": "A String", # The text's BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
"text": "A String", # Localized string in the language corresponding to language_code below.
},
"flagContentUri": "A String", # A link where users can flag a problem with the summary.
"overview": { # A block of content that can be served individually. # An overview of the available amenities. This is guaranteed to be provided.
"content": { # Localized variant of a text in a particular language. # Content related to the topic.
"languageCode": "A String", # The text's BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
"text": "A String", # Localized string in the language corresponding to language_code below.
},
"referencedPlaces": [ # The list of resource names of the referenced places. This name can be used in other APIs that accept Place resource names.
"A String",
],
},
"restaurant": { # A block of content that can be served individually. # A summary of the nearby restaurants.
"content": { # Localized variant of a text in a particular language. # Content related to the topic.
"languageCode": "A String", # The text's BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
"text": "A String", # Localized string in the language corresponding to language_code below.
},
"referencedPlaces": [ # The list of resource names of the referenced places. This name can be used in other APIs that accept Place resource names.
"A String",
],
},
"store": { # A block of content that can be served individually. # A summary of the nearby stores.
"content": { # Localized variant of a text in a particular language. # Content related to the topic.
"languageCode": "A String", # The text's BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
"text": "A String", # Localized string in the language corresponding to language_code below.
},
"referencedPlaces": [ # The list of resource names of the referenced places. This name can be used in other APIs that accept Place resource names.
"A String",
],
},
},
"evChargeOptions": { # Information about the EV Charge Station hosted in Place. Terminology follows https://afdc.energy.gov/fuels/electricity_infrastructure.html One port could charge one car at a time. One port has one or more connectors. One station has one or more ports. # Information of ev charging options.
"connectorAggregation": [ # A list of EV charging connector aggregations that contain connectors of the same type and same charge rate.
{ # EV charging information grouped by [type, max_charge_rate_kw]. Shows EV charge aggregation of connectors that have the same type and max charge rate in kw.
"availabilityLastUpdateTime": "A String", # The timestamp when the connector availability information in this aggregation was last updated.
"availableCount": 42, # Number of connectors in this aggregation that are currently available.
"count": 42, # Number of connectors in this aggregation.
"maxChargeRateKw": 3.14, # The static max charging rate in kw of each connector in the aggregation.
"outOfServiceCount": 42, # Number of connectors in this aggregation that are currently out of service.
"type": "A String", # The connector type of this aggregation.
},
],
"connectorCount": 42, # Number of connectors at this station. However, because some ports can have multiple connectors but only be able to charge one car at a time (e.g.) the number of connectors may be greater than the total number of cars which can charge simultaneously.
},
"formattedAddress": "A String", # A full, human-readable address for this place.
"fuelOptions": { # The most recent information about fuel options in a gas station. This information is updated regularly. # The most recent information about fuel options in a gas station. This information is updated regularly.
"fuelPrices": [ # The last known fuel price for each type of fuel this station has. There is one entry per fuel type this station has. Order is not important.
{ # Fuel price information for a given type.
"price": { # Represents an amount of money with its currency type. # The price of the fuel.
"currencyCode": "A String", # The three-letter currency code defined in ISO 4217.
"nanos": 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
"units": "A String", # The whole units of the amount. For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar.
},
"type": "A String", # The type of fuel.
"updateTime": "A String", # The time the fuel price was last updated.
},
],
},
"generativeSummary": { # AI-generated summary of the place. # AI-generated summary of the place.
"disclosureText": { # Localized variant of a text in a particular language. # The AI disclosure message "Summarized with Gemini" (and its localized variants). This will be in the language specified in the request if available.
"languageCode": "A String", # The text's BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
"text": "A String", # Localized string in the language corresponding to language_code below.
},
"overview": { # Localized variant of a text in a particular language. # The overview of the place.
"languageCode": "A String", # The text's BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
"text": "A String", # Localized string in the language corresponding to language_code below.
},
"overviewFlagContentUri": "A String", # A link where users can flag a problem with the overview summary.
},
"goodForChildren": True or False, # Place is good for children.
"goodForGroups": True or False, # Place accommodates groups.
"goodForWatchingSports": True or False, # Place is suitable for watching sports.
"googleMapsLinks": { # Links to trigger different Google Maps actions. # Links to trigger different Google Maps actions.
"directionsUri": "A String", # A link to show the directions to the place. The link only populates the destination location and uses the default travel mode `DRIVE`.
"photosUri": "A String", # A link to show photos of this place on Google Maps.
"placeUri": "A String", # A link to show this place.
"reviewsUri": "A String", # A link to show reviews of this place on Google Maps.
"writeAReviewUri": "A String", # A link to write a review for this place on Google Maps.
},
"googleMapsUri": "A String", # A URL providing more information about this place.
"iconBackgroundColor": "A String", # Background color for icon_mask in hex format, e.g. #909CE1.
"iconMaskBaseUri": "A String", # A truncated URL to an icon mask. User can access different icon type by appending type suffix to the end (eg, ".svg" or ".png").
"id": "A String", # The unique identifier of a place.
"internationalPhoneNumber": "A String", # A human-readable phone number for the place, in international format.
"liveMusic": True or False, # Place provides live music.
"location": { # An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges. # The position of this place.
"latitude": 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
"longitude": 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
},
"menuForChildren": True or False, # Place has a children's menu.
"name": "A String", # This Place's resource name, in `places/{place_id}` format. Can be used to look up the Place.
"nationalPhoneNumber": "A String", # A human-readable phone number for the place, in national format.
"neighborhoodSummary": { # A summary of points of interest near the place. # A summary of points of interest near the place.
"description": { # A block of content that can be served individually. # A detailed description of the neighborhood.
"content": { # Localized variant of a text in a particular language. # Content related to the topic.
"languageCode": "A String", # The text's BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
"text": "A String", # Localized string in the language corresponding to language_code below.
},
"referencedPlaces": [ # The list of resource names of the referenced places. This name can be used in other APIs that accept Place resource names.
"A String",
],
},
"disclosureText": { # Localized variant of a text in a particular language. # The AI disclosure message "Summarized with Gemini" (and its localized variants). This will be in the language specified in the request if available.
"languageCode": "A String", # The text's BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
"text": "A String", # Localized string in the language corresponding to language_code below.
},
"flagContentUri": "A String", # A link where users can flag a problem with the summary.
"overview": { # A block of content that can be served individually. # An overview summary of the neighborhood.
"content": { # Localized variant of a text in a particular language. # Content related to the topic.
"languageCode": "A String", # The text's BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
"text": "A String", # Localized string in the language corresponding to language_code below.
},
"referencedPlaces": [ # The list of resource names of the referenced places. This name can be used in other APIs that accept Place resource names.
"A String",
],
},
},
"outdoorSeating": True or False, # Place provides outdoor seating.
"parkingOptions": { # Information about parking options for the place. A parking lot could support more than one option at the same time. # Options of parking provided by the place.
"freeGarageParking": True or False, # Place offers free garage parking.
"freeParkingLot": True or False, # Place offers free parking lots.
"freeStreetParking": True or False, # Place offers free street parking.
"paidGarageParking": True or False, # Place offers paid garage parking.
"paidParkingLot": True or False, # Place offers paid parking lots.
"paidStreetParking": True or False, # Place offers paid street parking.
"valetParking": True or False, # Place offers valet parking.
},
"paymentOptions": { # Payment options the place accepts. # Payment options the place accepts. If a payment option data is not available, the payment option field will be unset.
"acceptsCashOnly": True or False, # Place accepts cash only as payment. Places with this attribute may still accept other payment methods.
"acceptsCreditCards": True or False, # Place accepts credit cards as payment.
"acceptsDebitCards": True or False, # Place accepts debit cards as payment.
"acceptsNfc": True or False, # Place accepts NFC payments.
},
"photos": [ # Information (including references) about photos of this place. A maximum of 10 photos can be returned.
{ # Information about a photo of a place.
"authorAttributions": [ # This photo's authors.
{ # Information about the author of the UGC data. Used in Photo, and Review.
"displayName": "A String", # Name of the author of the Photo or Review.
"photoUri": "A String", # Profile photo URI of the author of the Photo or Review.
"uri": "A String", # URI of the author of the Photo or Review.
},
],
"flagContentUri": "A String", # A link where users can flag a problem with the photo.
"googleMapsUri": "A String", # A link to show the photo on Google Maps.
"heightPx": 42, # The maximum available height, in pixels.
"name": "A String", # Identifier. A reference representing this place photo which may be used to look up this place photo again (also called the API "resource" name: `places/{place_id}/photos/{photo}`).
"widthPx": 42, # The maximum available width, in pixels.
},
],
"plusCode": { # Plus code (http://plus.codes) is a location reference with two formats: global code defining a 14mx14m (1/8000th of a degree) or smaller rectangle, and compound code, replacing the prefix with a reference location. # Plus code of the place location lat/long.
"compoundCode": "A String", # Place's compound code, such as "33GV+HQ, Ramberg, Norway", containing the suffix of the global code and replacing the prefix with a formatted name of a reference entity.
"globalCode": "A String", # Place's global (full) code, such as "9FWM33GV+HQ", representing an 1/8000 by 1/8000 degree area (~14 by 14 meters).
},
"postalAddress": { # Represents a postal address, such as for postal delivery or payments addresses. With a postal address, a postal service can deliver items to a premise, P.O. box, or similar. A postal address is not intended to model geographical locations like roads, towns, or mountains. In typical usage, an address would be created by user input or from importing existing data, depending on the type of process. Advice on address input or editing: - Use an internationalization-ready address widget such as https://github.com/google/libaddressinput. - Users should not be presented with UI elements for input or editing of fields outside countries where that field is used. For more guidance on how to use this schema, see: https://support.google.com/business/answer/6397478. # The address in postal address format.
"addressLines": [ # Unstructured address lines describing the lower levels of an address. Because values in `address_lines` do not have type information and may sometimes contain multiple values in a single field (for example, "Austin, TX"), it is important that the line order is clear. The order of address lines should be "envelope order" for the country or region of the address. In places where this can vary (for example, Japan), `address_language` is used to make it explicit (for example, "ja" for large-to-small ordering and "ja-Latn" or "en" for small-to-large). In this way, the most specific line of an address can be selected based on the language. The minimum permitted structural representation of an address consists of a `region_code` with all remaining information placed in the `address_lines`. It would be possible to format such an address very approximately without geocoding, but no semantic reasoning could be made about any of the address components until it was at least partially resolved. Creating an address only containing a `region_code` and `address_lines` and then geocoding is the recommended way to handle completely unstructured addresses (as opposed to guessing which parts of the address should be localities or administrative areas).
"A String",
],
"administrativeArea": "A String", # Optional. Highest administrative subdivision which is used for postal addresses of a country or region. For example, this can be a state, a province, an oblast, or a prefecture. For Spain, this is the province and not the autonomous community (for example, "Barcelona" and not "Catalonia"). Many countries don't use an administrative area in postal addresses. For example, in Switzerland, this should be left unpopulated.
"languageCode": "A String", # Optional. BCP-47 language code of the contents of this address (if known). This is often the UI language of the input form or is expected to match one of the languages used in the address' country/region, or their transliterated equivalents. This can affect formatting in certain countries, but is not critical to the correctness of the data and will never affect any validation or other non-formatting related operations. If this value is not known, it should be omitted (rather than specifying a possibly incorrect default). Examples: "zh-Hant", "ja", "ja-Latn", "en".
"locality": "A String", # Optional. Generally refers to the city or town portion of the address. Examples: US city, IT comune, UK post town. In regions of the world where localities are not well defined or do not fit into this structure well, leave `locality` empty and use `address_lines`.
"organization": "A String", # Optional. The name of the organization at the address.
"postalCode": "A String", # Optional. Postal code of the address. Not all countries use or require postal codes to be present, but where they are used, they may trigger additional validation with other parts of the address (for example, state or zip code validation in the United States).
"recipients": [ # Optional. The recipient at the address. This field may, under certain circumstances, contain multiline information. For example, it might contain "care of" information.
"A String",
],
"regionCode": "A String", # Required. CLDR region code of the country/region of the address. This is never inferred and it is up to the user to ensure the value is correct. See https://cldr.unicode.org/ and https://www.unicode.org/cldr/charts/30/supplemental/territory_information.html for details. Example: "CH" for Switzerland.
"revision": 42, # The schema revision of the `PostalAddress`. This must be set to 0, which is the latest revision. All new revisions **must** be backward compatible with old revisions.
"sortingCode": "A String", # Optional. Additional, country-specific, sorting code. This is not used in most regions. Where it is used, the value is either a string like "CEDEX", optionally followed by a number (for example, "CEDEX 7"), or just a number alone, representing the "sector code" (Jamaica), "delivery area indicator" (Malawi) or "post office indicator" (Côte d'Ivoire).
"sublocality": "A String", # Optional. Sublocality of the address. For example, this can be a neighborhood, borough, or district.
},
"priceLevel": "A String", # Price level of the place.
"priceRange": { # The price range associated with a Place. `end_price` could be unset, which indicates a range without upper bound (e.g. "More than $100"). # The price range associated with a Place.
"endPrice": { # Represents an amount of money with its currency type. # The high end of the price range (exclusive). Price should be lower than this amount.
"currencyCode": "A String", # The three-letter currency code defined in ISO 4217.
"nanos": 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
"units": "A String", # The whole units of the amount. For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar.
},
"startPrice": { # Represents an amount of money with its currency type. # The low end of the price range (inclusive). Price should be at or above this amount.
"currencyCode": "A String", # The three-letter currency code defined in ISO 4217.
"nanos": 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
"units": "A String", # The whole units of the amount. For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar.
},
},
"primaryType": "A String", # The primary type of the given result. This type must be one of the Places API supported types. For example, "restaurant", "cafe", "airport", etc. A place can only have a single primary type. For the complete list of possible values, see Table A and Table B at https://developers.google.com/maps/documentation/places/web-service/place-types. The primary type may be missing if the place's primary type is not a supported type. When a primary type is present, it is always one of the types in the `types` field.
"primaryTypeDisplayName": { # Localized variant of a text in a particular language. # The display name of the primary type, localized to the request language if applicable. For the complete list of possible values, see Table A and Table B at https://developers.google.com/maps/documentation/places/web-service/place-types. The primary type may be missing if the place's primary type is not a supported type.
"languageCode": "A String", # The text's BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
"text": "A String", # Localized string in the language corresponding to language_code below.
},
"pureServiceAreaBusiness": True or False, # Indicates whether the place is a pure service area business. Pure service area business is a business that visits or delivers to customers directly but does not serve customers at their business address. For example, businesses like cleaning services or plumbers. Those businesses may not have a physical address or location on Google Maps.
"rating": 3.14, # A rating between 1.0 and 5.0, based on user reviews of this place.
"regularOpeningHours": { # Information about business hour of the place. # The regular hours of operation. Note that if a place is always open (24 hours), the `close` field will not be set. Clients can rely on always open (24 hours) being represented as an [`open`](https://developers.google.com/maps/documentation/places/web-service/reference/rest/v1/places#Period) period containing [`day`](https://developers.google.com/maps/documentation/places/web-service/reference/rest/v1/places#Point) with value `0`, [`hour`](https://developers.google.com/maps/documentation/places/web-service/reference/rest/v1/places#Point) with value `0`, and [`minute`](https://developers.google.com/maps/documentation/places/web-service/reference/rest/v1/places#Point) with value `0`.
"nextCloseTime": "A String", # The next time the current opening hours period ends up to 7 days in the future. This field is only populated if the opening hours period is active at the time of serving the request.
"nextOpenTime": "A String", # The next time the current opening hours period starts up to 7 days in the future. This field is only populated if the opening hours period is not active at the time of serving the request.
"openNow": True or False, # Whether the opening hours period is currently active. For regular opening hours and current opening hours, this field means whether the place is open. For secondary opening hours and current secondary opening hours, this field means whether the secondary hours of this place is active.
"periods": [ # The periods that this place is open during the week. The periods are in chronological order, in the place-local timezone. An empty (but not absent) value indicates a place that is never open, e.g. because it is closed temporarily for renovations. The starting day of `periods` is NOT fixed and should not be assumed to be Sunday. The API determines the start day based on a variety of factors. For example, for a 24/7 business, the first period may begin on the day of the request. For other businesses, it might be the first day of the week that they are open. NOTE: The ordering of the `periods` array is independent of the ordering of the `weekday_descriptions` array. Do not assume they will begin on the same day.
{ # A period the place remains in open_now status.
"close": { # Status changing points. # The time that the place starts to be closed.
"date": { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # Date in the local timezone for the place.
"day": 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
"month": 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
"year": 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
},
"day": 42, # A day of the week, as an integer in the range 0-6. 0 is Sunday, 1 is Monday, etc.
"hour": 42, # The hour in 24 hour format. Ranges from 0 to 23.
"minute": 42, # The minute. Ranges from 0 to 59.
"truncated": True or False, # Whether or not this endpoint was truncated. Truncation occurs when the real hours are outside the times we are willing to return hours between, so we truncate the hours back to these boundaries. This ensures that at most 24 * 7 hours from midnight of the day of the request are returned.
},
"open": { # Status changing points. # The time that the place starts to be open.
"date": { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # Date in the local timezone for the place.
"day": 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
"month": 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
"year": 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
},
"day": 42, # A day of the week, as an integer in the range 0-6. 0 is Sunday, 1 is Monday, etc.
"hour": 42, # The hour in 24 hour format. Ranges from 0 to 23.
"minute": 42, # The minute. Ranges from 0 to 59.
"truncated": True or False, # Whether or not this endpoint was truncated. Truncation occurs when the real hours are outside the times we are willing to return hours between, so we truncate the hours back to these boundaries. This ensures that at most 24 * 7 hours from midnight of the day of the request are returned.
},
},
],
"secondaryHoursType": "A String", # A type string used to identify the type of secondary hours.
"specialDays": [ # Structured information for special days that fall within the period that the returned opening hours cover. Special days are days that could impact the business hours of a place, e.g. Christmas day. Set for current_opening_hours and current_secondary_opening_hours if there are exceptional hours.
{ # Structured information for special days that fall within the period that the returned opening hours cover. Special days are days that could impact the business hours of a place, e.g. Christmas day.
"date": { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # The date of this special day.
"day": 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
"month": 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
"year": 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
},
},
],
"weekdayDescriptions": [ # Localized strings describing the opening hours of this place, one string for each day of the week. NOTE: The order of the days and the start of the week is determined by the locale (language and region). The ordering of the `periods` array is independent of the ordering of the `weekday_descriptions` array. Do not assume they will begin on the same day. Will be empty if the hours are unknown or could not be converted to localized text. Example: "Sun: 18:00–06:00"
"A String",
],
},
"regularSecondaryOpeningHours": [ # Contains an array of entries for information about regular secondary hours of a business. Secondary hours are different from a business's main hours. For example, a restaurant can specify drive through hours or delivery hours as its secondary hours. This field populates the type subfield, which draws from a predefined list of opening hours types (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on the types of the place.
{ # Information about business hour of the place.
"nextCloseTime": "A String", # The next time the current opening hours period ends up to 7 days in the future. This field is only populated if the opening hours period is active at the time of serving the request.
"nextOpenTime": "A String", # The next time the current opening hours period starts up to 7 days in the future. This field is only populated if the opening hours period is not active at the time of serving the request.
"openNow": True or False, # Whether the opening hours period is currently active. For regular opening hours and current opening hours, this field means whether the place is open. For secondary opening hours and current secondary opening hours, this field means whether the secondary hours of this place is active.
"periods": [ # The periods that this place is open during the week. The periods are in chronological order, in the place-local timezone. An empty (but not absent) value indicates a place that is never open, e.g. because it is closed temporarily for renovations. The starting day of `periods` is NOT fixed and should not be assumed to be Sunday. The API determines the start day based on a variety of factors. For example, for a 24/7 business, the first period may begin on the day of the request. For other businesses, it might be the first day of the week that they are open. NOTE: The ordering of the `periods` array is independent of the ordering of the `weekday_descriptions` array. Do not assume they will begin on the same day.
{ # A period the place remains in open_now status.
"close": { # Status changing points. # The time that the place starts to be closed.
"date": { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # Date in the local timezone for the place.
"day": 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
"month": 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
"year": 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
},
"day": 42, # A day of the week, as an integer in the range 0-6. 0 is Sunday, 1 is Monday, etc.
"hour": 42, # The hour in 24 hour format. Ranges from 0 to 23.
"minute": 42, # The minute. Ranges from 0 to 59.
"truncated": True or False, # Whether or not this endpoint was truncated. Truncation occurs when the real hours are outside the times we are willing to return hours between, so we truncate the hours back to these boundaries. This ensures that at most 24 * 7 hours from midnight of the day of the request are returned.
},
"open": { # Status changing points. # The time that the place starts to be open.
"date": { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # Date in the local timezone for the place.
"day": 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
"month": 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
"year": 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
},
"day": 42, # A day of the week, as an integer in the range 0-6. 0 is Sunday, 1 is Monday, etc.
"hour": 42, # The hour in 24 hour format. Ranges from 0 to 23.
"minute": 42, # The minute. Ranges from 0 to 59.
"truncated": True or False, # Whether or not this endpoint was truncated. Truncation occurs when the real hours are outside the times we are willing to return hours between, so we truncate the hours back to these boundaries. This ensures that at most 24 * 7 hours from midnight of the day of the request are returned.
},
},
],
"secondaryHoursType": "A String", # A type string used to identify the type of secondary hours.
"specialDays": [ # Structured information for special days that fall within the period that the returned opening hours cover. Special days are days that could impact the business hours of a place, e.g. Christmas day. Set for current_opening_hours and current_secondary_opening_hours if there are exceptional hours.
{ # Structured information for special days that fall within the period that the returned opening hours cover. Special days are days that could impact the business hours of a place, e.g. Christmas day.
"date": { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # The date of this special day.
"day": 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
"month": 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
"year": 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
},
},
],
"weekdayDescriptions": [ # Localized strings describing the opening hours of this place, one string for each day of the week. NOTE: The order of the days and the start of the week is determined by the locale (language and region). The ordering of the `periods` array is independent of the ordering of the `weekday_descriptions` array. Do not assume they will begin on the same day. Will be empty if the hours are unknown or could not be converted to localized text. Example: "Sun: 18:00–06:00"
"A String",
],
},
],
"reservable": True or False, # Specifies if the place supports reservations.
"restroom": True or False, # Place has restroom.
"reviewSummary": { # AI-generated summary of the place using user reviews. # AI-generated summary of the place using user reviews.
"disclosureText": { # Localized variant of a text in a particular language. # The AI disclosure message "Summarized with Gemini" (and its localized variants). This will be in the language specified in the request if available.
"languageCode": "A String", # The text's BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
"text": "A String", # Localized string in the language corresponding to language_code below.
},
"flagContentUri": "A String", # A link where users can flag a problem with the summary.
"reviewsUri": "A String", # A link to show reviews of this place on Google Maps.
"text": { # Localized variant of a text in a particular language. # The summary of user reviews.
"languageCode": "A String", # The text's BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
"text": "A String", # Localized string in the language corresponding to language_code below.
},
},
"reviews": [ # List of reviews about this place, sorted by relevance. A maximum of 5 reviews can be returned.
{ # Information about a review of a place.
"authorAttribution": { # Information about the author of the UGC data. Used in Photo, and Review. # This review's author.
"displayName": "A String", # Name of the author of the Photo or Review.
"photoUri": "A String", # Profile photo URI of the author of the Photo or Review.
"uri": "A String", # URI of the author of the Photo or Review.
},
"flagContentUri": "A String", # A link where users can flag a problem with the review.
"googleMapsUri": "A String", # A link to show the review on Google Maps.
"name": "A String", # A reference representing this place review which may be used to look up this place review again (also called the API "resource" name: `places/{place_id}/reviews/{review}`).
"originalText": { # Localized variant of a text in a particular language. # The review text in its original language.
"languageCode": "A String", # The text's BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
"text": "A String", # Localized string in the language corresponding to language_code below.
},
"publishTime": "A String", # Timestamp for the review.
"rating": 3.14, # A number between 1.0 and 5.0, also called the number of stars.
"relativePublishTimeDescription": "A String", # A string of formatted recent time, expressing the review time relative to the current time in a form appropriate for the language and country.
"text": { # Localized variant of a text in a particular language. # The localized text of the review.
"languageCode": "A String", # The text's BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
"text": "A String", # Localized string in the language corresponding to language_code below.
},
"visitDate": { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # The date when the author visited the place. This is trucated to the year and month of the visit.
"day": 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
"month": 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
"year": 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
},
},
],
"servesBeer": True or False, # Specifies if the place serves beer.
"servesBreakfast": True or False, # Specifies if the place serves breakfast.
"servesBrunch": True or False, # Specifies if the place serves brunch.
"servesCocktails": True or False, # Place serves cocktails.
"servesCoffee": True or False, # Place serves coffee.
"servesDessert": True or False, # Place serves dessert.
"servesDinner": True or False, # Specifies if the place serves dinner.
"servesLunch": True or False, # Specifies if the place serves lunch.
"servesVegetarianFood": True or False, # Specifies if the place serves vegetarian food.
"servesWine": True or False, # Specifies if the place serves wine.
"shortFormattedAddress": "A String", # A short, human-readable address for this place.
"subDestinations": [ # A list of sub-destinations related to the place.
{ # Sub-destinations are specific places associated with a main place. These provide more specific destinations for users who are searching within a large or complex place, like an airport, national park, university, or stadium. For example, sub-destinations at an airport might include associated terminals and parking lots. Sub-destinations return the place ID and place resource name, which can be used in subsequent Place Details (New) requests to fetch richer details, including the sub-destination's display name and location.
"id": "A String", # The place id of the sub-destination.
"name": "A String", # The resource name of the sub-destination.
},
],
"takeout": True or False, # Specifies if the business supports takeout.
"timeZone": { # Represents a time zone from the [IANA Time Zone Database](https://www.iana.org/time-zones). # IANA Time Zone Database time zone. For example "America/New_York".
"id": "A String", # IANA Time Zone Database time zone. For example "America/New_York".
"version": "A String", # Optional. IANA Time Zone Database version number. For example "2019a".
},
"types": [ # A set of type tags for this result. For example, "political" and "locality". For the complete list of possible values, see Table A and Table B at https://developers.google.com/maps/documentation/places/web-service/place-types
"A String",
],
"userRatingCount": 42, # The total number of reviews (with or without text) for this place.
"utcOffsetMinutes": 42, # Number of minutes this place's timezone is currently offset from UTC. This is expressed in minutes to support timezones that are offset by fractions of an hour, e.g. X hours and 15 minutes.
"viewport": { # A latitude-longitude viewport, represented as two diagonally opposite `low` and `high` points. A viewport is considered a closed region, i.e. it includes its boundary. The latitude bounds must range between -90 to 90 degrees inclusive, and the longitude bounds must range between -180 to 180 degrees inclusive. Various cases include: - If `low` = `high`, the viewport consists of that single point. - If `low.longitude` > `high.longitude`, the longitude range is inverted (the viewport crosses the 180 degree longitude line). - If `low.longitude` = -180 degrees and `high.longitude` = 180 degrees, the viewport includes all longitudes. - If `low.longitude` = 180 degrees and `high.longitude` = -180 degrees, the longitude range is empty. - If `low.latitude` > `high.latitude`, the latitude range is empty. Both `low` and `high` must be populated, and the represented box cannot be empty (as specified by the definitions above). An empty viewport will result in an error. For example, this viewport fully encloses New York City: { "low": { "latitude": 40.477398, "longitude": -74.259087 }, "high": { "latitude": 40.91618, "longitude": -73.70018 } } # A viewport suitable for displaying the place on an average-sized map. This viewport should not be used as the physical boundary or the service area of the business.
"high": { # An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges. # Required. The high point of the viewport.
"latitude": 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
"longitude": 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
},
"low": { # An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges. # Required. The low point of the viewport.
"latitude": 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
"longitude": 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
},
},
"websiteUri": "A String", # The authoritative website for this place, e.g. a business' homepage. Note that for places that are part of a chain (e.g. an IKEA store), this will usually be the website for the individual store, not the overall chain.
}</pre>
</div>
<div class="method">
<code class="details" id="searchNearby">searchNearby(body=None, x__xgafv=None)</code>
<pre>Search for places near locations.
Args:
body: object, The request body.
The object takes the form of:
{ # Request proto for Search Nearby.
"excludedPrimaryTypes": [ # Excluded primary Place type (e.g. "restaurant" or "gas_station") from https://developers.google.com/maps/documentation/places/web-service/place-types. Up to 50 types from [Table A](https://developers.google.com/maps/documentation/places/web-service/place-types#table-a) may be specified. If there are any conflicting primary types, i.e. a type appears in both included_primary_types and excluded_primary_types, an INVALID_ARGUMENT error is returned. If a Place type is specified with multiple type restrictions, only places that satisfy all of the restrictions are returned. For example, if we have {included_types = ["restaurant"], excluded_primary_types = ["restaurant"]}, the returned places provide "restaurant" related services but do not operate primarily as "restaurants".
"A String",
],
"excludedTypes": [ # Excluded Place type (eg, "restaurant" or "gas_station") from https://developers.google.com/maps/documentation/places/web-service/place-types. Up to 50 types from [Table A](https://developers.google.com/maps/documentation/places/web-service/place-types#table-a) may be specified. If the client provides both included_types (e.g. restaurant) and excluded_types (e.g. cafe), then the response should include places that are restaurant but not cafe. The response includes places that match at least one of the included_types and none of the excluded_types. If there are any conflicting types, i.e. a type appears in both included_types and excluded_types, an INVALID_ARGUMENT error is returned. If a Place type is specified with multiple type restrictions, only places that satisfy all of the restrictions are returned. For example, if we have {included_types = ["restaurant"], excluded_primary_types = ["restaurant"]}, the returned places provide "restaurant" related services but do not operate primarily as "restaurants".
"A String",
],
"includedPrimaryTypes": [ # Included primary Place type (e.g. "restaurant" or "gas_station") from https://developers.google.com/maps/documentation/places/web-service/place-types. A place can only have a single primary type from the supported types table associated with it. Up to 50 types from [Table A](https://developers.google.com/maps/documentation/places/web-service/place-types#table-a) may be specified. If there are any conflicting primary types, i.e. a type appears in both included_primary_types and excluded_primary_types, an INVALID_ARGUMENT error is returned. If a Place type is specified with multiple type restrictions, only places that satisfy all of the restrictions are returned. For example, if we have {included_types = ["restaurant"], excluded_primary_types = ["restaurant"]}, the returned places provide "restaurant" related services but do not operate primarily as "restaurants".
"A String",
],
"includedTypes": [ # Included Place type (eg, "restaurant" or "gas_station") from https://developers.google.com/maps/documentation/places/web-service/place-types. Up to 50 types from [Table A](https://developers.google.com/maps/documentation/places/web-service/place-types#table-a) may be specified. If there are any conflicting types, i.e. a type appears in both included_types and excluded_types, an INVALID_ARGUMENT error is returned. If a Place type is specified with multiple type restrictions, only places that satisfy all of the restrictions are returned. For example, if we have {included_types = ["restaurant"], excluded_primary_types = ["restaurant"]}, the returned places provide "restaurant" related services but do not operate primarily as "restaurants".
"A String",
],
"languageCode": "A String", # Place details will be displayed with the preferred language if available. If the language code is unspecified or unrecognized, place details of any language may be returned, with a preference for English if such details exist. Current list of supported languages: https://developers.google.com/maps/faq#languagesupport.
"locationRestriction": { # The region to search. # Required. The region to search.
"circle": { # Circle with a LatLng as center and radius. # A circle defined by center point and radius.
"center": { # An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges. # Required. Center latitude and longitude. The range of latitude must be within [-90.0, 90.0]. The range of the longitude must be within [-180.0, 180.0].
"latitude": 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
"longitude": 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
},
"radius": 3.14, # Required. Radius measured in meters. The radius must be within [0.0, 50000.0].
},
},
"maxResultCount": 42, # Maximum number of results to return. It must be between 1 and 20 (default), inclusively. If the number is unset, it falls back to the upper limit. If the number is set to negative or exceeds the upper limit, an INVALID_ARGUMENT error is returned.
"rankPreference": "A String", # How results will be ranked in the response.
"regionCode": "A String", # The Unicode country/region code (CLDR) of the location where the request is coming from. This parameter is used to display the place details, like region-specific place name, if available. The parameter can affect results based on applicable law. For more information, see https://www.unicode.org/cldr/charts/latest/supplemental/territory_language_information.html. Note that 3-digit region codes are not currently supported.
"routingParameters": { # Parameters to configure the routing calculations to the places in the response, both along a route (where result ranking will be influenced) and for calculating travel times on results. # Optional. Parameters that affect the routing to the search results.
"origin": { # An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges. # Optional. An explicit routing origin that overrides the origin defined in the polyline. By default, the polyline origin is used.
"latitude": 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
"longitude": 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
},
"routeModifiers": { # Encapsulates a set of optional conditions to satisfy when calculating the routes. # Optional. The route modifiers.
"avoidFerries": True or False, # Optional. When set to true, avoids ferries where reasonable, giving preference to routes not containing ferries. Applies only to the `DRIVE` and `TWO_WHEELER` `TravelMode`.
"avoidHighways": True or False, # Optional. When set to true, avoids highways where reasonable, giving preference to routes not containing highways. Applies only to the `DRIVE` and `TWO_WHEELER` `TravelMode`.
"avoidIndoor": True or False, # Optional. When set to true, avoids navigating indoors where reasonable, giving preference to routes not containing indoor navigation. Applies only to the `WALK` `TravelMode`.
"avoidTolls": True or False, # Optional. When set to true, avoids toll roads where reasonable, giving preference to routes not containing toll roads. Applies only to the `DRIVE` and `TWO_WHEELER` `TravelMode`.
},
"routingPreference": "A String", # Optional. Specifies how to compute the routing summaries. The server attempts to use the selected routing preference to compute the route. The traffic aware routing preference is only available for the `DRIVE` or `TWO_WHEELER` `travelMode`.
"travelMode": "A String", # Optional. The travel mode.
},
}
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{ # Response proto for Search Nearby.
"places": [ # A list of places that meets user's requirements like places types, number of places and specific location restriction.
{ # All the information representing a Place.
"accessibilityOptions": { # Information about the accessibility options a place offers. # Information about the accessibility options a place offers.
"wheelchairAccessibleEntrance": True or False, # Places has wheelchair accessible entrance.
"wheelchairAccessibleParking": True or False, # Place offers wheelchair accessible parking.
"wheelchairAccessibleRestroom": True or False, # Place has wheelchair accessible restroom.
"wheelchairAccessibleSeating": True or False, # Place has wheelchair accessible seating.
},
"addressComponents": [ # Repeated components for each locality level. Note the following facts about the address_components[] array: - The array of address components may contain more components than the formatted_address. - The array does not necessarily include all the political entities that contain an address, apart from those included in the formatted_address. To retrieve all the political entities that contain a specific address, you should use reverse geocoding, passing the latitude/longitude of the address as a parameter to the request. - The format of the response is not guaranteed to remain the same between requests. In particular, the number of address_components varies based on the address requested and can change over time for the same address. A component can change position in the array. The type of the component can change. A particular component may be missing in a later response.
{ # The structured components that form the formatted address, if this information is available.
"languageCode": "A String", # The language used to format this components, in CLDR notation.
"longText": "A String", # The full text description or name of the address component. For example, an address component for the country Australia may have a long_name of "Australia".
"shortText": "A String", # An abbreviated textual name for the address component, if available. For example, an address component for the country of Australia may have a short_name of "AU".
"types": [ # An array indicating the type(s) of the address component.
"A String",
],
},
],
"addressDescriptor": { # A relational description of a location. Includes a ranked set of nearby landmarks and precise containing areas and their relationship to the target location. # The address descriptor of the place. Address descriptors include additional information that help describe a location using landmarks and areas. See address descriptor regional coverage in https://developers.google.com/maps/documentation/geocoding/address-descriptors/coverage.
"areas": [ # A ranked list of containing or adjacent areas. The most recognizable and precise areas are ranked first.
{ # Area information and the area's relationship with the target location. Areas includes precise sublocality, neighborhoods, and large compounds that are useful for describing a location.
"containment": "A String", # Defines the spatial relationship between the target location and the area.
"displayName": { # Localized variant of a text in a particular language. # The area's display name.
"languageCode": "A String", # The text's BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
"text": "A String", # Localized string in the language corresponding to language_code below.
},
"name": "A String", # The area's resource name.
"placeId": "A String", # The area's place id.
},
],
"landmarks": [ # A ranked list of nearby landmarks. The most recognizable and nearby landmarks are ranked first.
{ # Basic landmark information and the landmark's relationship with the target location. Landmarks are prominent places that can be used to describe a location.
"displayName": { # Localized variant of a text in a particular language. # The landmark's display name.
"languageCode": "A String", # The text's BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
"text": "A String", # Localized string in the language corresponding to language_code below.
},
"name": "A String", # The landmark's resource name.
"placeId": "A String", # The landmark's place id.
"spatialRelationship": "A String", # Defines the spatial relationship between the target location and the landmark.
"straightLineDistanceMeters": 3.14, # The straight line distance, in meters, between the center point of the target and the center point of the landmark. In some situations, this value can be longer than `travel_distance_meters`.
"travelDistanceMeters": 3.14, # The travel distance, in meters, along the road network from the target to the landmark, if known. This value does not take into account the mode of transportation, such as walking, driving, or biking.
"types": [ # A set of type tags for this landmark. For a complete list of possible values, see https://developers.google.com/maps/documentation/places/web-service/place-types.
"A String",
],
},
],
},
"adrFormatAddress": "A String", # The place's address in adr microformat: http://microformats.org/wiki/adr.
"allowsDogs": True or False, # Place allows dogs.
"attributions": [ # A set of data provider that must be shown with this result.
{ # Information about data providers of this place.
"provider": "A String", # Name of the Place's data provider.
"providerUri": "A String", # URI to the Place's data provider.
},
],
"businessStatus": "A String", # The business status for the place.
"consumerAlert": { # The consumer alert message for the place when we detect suspicious review activity on a business or a business violates our policies. # The consumer alert message for the place when we detect suspicious review activity on a business or a business violates our policies.
"details": { # The details of the consumer alert message. # The details of the consumer alert message.ƒ
"aboutLink": { # The link to show together with the description to provide more information. # The link to show together with the description to provide more information.
"title": "A String", # The title to show for the link.
"uri": "A String", # The uri of the link.
},
"description": "A String", # The description of the consumer alert message.
"title": "A String", # The title to show together with the description.
},
"languageCode": "A String", # The language code of the consumer alert message. This is a BCP 47 language code.
"overview": "A String", # The overview of the consumer alert message.
},
"containingPlaces": [ # List of places in which the current place is located.
{ # Info about the place in which this place is located.
"id": "A String", # The place id of the place in which this place is located.
"name": "A String", # The resource name of the place in which this place is located.
},
],
"curbsidePickup": True or False, # Specifies if the business supports curbside pickup.
"currentOpeningHours": { # Information about business hour of the place. # The hours of operation for the next seven days (including today). The time period starts at midnight on the date of the request and ends at 11:59 pm six days later. This field includes the special_days subfield of all hours, set for dates that have exceptional hours.
"nextCloseTime": "A String", # The next time the current opening hours period ends up to 7 days in the future. This field is only populated if the opening hours period is active at the time of serving the request.
"nextOpenTime": "A String", # The next time the current opening hours period starts up to 7 days in the future. This field is only populated if the opening hours period is not active at the time of serving the request.
"openNow": True or False, # Whether the opening hours period is currently active. For regular opening hours and current opening hours, this field means whether the place is open. For secondary opening hours and current secondary opening hours, this field means whether the secondary hours of this place is active.
"periods": [ # The periods that this place is open during the week. The periods are in chronological order, in the place-local timezone. An empty (but not absent) value indicates a place that is never open, e.g. because it is closed temporarily for renovations. The starting day of `periods` is NOT fixed and should not be assumed to be Sunday. The API determines the start day based on a variety of factors. For example, for a 24/7 business, the first period may begin on the day of the request. For other businesses, it might be the first day of the week that they are open. NOTE: The ordering of the `periods` array is independent of the ordering of the `weekday_descriptions` array. Do not assume they will begin on the same day.
{ # A period the place remains in open_now status.
"close": { # Status changing points. # The time that the place starts to be closed.
"date": { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # Date in the local timezone for the place.
"day": 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
"month": 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
"year": 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
},
"day": 42, # A day of the week, as an integer in the range 0-6. 0 is Sunday, 1 is Monday, etc.
"hour": 42, # The hour in 24 hour format. Ranges from 0 to 23.
"minute": 42, # The minute. Ranges from 0 to 59.
"truncated": True or False, # Whether or not this endpoint was truncated. Truncation occurs when the real hours are outside the times we are willing to return hours between, so we truncate the hours back to these boundaries. This ensures that at most 24 * 7 hours from midnight of the day of the request are returned.
},
"open": { # Status changing points. # The time that the place starts to be open.
"date": { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # Date in the local timezone for the place.
"day": 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
"month": 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
"year": 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
},
"day": 42, # A day of the week, as an integer in the range 0-6. 0 is Sunday, 1 is Monday, etc.
"hour": 42, # The hour in 24 hour format. Ranges from 0 to 23.
"minute": 42, # The minute. Ranges from 0 to 59.
"truncated": True or False, # Whether or not this endpoint was truncated. Truncation occurs when the real hours are outside the times we are willing to return hours between, so we truncate the hours back to these boundaries. This ensures that at most 24 * 7 hours from midnight of the day of the request are returned.
},
},
],
"secondaryHoursType": "A String", # A type string used to identify the type of secondary hours.
"specialDays": [ # Structured information for special days that fall within the period that the returned opening hours cover. Special days are days that could impact the business hours of a place, e.g. Christmas day. Set for current_opening_hours and current_secondary_opening_hours if there are exceptional hours.
{ # Structured information for special days that fall within the period that the returned opening hours cover. Special days are days that could impact the business hours of a place, e.g. Christmas day.
"date": { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # The date of this special day.
"day": 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
"month": 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
"year": 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
},
},
],
"weekdayDescriptions": [ # Localized strings describing the opening hours of this place, one string for each day of the week. NOTE: The order of the days and the start of the week is determined by the locale (language and region). The ordering of the `periods` array is independent of the ordering of the `weekday_descriptions` array. Do not assume they will begin on the same day. Will be empty if the hours are unknown or could not be converted to localized text. Example: "Sun: 18:00–06:00"
"A String",
],
},
"currentSecondaryOpeningHours": [ # Contains an array of entries for the next seven days including information about secondary hours of a business. Secondary hours are different from a business's main hours. For example, a restaurant can specify drive through hours or delivery hours as its secondary hours. This field populates the type subfield, which draws from a predefined list of opening hours types (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on the types of the place. This field includes the special_days subfield of all hours, set for dates that have exceptional hours.
{ # Information about business hour of the place.
"nextCloseTime": "A String", # The next time the current opening hours period ends up to 7 days in the future. This field is only populated if the opening hours period is active at the time of serving the request.
"nextOpenTime": "A String", # The next time the current opening hours period starts up to 7 days in the future. This field is only populated if the opening hours period is not active at the time of serving the request.
"openNow": True or False, # Whether the opening hours period is currently active. For regular opening hours and current opening hours, this field means whether the place is open. For secondary opening hours and current secondary opening hours, this field means whether the secondary hours of this place is active.
"periods": [ # The periods that this place is open during the week. The periods are in chronological order, in the place-local timezone. An empty (but not absent) value indicates a place that is never open, e.g. because it is closed temporarily for renovations. The starting day of `periods` is NOT fixed and should not be assumed to be Sunday. The API determines the start day based on a variety of factors. For example, for a 24/7 business, the first period may begin on the day of the request. For other businesses, it might be the first day of the week that they are open. NOTE: The ordering of the `periods` array is independent of the ordering of the `weekday_descriptions` array. Do not assume they will begin on the same day.
{ # A period the place remains in open_now status.
"close": { # Status changing points. # The time that the place starts to be closed.
"date": { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # Date in the local timezone for the place.
"day": 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
"month": 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
"year": 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
},
"day": 42, # A day of the week, as an integer in the range 0-6. 0 is Sunday, 1 is Monday, etc.
"hour": 42, # The hour in 24 hour format. Ranges from 0 to 23.
"minute": 42, # The minute. Ranges from 0 to 59.
"truncated": True or False, # Whether or not this endpoint was truncated. Truncation occurs when the real hours are outside the times we are willing to return hours between, so we truncate the hours back to these boundaries. This ensures that at most 24 * 7 hours from midnight of the day of the request are returned.
},
"open": { # Status changing points. # The time that the place starts to be open.
"date": { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # Date in the local timezone for the place.
"day": 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
"month": 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
"year": 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
},
"day": 42, # A day of the week, as an integer in the range 0-6. 0 is Sunday, 1 is Monday, etc.
"hour": 42, # The hour in 24 hour format. Ranges from 0 to 23.
"minute": 42, # The minute. Ranges from 0 to 59.
"truncated": True or False, # Whether or not this endpoint was truncated. Truncation occurs when the real hours are outside the times we are willing to return hours between, so we truncate the hours back to these boundaries. This ensures that at most 24 * 7 hours from midnight of the day of the request are returned.
},
},
],
"secondaryHoursType": "A String", # A type string used to identify the type of secondary hours.
"specialDays": [ # Structured information for special days that fall within the period that the returned opening hours cover. Special days are days that could impact the business hours of a place, e.g. Christmas day. Set for current_opening_hours and current_secondary_opening_hours if there are exceptional hours.
{ # Structured information for special days that fall within the period that the returned opening hours cover. Special days are days that could impact the business hours of a place, e.g. Christmas day.
"date": { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # The date of this special day.
"day": 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
"month": 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
"year": 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
},
},
],
"weekdayDescriptions": [ # Localized strings describing the opening hours of this place, one string for each day of the week. NOTE: The order of the days and the start of the week is determined by the locale (language and region). The ordering of the `periods` array is independent of the ordering of the `weekday_descriptions` array. Do not assume they will begin on the same day. Will be empty if the hours are unknown or could not be converted to localized text. Example: "Sun: 18:00–06:00"
"A String",
],
},
],
"delivery": True or False, # Specifies if the business supports delivery.
"dineIn": True or False, # Specifies if the business supports indoor or outdoor seating options.
"displayName": { # Localized variant of a text in a particular language. # The localized name of the place, suitable as a short human-readable description. For example, "Google Sydney", "Starbucks", "Pyrmont", etc.
"languageCode": "A String", # The text's BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
"text": "A String", # Localized string in the language corresponding to language_code below.
},
"editorialSummary": { # Localized variant of a text in a particular language. # Contains a summary of the place. A summary is comprised of a textual overview, and also includes the language code for these if applicable. Summary text must be presented as-is and can not be modified or altered.
"languageCode": "A String", # The text's BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
"text": "A String", # Localized string in the language corresponding to language_code below.
},
"evChargeAmenitySummary": { # The summary of amenities near the EV charging station. This only applies to places with type `electric_vehicle_charging_station`. The `overview` field is guaranteed to be provided while the other fields are optional. # The summary of amenities near the EV charging station.
"coffee": { # A block of content that can be served individually. # A summary of the nearby coffee options.
"content": { # Localized variant of a text in a particular language. # Content related to the topic.
"languageCode": "A String", # The text's BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
"text": "A String", # Localized string in the language corresponding to language_code below.
},
"referencedPlaces": [ # The list of resource names of the referenced places. This name can be used in other APIs that accept Place resource names.
"A String",
],
},
"disclosureText": { # Localized variant of a text in a particular language. # The AI disclosure message "Summarized with Gemini" (and its localized variants). This will be in the language specified in the request if available.
"languageCode": "A String", # The text's BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
"text": "A String", # Localized string in the language corresponding to language_code below.
},
"flagContentUri": "A String", # A link where users can flag a problem with the summary.
"overview": { # A block of content that can be served individually. # An overview of the available amenities. This is guaranteed to be provided.
"content": { # Localized variant of a text in a particular language. # Content related to the topic.
"languageCode": "A String", # The text's BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
"text": "A String", # Localized string in the language corresponding to language_code below.
},
"referencedPlaces": [ # The list of resource names of the referenced places. This name can be used in other APIs that accept Place resource names.
"A String",
],
},
"restaurant": { # A block of content that can be served individually. # A summary of the nearby restaurants.
"content": { # Localized variant of a text in a particular language. # Content related to the topic.
"languageCode": "A String", # The text's BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
"text": "A String", # Localized string in the language corresponding to language_code below.
},
"referencedPlaces": [ # The list of resource names of the referenced places. This name can be used in other APIs that accept Place resource names.
"A String",
],
},
"store": { # A block of content that can be served individually. # A summary of the nearby stores.
"content": { # Localized variant of a text in a particular language. # Content related to the topic.
"languageCode": "A String", # The text's BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
"text": "A String", # Localized string in the language corresponding to language_code below.
},
"referencedPlaces": [ # The list of resource names of the referenced places. This name can be used in other APIs that accept Place resource names.
"A String",
],
},
},
"evChargeOptions": { # Information about the EV Charge Station hosted in Place. Terminology follows https://afdc.energy.gov/fuels/electricity_infrastructure.html One port could charge one car at a time. One port has one or more connectors. One station has one or more ports. # Information of ev charging options.
"connectorAggregation": [ # A list of EV charging connector aggregations that contain connectors of the same type and same charge rate.
{ # EV charging information grouped by [type, max_charge_rate_kw]. Shows EV charge aggregation of connectors that have the same type and max charge rate in kw.
"availabilityLastUpdateTime": "A String", # The timestamp when the connector availability information in this aggregation was last updated.
"availableCount": 42, # Number of connectors in this aggregation that are currently available.
"count": 42, # Number of connectors in this aggregation.
"maxChargeRateKw": 3.14, # The static max charging rate in kw of each connector in the aggregation.
"outOfServiceCount": 42, # Number of connectors in this aggregation that are currently out of service.
"type": "A String", # The connector type of this aggregation.
},
],
"connectorCount": 42, # Number of connectors at this station. However, because some ports can have multiple connectors but only be able to charge one car at a time (e.g.) the number of connectors may be greater than the total number of cars which can charge simultaneously.
},
"formattedAddress": "A String", # A full, human-readable address for this place.
"fuelOptions": { # The most recent information about fuel options in a gas station. This information is updated regularly. # The most recent information about fuel options in a gas station. This information is updated regularly.
"fuelPrices": [ # The last known fuel price for each type of fuel this station has. There is one entry per fuel type this station has. Order is not important.
{ # Fuel price information for a given type.
"price": { # Represents an amount of money with its currency type. # The price of the fuel.
"currencyCode": "A String", # The three-letter currency code defined in ISO 4217.
"nanos": 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
"units": "A String", # The whole units of the amount. For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar.
},
"type": "A String", # The type of fuel.
"updateTime": "A String", # The time the fuel price was last updated.
},
],
},
"generativeSummary": { # AI-generated summary of the place. # AI-generated summary of the place.
"disclosureText": { # Localized variant of a text in a particular language. # The AI disclosure message "Summarized with Gemini" (and its localized variants). This will be in the language specified in the request if available.
"languageCode": "A String", # The text's BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
"text": "A String", # Localized string in the language corresponding to language_code below.
},
"overview": { # Localized variant of a text in a particular language. # The overview of the place.
"languageCode": "A String", # The text's BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
"text": "A String", # Localized string in the language corresponding to language_code below.
},
"overviewFlagContentUri": "A String", # A link where users can flag a problem with the overview summary.
},
"goodForChildren": True or False, # Place is good for children.
"goodForGroups": True or False, # Place accommodates groups.
"goodForWatchingSports": True or False, # Place is suitable for watching sports.
"googleMapsLinks": { # Links to trigger different Google Maps actions. # Links to trigger different Google Maps actions.
"directionsUri": "A String", # A link to show the directions to the place. The link only populates the destination location and uses the default travel mode `DRIVE`.
"photosUri": "A String", # A link to show photos of this place on Google Maps.
"placeUri": "A String", # A link to show this place.
"reviewsUri": "A String", # A link to show reviews of this place on Google Maps.
"writeAReviewUri": "A String", # A link to write a review for this place on Google Maps.
},
"googleMapsUri": "A String", # A URL providing more information about this place.
"iconBackgroundColor": "A String", # Background color for icon_mask in hex format, e.g. #909CE1.
"iconMaskBaseUri": "A String", # A truncated URL to an icon mask. User can access different icon type by appending type suffix to the end (eg, ".svg" or ".png").
"id": "A String", # The unique identifier of a place.
"internationalPhoneNumber": "A String", # A human-readable phone number for the place, in international format.
"liveMusic": True or False, # Place provides live music.
"location": { # An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges. # The position of this place.
"latitude": 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
"longitude": 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
},
"menuForChildren": True or False, # Place has a children's menu.
"name": "A String", # This Place's resource name, in `places/{place_id}` format. Can be used to look up the Place.
"nationalPhoneNumber": "A String", # A human-readable phone number for the place, in national format.
"neighborhoodSummary": { # A summary of points of interest near the place. # A summary of points of interest near the place.
"description": { # A block of content that can be served individually. # A detailed description of the neighborhood.
"content": { # Localized variant of a text in a particular language. # Content related to the topic.
"languageCode": "A String", # The text's BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
"text": "A String", # Localized string in the language corresponding to language_code below.
},
"referencedPlaces": [ # The list of resource names of the referenced places. This name can be used in other APIs that accept Place resource names.
"A String",
],
},
"disclosureText": { # Localized variant of a text in a particular language. # The AI disclosure message "Summarized with Gemini" (and its localized variants). This will be in the language specified in the request if available.
"languageCode": "A String", # The text's BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
"text": "A String", # Localized string in the language corresponding to language_code below.
},
"flagContentUri": "A String", # A link where users can flag a problem with the summary.
"overview": { # A block of content that can be served individually. # An overview summary of the neighborhood.
"content": { # Localized variant of a text in a particular language. # Content related to the topic.
"languageCode": "A String", # The text's BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
"text": "A String", # Localized string in the language corresponding to language_code below.
},
"referencedPlaces": [ # The list of resource names of the referenced places. This name can be used in other APIs that accept Place resource names.
"A String",
],
},
},
"outdoorSeating": True or False, # Place provides outdoor seating.
"parkingOptions": { # Information about parking options for the place. A parking lot could support more than one option at the same time. # Options of parking provided by the place.
"freeGarageParking": True or False, # Place offers free garage parking.
"freeParkingLot": True or False, # Place offers free parking lots.
"freeStreetParking": True or False, # Place offers free street parking.
"paidGarageParking": True or False, # Place offers paid garage parking.
"paidParkingLot": True or False, # Place offers paid parking lots.
"paidStreetParking": True or False, # Place offers paid street parking.
"valetParking": True or False, # Place offers valet parking.
},
"paymentOptions": { # Payment options the place accepts. # Payment options the place accepts. If a payment option data is not available, the payment option field will be unset.
"acceptsCashOnly": True or False, # Place accepts cash only as payment. Places with this attribute may still accept other payment methods.
"acceptsCreditCards": True or False, # Place accepts credit cards as payment.
"acceptsDebitCards": True or False, # Place accepts debit cards as payment.
"acceptsNfc": True or False, # Place accepts NFC payments.
},
"photos": [ # Information (including references) about photos of this place. A maximum of 10 photos can be returned.
{ # Information about a photo of a place.
"authorAttributions": [ # This photo's authors.
{ # Information about the author of the UGC data. Used in Photo, and Review.
"displayName": "A String", # Name of the author of the Photo or Review.
"photoUri": "A String", # Profile photo URI of the author of the Photo or Review.
"uri": "A String", # URI of the author of the Photo or Review.
},
],
"flagContentUri": "A String", # A link where users can flag a problem with the photo.
"googleMapsUri": "A String", # A link to show the photo on Google Maps.
"heightPx": 42, # The maximum available height, in pixels.
"name": "A String", # Identifier. A reference representing this place photo which may be used to look up this place photo again (also called the API "resource" name: `places/{place_id}/photos/{photo}`).
"widthPx": 42, # The maximum available width, in pixels.
},
],
"plusCode": { # Plus code (http://plus.codes) is a location reference with two formats: global code defining a 14mx14m (1/8000th of a degree) or smaller rectangle, and compound code, replacing the prefix with a reference location. # Plus code of the place location lat/long.
"compoundCode": "A String", # Place's compound code, such as "33GV+HQ, Ramberg, Norway", containing the suffix of the global code and replacing the prefix with a formatted name of a reference entity.
"globalCode": "A String", # Place's global (full) code, such as "9FWM33GV+HQ", representing an 1/8000 by 1/8000 degree area (~14 by 14 meters).
},
"postalAddress": { # Represents a postal address, such as for postal delivery or payments addresses. With a postal address, a postal service can deliver items to a premise, P.O. box, or similar. A postal address is not intended to model geographical locations like roads, towns, or mountains. In typical usage, an address would be created by user input or from importing existing data, depending on the type of process. Advice on address input or editing: - Use an internationalization-ready address widget such as https://github.com/google/libaddressinput. - Users should not be presented with UI elements for input or editing of fields outside countries where that field is used. For more guidance on how to use this schema, see: https://support.google.com/business/answer/6397478. # The address in postal address format.
"addressLines": [ # Unstructured address lines describing the lower levels of an address. Because values in `address_lines` do not have type information and may sometimes contain multiple values in a single field (for example, "Austin, TX"), it is important that the line order is clear. The order of address lines should be "envelope order" for the country or region of the address. In places where this can vary (for example, Japan), `address_language` is used to make it explicit (for example, "ja" for large-to-small ordering and "ja-Latn" or "en" for small-to-large). In this way, the most specific line of an address can be selected based on the language. The minimum permitted structural representation of an address consists of a `region_code` with all remaining information placed in the `address_lines`. It would be possible to format such an address very approximately without geocoding, but no semantic reasoning could be made about any of the address components until it was at least partially resolved. Creating an address only containing a `region_code` and `address_lines` and then geocoding is the recommended way to handle completely unstructured addresses (as opposed to guessing which parts of the address should be localities or administrative areas).
"A String",
],
"administrativeArea": "A String", # Optional. Highest administrative subdivision which is used for postal addresses of a country or region. For example, this can be a state, a province, an oblast, or a prefecture. For Spain, this is the province and not the autonomous community (for example, "Barcelona" and not "Catalonia"). Many countries don't use an administrative area in postal addresses. For example, in Switzerland, this should be left unpopulated.
"languageCode": "A String", # Optional. BCP-47 language code of the contents of this address (if known). This is often the UI language of the input form or is expected to match one of the languages used in the address' country/region, or their transliterated equivalents. This can affect formatting in certain countries, but is not critical to the correctness of the data and will never affect any validation or other non-formatting related operations. If this value is not known, it should be omitted (rather than specifying a possibly incorrect default). Examples: "zh-Hant", "ja", "ja-Latn", "en".
"locality": "A String", # Optional. Generally refers to the city or town portion of the address. Examples: US city, IT comune, UK post town. In regions of the world where localities are not well defined or do not fit into this structure well, leave `locality` empty and use `address_lines`.
"organization": "A String", # Optional. The name of the organization at the address.
"postalCode": "A String", # Optional. Postal code of the address. Not all countries use or require postal codes to be present, but where they are used, they may trigger additional validation with other parts of the address (for example, state or zip code validation in the United States).
"recipients": [ # Optional. The recipient at the address. This field may, under certain circumstances, contain multiline information. For example, it might contain "care of" information.
"A String",
],
"regionCode": "A String", # Required. CLDR region code of the country/region of the address. This is never inferred and it is up to the user to ensure the value is correct. See https://cldr.unicode.org/ and https://www.unicode.org/cldr/charts/30/supplemental/territory_information.html for details. Example: "CH" for Switzerland.
"revision": 42, # The schema revision of the `PostalAddress`. This must be set to 0, which is the latest revision. All new revisions **must** be backward compatible with old revisions.
"sortingCode": "A String", # Optional. Additional, country-specific, sorting code. This is not used in most regions. Where it is used, the value is either a string like "CEDEX", optionally followed by a number (for example, "CEDEX 7"), or just a number alone, representing the "sector code" (Jamaica), "delivery area indicator" (Malawi) or "post office indicator" (Côte d'Ivoire).
"sublocality": "A String", # Optional. Sublocality of the address. For example, this can be a neighborhood, borough, or district.
},
"priceLevel": "A String", # Price level of the place.
"priceRange": { # The price range associated with a Place. `end_price` could be unset, which indicates a range without upper bound (e.g. "More than $100"). # The price range associated with a Place.
"endPrice": { # Represents an amount of money with its currency type. # The high end of the price range (exclusive). Price should be lower than this amount.
"currencyCode": "A String", # The three-letter currency code defined in ISO 4217.
"nanos": 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
"units": "A String", # The whole units of the amount. For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar.
},
"startPrice": { # Represents an amount of money with its currency type. # The low end of the price range (inclusive). Price should be at or above this amount.
"currencyCode": "A String", # The three-letter currency code defined in ISO 4217.
"nanos": 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
"units": "A String", # The whole units of the amount. For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar.
},
},
"primaryType": "A String", # The primary type of the given result. This type must be one of the Places API supported types. For example, "restaurant", "cafe", "airport", etc. A place can only have a single primary type. For the complete list of possible values, see Table A and Table B at https://developers.google.com/maps/documentation/places/web-service/place-types. The primary type may be missing if the place's primary type is not a supported type. When a primary type is present, it is always one of the types in the `types` field.
"primaryTypeDisplayName": { # Localized variant of a text in a particular language. # The display name of the primary type, localized to the request language if applicable. For the complete list of possible values, see Table A and Table B at https://developers.google.com/maps/documentation/places/web-service/place-types. The primary type may be missing if the place's primary type is not a supported type.
"languageCode": "A String", # The text's BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
"text": "A String", # Localized string in the language corresponding to language_code below.
},
"pureServiceAreaBusiness": True or False, # Indicates whether the place is a pure service area business. Pure service area business is a business that visits or delivers to customers directly but does not serve customers at their business address. For example, businesses like cleaning services or plumbers. Those businesses may not have a physical address or location on Google Maps.
"rating": 3.14, # A rating between 1.0 and 5.0, based on user reviews of this place.
"regularOpeningHours": { # Information about business hour of the place. # The regular hours of operation. Note that if a place is always open (24 hours), the `close` field will not be set. Clients can rely on always open (24 hours) being represented as an [`open`](https://developers.google.com/maps/documentation/places/web-service/reference/rest/v1/places#Period) period containing [`day`](https://developers.google.com/maps/documentation/places/web-service/reference/rest/v1/places#Point) with value `0`, [`hour`](https://developers.google.com/maps/documentation/places/web-service/reference/rest/v1/places#Point) with value `0`, and [`minute`](https://developers.google.com/maps/documentation/places/web-service/reference/rest/v1/places#Point) with value `0`.
"nextCloseTime": "A String", # The next time the current opening hours period ends up to 7 days in the future. This field is only populated if the opening hours period is active at the time of serving the request.
"nextOpenTime": "A String", # The next time the current opening hours period starts up to 7 days in the future. This field is only populated if the opening hours period is not active at the time of serving the request.
"openNow": True or False, # Whether the opening hours period is currently active. For regular opening hours and current opening hours, this field means whether the place is open. For secondary opening hours and current secondary opening hours, this field means whether the secondary hours of this place is active.
"periods": [ # The periods that this place is open during the week. The periods are in chronological order, in the place-local timezone. An empty (but not absent) value indicates a place that is never open, e.g. because it is closed temporarily for renovations. The starting day of `periods` is NOT fixed and should not be assumed to be Sunday. The API determines the start day based on a variety of factors. For example, for a 24/7 business, the first period may begin on the day of the request. For other businesses, it might be the first day of the week that they are open. NOTE: The ordering of the `periods` array is independent of the ordering of the `weekday_descriptions` array. Do not assume they will begin on the same day.
{ # A period the place remains in open_now status.
"close": { # Status changing points. # The time that the place starts to be closed.
"date": { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # Date in the local timezone for the place.
"day": 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
"month": 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
"year": 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
},
"day": 42, # A day of the week, as an integer in the range 0-6. 0 is Sunday, 1 is Monday, etc.
"hour": 42, # The hour in 24 hour format. Ranges from 0 to 23.
"minute": 42, # The minute. Ranges from 0 to 59.
"truncated": True or False, # Whether or not this endpoint was truncated. Truncation occurs when the real hours are outside the times we are willing to return hours between, so we truncate the hours back to these boundaries. This ensures that at most 24 * 7 hours from midnight of the day of the request are returned.
},
"open": { # Status changing points. # The time that the place starts to be open.
"date": { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # Date in the local timezone for the place.
"day": 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
"month": 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
"year": 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
},
"day": 42, # A day of the week, as an integer in the range 0-6. 0 is Sunday, 1 is Monday, etc.
"hour": 42, # The hour in 24 hour format. Ranges from 0 to 23.
"minute": 42, # The minute. Ranges from 0 to 59.
"truncated": True or False, # Whether or not this endpoint was truncated. Truncation occurs when the real hours are outside the times we are willing to return hours between, so we truncate the hours back to these boundaries. This ensures that at most 24 * 7 hours from midnight of the day of the request are returned.
},
},
],
"secondaryHoursType": "A String", # A type string used to identify the type of secondary hours.
"specialDays": [ # Structured information for special days that fall within the period that the returned opening hours cover. Special days are days that could impact the business hours of a place, e.g. Christmas day. Set for current_opening_hours and current_secondary_opening_hours if there are exceptional hours.
{ # Structured information for special days that fall within the period that the returned opening hours cover. Special days are days that could impact the business hours of a place, e.g. Christmas day.
"date": { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # The date of this special day.
"day": 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
"month": 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
"year": 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
},
},
],
"weekdayDescriptions": [ # Localized strings describing the opening hours of this place, one string for each day of the week. NOTE: The order of the days and the start of the week is determined by the locale (language and region). The ordering of the `periods` array is independent of the ordering of the `weekday_descriptions` array. Do not assume they will begin on the same day. Will be empty if the hours are unknown or could not be converted to localized text. Example: "Sun: 18:00–06:00"
"A String",
],
},
"regularSecondaryOpeningHours": [ # Contains an array of entries for information about regular secondary hours of a business. Secondary hours are different from a business's main hours. For example, a restaurant can specify drive through hours or delivery hours as its secondary hours. This field populates the type subfield, which draws from a predefined list of opening hours types (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on the types of the place.
{ # Information about business hour of the place.
"nextCloseTime": "A String", # The next time the current opening hours period ends up to 7 days in the future. This field is only populated if the opening hours period is active at the time of serving the request.
"nextOpenTime": "A String", # The next time the current opening hours period starts up to 7 days in the future. This field is only populated if the opening hours period is not active at the time of serving the request.
"openNow": True or False, # Whether the opening hours period is currently active. For regular opening hours and current opening hours, this field means whether the place is open. For secondary opening hours and current secondary opening hours, this field means whether the secondary hours of this place is active.
"periods": [ # The periods that this place is open during the week. The periods are in chronological order, in the place-local timezone. An empty (but not absent) value indicates a place that is never open, e.g. because it is closed temporarily for renovations. The starting day of `periods` is NOT fixed and should not be assumed to be Sunday. The API determines the start day based on a variety of factors. For example, for a 24/7 business, the first period may begin on the day of the request. For other businesses, it might be the first day of the week that they are open. NOTE: The ordering of the `periods` array is independent of the ordering of the `weekday_descriptions` array. Do not assume they will begin on the same day.
{ # A period the place remains in open_now status.
"close": { # Status changing points. # The time that the place starts to be closed.
"date": { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # Date in the local timezone for the place.
"day": 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
"month": 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
"year": 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
},
"day": 42, # A day of the week, as an integer in the range 0-6. 0 is Sunday, 1 is Monday, etc.
"hour": 42, # The hour in 24 hour format. Ranges from 0 to 23.
"minute": 42, # The minute. Ranges from 0 to 59.
"truncated": True or False, # Whether or not this endpoint was truncated. Truncation occurs when the real hours are outside the times we are willing to return hours between, so we truncate the hours back to these boundaries. This ensures that at most 24 * 7 hours from midnight of the day of the request are returned.
},
"open": { # Status changing points. # The time that the place starts to be open.
"date": { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # Date in the local timezone for the place.
"day": 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
"month": 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
"year": 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
},
"day": 42, # A day of the week, as an integer in the range 0-6. 0 is Sunday, 1 is Monday, etc.
"hour": 42, # The hour in 24 hour format. Ranges from 0 to 23.
"minute": 42, # The minute. Ranges from 0 to 59.
"truncated": True or False, # Whether or not this endpoint was truncated. Truncation occurs when the real hours are outside the times we are willing to return hours between, so we truncate the hours back to these boundaries. This ensures that at most 24 * 7 hours from midnight of the day of the request are returned.
},
},
],
"secondaryHoursType": "A String", # A type string used to identify the type of secondary hours.
"specialDays": [ # Structured information for special days that fall within the period that the returned opening hours cover. Special days are days that could impact the business hours of a place, e.g. Christmas day. Set for current_opening_hours and current_secondary_opening_hours if there are exceptional hours.
{ # Structured information for special days that fall within the period that the returned opening hours cover. Special days are days that could impact the business hours of a place, e.g. Christmas day.
"date": { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # The date of this special day.
"day": 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
"month": 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
"year": 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
},
},
],
"weekdayDescriptions": [ # Localized strings describing the opening hours of this place, one string for each day of the week. NOTE: The order of the days and the start of the week is determined by the locale (language and region). The ordering of the `periods` array is independent of the ordering of the `weekday_descriptions` array. Do not assume they will begin on the same day. Will be empty if the hours are unknown or could not be converted to localized text. Example: "Sun: 18:00–06:00"
"A String",
],
},
],
"reservable": True or False, # Specifies if the place supports reservations.
"restroom": True or False, # Place has restroom.
"reviewSummary": { # AI-generated summary of the place using user reviews. # AI-generated summary of the place using user reviews.
"disclosureText": { # Localized variant of a text in a particular language. # The AI disclosure message "Summarized with Gemini" (and its localized variants). This will be in the language specified in the request if available.
"languageCode": "A String", # The text's BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
"text": "A String", # Localized string in the language corresponding to language_code below.
},
"flagContentUri": "A String", # A link where users can flag a problem with the summary.
"reviewsUri": "A String", # A link to show reviews of this place on Google Maps.
"text": { # Localized variant of a text in a particular language. # The summary of user reviews.
"languageCode": "A String", # The text's BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
"text": "A String", # Localized string in the language corresponding to language_code below.
},
},
"reviews": [ # List of reviews about this place, sorted by relevance. A maximum of 5 reviews can be returned.
{ # Information about a review of a place.
"authorAttribution": { # Information about the author of the UGC data. Used in Photo, and Review. # This review's author.
"displayName": "A String", # Name of the author of the Photo or Review.
"photoUri": "A String", # Profile photo URI of the author of the Photo or Review.
"uri": "A String", # URI of the author of the Photo or Review.
},
"flagContentUri": "A String", # A link where users can flag a problem with the review.
"googleMapsUri": "A String", # A link to show the review on Google Maps.
"name": "A String", # A reference representing this place review which may be used to look up this place review again (also called the API "resource" name: `places/{place_id}/reviews/{review}`).
"originalText": { # Localized variant of a text in a particular language. # The review text in its original language.
"languageCode": "A String", # The text's BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
"text": "A String", # Localized string in the language corresponding to language_code below.
},
"publishTime": "A String", # Timestamp for the review.
"rating": 3.14, # A number between 1.0 and 5.0, also called the number of stars.
"relativePublishTimeDescription": "A String", # A string of formatted recent time, expressing the review time relative to the current time in a form appropriate for the language and country.
"text": { # Localized variant of a text in a particular language. # The localized text of the review.
"languageCode": "A String", # The text's BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
"text": "A String", # Localized string in the language corresponding to language_code below.
},
"visitDate": { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # The date when the author visited the place. This is trucated to the year and month of the visit.
"day": 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
"month": 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
"year": 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
},
},
],
"servesBeer": True or False, # Specifies if the place serves beer.
"servesBreakfast": True or False, # Specifies if the place serves breakfast.
"servesBrunch": True or False, # Specifies if the place serves brunch.
"servesCocktails": True or False, # Place serves cocktails.
"servesCoffee": True or False, # Place serves coffee.
"servesDessert": True or False, # Place serves dessert.
"servesDinner": True or False, # Specifies if the place serves dinner.
"servesLunch": True or False, # Specifies if the place serves lunch.
"servesVegetarianFood": True or False, # Specifies if the place serves vegetarian food.
"servesWine": True or False, # Specifies if the place serves wine.
"shortFormattedAddress": "A String", # A short, human-readable address for this place.
"subDestinations": [ # A list of sub-destinations related to the place.
{ # Sub-destinations are specific places associated with a main place. These provide more specific destinations for users who are searching within a large or complex place, like an airport, national park, university, or stadium. For example, sub-destinations at an airport might include associated terminals and parking lots. Sub-destinations return the place ID and place resource name, which can be used in subsequent Place Details (New) requests to fetch richer details, including the sub-destination's display name and location.
"id": "A String", # The place id of the sub-destination.
"name": "A String", # The resource name of the sub-destination.
},
],
"takeout": True or False, # Specifies if the business supports takeout.
"timeZone": { # Represents a time zone from the [IANA Time Zone Database](https://www.iana.org/time-zones). # IANA Time Zone Database time zone. For example "America/New_York".
"id": "A String", # IANA Time Zone Database time zone. For example "America/New_York".
"version": "A String", # Optional. IANA Time Zone Database version number. For example "2019a".
},
"types": [ # A set of type tags for this result. For example, "political" and "locality". For the complete list of possible values, see Table A and Table B at https://developers.google.com/maps/documentation/places/web-service/place-types
"A String",
],
"userRatingCount": 42, # The total number of reviews (with or without text) for this place.
"utcOffsetMinutes": 42, # Number of minutes this place's timezone is currently offset from UTC. This is expressed in minutes to support timezones that are offset by fractions of an hour, e.g. X hours and 15 minutes.
"viewport": { # A latitude-longitude viewport, represented as two diagonally opposite `low` and `high` points. A viewport is considered a closed region, i.e. it includes its boundary. The latitude bounds must range between -90 to 90 degrees inclusive, and the longitude bounds must range between -180 to 180 degrees inclusive. Various cases include: - If `low` = `high`, the viewport consists of that single point. - If `low.longitude` > `high.longitude`, the longitude range is inverted (the viewport crosses the 180 degree longitude line). - If `low.longitude` = -180 degrees and `high.longitude` = 180 degrees, the viewport includes all longitudes. - If `low.longitude` = 180 degrees and `high.longitude` = -180 degrees, the longitude range is empty. - If `low.latitude` > `high.latitude`, the latitude range is empty. Both `low` and `high` must be populated, and the represented box cannot be empty (as specified by the definitions above). An empty viewport will result in an error. For example, this viewport fully encloses New York City: { "low": { "latitude": 40.477398, "longitude": -74.259087 }, "high": { "latitude": 40.91618, "longitude": -73.70018 } } # A viewport suitable for displaying the place on an average-sized map. This viewport should not be used as the physical boundary or the service area of the business.
"high": { # An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges. # Required. The high point of the viewport.
"latitude": 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
"longitude": 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
},
"low": { # An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges. # Required. The low point of the viewport.
"latitude": 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
"longitude": 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
},
},
"websiteUri": "A String", # The authoritative website for this place, e.g. a business' homepage. Note that for places that are part of a chain (e.g. an IKEA store), this will usually be the website for the individual store, not the overall chain.
},
],
"routingSummaries": [ # A list of routing summaries where each entry associates to the corresponding place in the same index in the `places` field. If the routing summary is not available for one of the places, it will contain an empty entry. This list should have as many entries as the list of places if requested.
{ # The duration and distance from the routing origin to a place in the response, and a second leg from that place to the destination, if requested. **Note:** Adding `routingSummaries` in the field mask without also including either the `routingParameters.origin` parameter or the `searchAlongRouteParameters.polyline.encodedPolyline` parameter in the request causes an error.
"directionsUri": "A String", # A link to show directions on Google Maps using the waypoints from the given routing summary. The route generated by this link is not guaranteed to be the same as the route used to generate the routing summary. The link uses information provided in the request, from fields including `routingParameters` and `searchAlongRouteParameters` when applicable, to generate the directions link.
"legs": [ # The legs of the trip. When you calculate travel duration and distance from a set origin, `legs` contains a single leg containing the duration and distance from the origin to the destination. When you do a search along route, `legs` contains two legs: one from the origin to place, and one from the place to the destination.
{ # A leg is a single portion of a journey from one location to another.
"distanceMeters": 42, # The distance of this leg of the trip.
"duration": "A String", # The time it takes to complete this leg of the trip.
},
],
},
],
}</pre>
</div>
<div class="method">
<code class="details" id="searchText">searchText(body=None, x__xgafv=None)</code>
<pre>Text query based place search.
Args:
body: object, The request body.
The object takes the form of:
{ # Request proto for SearchText.
"evOptions": { # Searchable EV options of a place search request. # Optional. Set the searchable EV options of a place search request.
"connectorTypes": [ # Optional. The list of preferred EV connector types. A place that does not support any of the listed connector types is filtered out.
"A String",
],
"minimumChargingRateKw": 3.14, # Optional. Minimum required charging rate in kilowatts. A place with a charging rate less than the specified rate is filtered out.
},
"includePureServiceAreaBusinesses": True or False, # Optional. Include pure service area businesses if the field is set to true. Pure service area business is a business that visits or delivers to customers directly but does not serve customers at their business address. For example, businesses like cleaning services or plumbers. Those businesses do not have a physical address or location on Google Maps. Places will not return fields including `location`, `plus_code`, and other location related fields for these businesses.
"includedType": "A String", # The requested place type. Full list of types supported: https://developers.google.com/maps/documentation/places/web-service/place-types. Only support one included type.
"languageCode": "A String", # Place details will be displayed with the preferred language if available. If the language code is unspecified or unrecognized, place details of any language may be returned, with a preference for English if such details exist. Current list of supported languages: https://developers.google.com/maps/faq#languagesupport.
"locationBias": { # The region to search. This location serves as a bias which means results around given location might be returned. # The region to search. This location serves as a bias which means results around given location might be returned. Cannot be set along with location_restriction.
"circle": { # Circle with a LatLng as center and radius. # A circle defined by center point and radius.
"center": { # An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges. # Required. Center latitude and longitude. The range of latitude must be within [-90.0, 90.0]. The range of the longitude must be within [-180.0, 180.0].
"latitude": 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
"longitude": 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
},
"radius": 3.14, # Required. Radius measured in meters. The radius must be within [0.0, 50000.0].
},
"rectangle": { # A latitude-longitude viewport, represented as two diagonally opposite `low` and `high` points. A viewport is considered a closed region, i.e. it includes its boundary. The latitude bounds must range between -90 to 90 degrees inclusive, and the longitude bounds must range between -180 to 180 degrees inclusive. Various cases include: - If `low` = `high`, the viewport consists of that single point. - If `low.longitude` > `high.longitude`, the longitude range is inverted (the viewport crosses the 180 degree longitude line). - If `low.longitude` = -180 degrees and `high.longitude` = 180 degrees, the viewport includes all longitudes. - If `low.longitude` = 180 degrees and `high.longitude` = -180 degrees, the longitude range is empty. - If `low.latitude` > `high.latitude`, the latitude range is empty. Both `low` and `high` must be populated, and the represented box cannot be empty (as specified by the definitions above). An empty viewport will result in an error. For example, this viewport fully encloses New York City: { "low": { "latitude": 40.477398, "longitude": -74.259087 }, "high": { "latitude": 40.91618, "longitude": -73.70018 } } # A rectangle box defined by northeast and southwest corner. `rectangle.high()` must be the northeast point of the rectangle viewport. `rectangle.low()` must be the southwest point of the rectangle viewport. `rectangle.low().latitude()` cannot be greater than `rectangle.high().latitude()`. This will result in an empty latitude range. A rectangle viewport cannot be wider than 180 degrees.
"high": { # An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges. # Required. The high point of the viewport.
"latitude": 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
"longitude": 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
},
"low": { # An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges. # Required. The low point of the viewport.
"latitude": 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
"longitude": 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
},
},
},
"locationRestriction": { # The region to search. This location serves as a restriction which means results outside given location will not be returned. # The region to search. This location serves as a restriction which means results outside given location will not be returned. Cannot be set along with location_bias.
"rectangle": { # A latitude-longitude viewport, represented as two diagonally opposite `low` and `high` points. A viewport is considered a closed region, i.e. it includes its boundary. The latitude bounds must range between -90 to 90 degrees inclusive, and the longitude bounds must range between -180 to 180 degrees inclusive. Various cases include: - If `low` = `high`, the viewport consists of that single point. - If `low.longitude` > `high.longitude`, the longitude range is inverted (the viewport crosses the 180 degree longitude line). - If `low.longitude` = -180 degrees and `high.longitude` = 180 degrees, the viewport includes all longitudes. - If `low.longitude` = 180 degrees and `high.longitude` = -180 degrees, the longitude range is empty. - If `low.latitude` > `high.latitude`, the latitude range is empty. Both `low` and `high` must be populated, and the represented box cannot be empty (as specified by the definitions above). An empty viewport will result in an error. For example, this viewport fully encloses New York City: { "low": { "latitude": 40.477398, "longitude": -74.259087 }, "high": { "latitude": 40.91618, "longitude": -73.70018 } } # A rectangle box defined by northeast and southwest corner. `rectangle.high()` must be the northeast point of the rectangle viewport. `rectangle.low()` must be the southwest point of the rectangle viewport. `rectangle.low().latitude()` cannot be greater than `rectangle.high().latitude()`. This will result in an empty latitude range. A rectangle viewport cannot be wider than 180 degrees.
"high": { # An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges. # Required. The high point of the viewport.
"latitude": 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
"longitude": 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
},
"low": { # An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges. # Required. The low point of the viewport.
"latitude": 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
"longitude": 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
},
},
},
"maxResultCount": 42, # Deprecated: Use `page_size` instead. The maximum number of results per page that can be returned. If the number of available results is larger than `max_result_count`, a `next_page_token` is returned which can be passed to `page_token` to get the next page of results in subsequent requests. If 0 or no value is provided, a default of 20 is used. The maximum value is 20; values above 20 will be coerced to 20. Negative values will return an INVALID_ARGUMENT error. If both `max_result_count` and `page_size` are specified, `max_result_count` will be ignored.
"minRating": 3.14, # Filter out results whose average user rating is strictly less than this limit. A valid value must be a float between 0 and 5 (inclusively) at a 0.5 cadence i.e. [0, 0.5, 1.0, ... , 5.0] inclusively. The input rating will round up to the nearest 0.5(ceiling). For instance, a rating of 0.6 will eliminate all results with a less than 1.0 rating.
"openNow": True or False, # Used to restrict the search to places that are currently open. The default is false.
"pageSize": 42, # Optional. The maximum number of results per page that can be returned. If the number of available results is larger than `page_size`, a `next_page_token` is returned which can be passed to `page_token` to get the next page of results in subsequent requests. If 0 or no value is provided, a default of 20 is used. The maximum value is 20; values above 20 will be set to 20. Negative values will return an INVALID_ARGUMENT error. If both `max_result_count` and `page_size` are specified, `max_result_count` will be ignored.
"pageToken": "A String", # Optional. A page token, received from a previous TextSearch call. Provide this to retrieve the subsequent page. When paginating, all parameters other than `page_token`, `page_size`, and `max_result_count` provided to TextSearch must match the initial call that provided the page token. Otherwise an INVALID_ARGUMENT error is returned.
"priceLevels": [ # Used to restrict the search to places that are marked as certain price levels. Users can choose any combinations of price levels. Default to select all price levels.
"A String",
],
"rankPreference": "A String", # How results will be ranked in the response.
"regionCode": "A String", # The Unicode country/region code (CLDR) of the location where the request is coming from. This parameter is used to display the place details, like region-specific place name, if available. The parameter can affect results based on applicable law. For more information, see https://www.unicode.org/cldr/charts/latest/supplemental/territory_language_information.html. Note that 3-digit region codes are not currently supported.
"routingParameters": { # Parameters to configure the routing calculations to the places in the response, both along a route (where result ranking will be influenced) and for calculating travel times on results. # Optional. Additional parameters for routing to results.
"origin": { # An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges. # Optional. An explicit routing origin that overrides the origin defined in the polyline. By default, the polyline origin is used.
"latitude": 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
"longitude": 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
},
"routeModifiers": { # Encapsulates a set of optional conditions to satisfy when calculating the routes. # Optional. The route modifiers.
"avoidFerries": True or False, # Optional. When set to true, avoids ferries where reasonable, giving preference to routes not containing ferries. Applies only to the `DRIVE` and `TWO_WHEELER` `TravelMode`.
"avoidHighways": True or False, # Optional. When set to true, avoids highways where reasonable, giving preference to routes not containing highways. Applies only to the `DRIVE` and `TWO_WHEELER` `TravelMode`.
"avoidIndoor": True or False, # Optional. When set to true, avoids navigating indoors where reasonable, giving preference to routes not containing indoor navigation. Applies only to the `WALK` `TravelMode`.
"avoidTolls": True or False, # Optional. When set to true, avoids toll roads where reasonable, giving preference to routes not containing toll roads. Applies only to the `DRIVE` and `TWO_WHEELER` `TravelMode`.
},
"routingPreference": "A String", # Optional. Specifies how to compute the routing summaries. The server attempts to use the selected routing preference to compute the route. The traffic aware routing preference is only available for the `DRIVE` or `TWO_WHEELER` `travelMode`.
"travelMode": "A String", # Optional. The travel mode.
},
"searchAlongRouteParameters": { # Specifies a precalculated polyline from the [Routes API](https://developers.google.com/maps/documentation/routes) defining the route to search. Searching along a route is similar to using the `locationBias` or `locationRestriction` request option to bias the search results. However, while the `locationBias` and `locationRestriction` options let you specify a region to bias the search results, this option lets you bias the results along a trip route. Results are not guaranteed to be along the route provided, but rather are ranked within the search area defined by the polyline and, optionally, by the `locationBias` or `locationRestriction` based on minimal detour times from origin to destination. The results might be along an alternate route, especially if the provided polyline does not define an optimal route from origin to destination. # Optional. Additional parameters proto for searching along a route.
"polyline": { # A route polyline. Only supports an [encoded polyline](https://developers.google.com/maps/documentation/utilities/polylinealgorithm), which can be passed as a string and includes compression with minimal lossiness. This is the Routes API default output. # Required. The route polyline.
"encodedPolyline": "A String", # An [encoded polyline](https://developers.google.com/maps/documentation/utilities/polylinealgorithm), as returned by the [Routes API by default](https://developers.google.com/maps/documentation/routes/reference/rest/v2/TopLevel/computeRoutes#polylineencoding). See the [encoder](https://developers.google.com/maps/documentation/utilities/polylineutility) and [decoder](https://developers.google.com/maps/documentation/routes/polylinedecoder) tools.
},
},
"strictTypeFiltering": True or False, # Used to set strict type filtering for included_type. If set to true, only results of the same type will be returned. Default to false.
"textQuery": "A String", # Required. The text query for textual search.
}
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{ # Response proto for SearchText.
"contextualContents": [ # Experimental: See https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative for more details. A list of contextual contents where each entry associates to the corresponding place in the same index in the places field. The contents that are relevant to the `text_query` in the request are preferred. If the contextual content is not available for one of the places, it will return non-contextual content. It will be empty only when the content is unavailable for this place. This list will have as many entries as the list of places if requested.
{ # Experimental: See https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative for more details. Content that is contextual to the place query.
"justifications": [ # Experimental: See https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative for more details. Justifications for the place.
{ # Experimental: See https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative for more details. Justifications for the place. Justifications answers the question of why a place could interest an end user.
"businessAvailabilityAttributesJustification": { # Experimental: See https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative for more details. BusinessAvailabilityAttributes justifications. This shows some attributes a business has that could interest an end user. # Experimental: See https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative for more details.
"delivery": True or False, # If a place provides delivery.
"dineIn": True or False, # If a place provides dine-in.
"takeout": True or False, # If a place provides takeout.
},
"reviewJustification": { # Experimental: See https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative for more details. User review justifications. This highlights a section of the user review that would interest an end user. For instance, if the search query is "firewood pizza", the review justification highlights the text relevant to the search query. # Experimental: See https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative for more details.
"highlightedText": { # The text highlighted by the justification. This is a subset of the review itself. The exact word to highlight is marked by the HighlightedTextRange. There could be several words in the text being highlighted.
"highlightedTextRanges": [ # The list of the ranges of the highlighted text.
{ # The range of highlighted text.
"endIndex": 42,
"startIndex": 42,
},
],
"text": "A String",
},
"review": { # Information about a review of a place. # The review that the highlighted text is generated from.
"authorAttribution": { # Information about the author of the UGC data. Used in Photo, and Review. # This review's author.
"displayName": "A String", # Name of the author of the Photo or Review.
"photoUri": "A String", # Profile photo URI of the author of the Photo or Review.
"uri": "A String", # URI of the author of the Photo or Review.
},
"flagContentUri": "A String", # A link where users can flag a problem with the review.
"googleMapsUri": "A String", # A link to show the review on Google Maps.
"name": "A String", # A reference representing this place review which may be used to look up this place review again (also called the API "resource" name: `places/{place_id}/reviews/{review}`).
"originalText": { # Localized variant of a text in a particular language. # The review text in its original language.
"languageCode": "A String", # The text's BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
"text": "A String", # Localized string in the language corresponding to language_code below.
},
"publishTime": "A String", # Timestamp for the review.
"rating": 3.14, # A number between 1.0 and 5.0, also called the number of stars.
"relativePublishTimeDescription": "A String", # A string of formatted recent time, expressing the review time relative to the current time in a form appropriate for the language and country.
"text": { # Localized variant of a text in a particular language. # The localized text of the review.
"languageCode": "A String", # The text's BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
"text": "A String", # Localized string in the language corresponding to language_code below.
},
"visitDate": { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # The date when the author visited the place. This is trucated to the year and month of the visit.
"day": 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
"month": 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
"year": 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
},
},
},
},
],
"photos": [ # Information (including references) about photos of this place, contexual to the place query.
{ # Information about a photo of a place.
"authorAttributions": [ # This photo's authors.
{ # Information about the author of the UGC data. Used in Photo, and Review.
"displayName": "A String", # Name of the author of the Photo or Review.
"photoUri": "A String", # Profile photo URI of the author of the Photo or Review.
"uri": "A String", # URI of the author of the Photo or Review.
},
],
"flagContentUri": "A String", # A link where users can flag a problem with the photo.
"googleMapsUri": "A String", # A link to show the photo on Google Maps.
"heightPx": 42, # The maximum available height, in pixels.
"name": "A String", # Identifier. A reference representing this place photo which may be used to look up this place photo again (also called the API "resource" name: `places/{place_id}/photos/{photo}`).
"widthPx": 42, # The maximum available width, in pixels.
},
],
"reviews": [ # List of reviews about this place, contexual to the place query.
{ # Information about a review of a place.
"authorAttribution": { # Information about the author of the UGC data. Used in Photo, and Review. # This review's author.
"displayName": "A String", # Name of the author of the Photo or Review.
"photoUri": "A String", # Profile photo URI of the author of the Photo or Review.
"uri": "A String", # URI of the author of the Photo or Review.
},
"flagContentUri": "A String", # A link where users can flag a problem with the review.
"googleMapsUri": "A String", # A link to show the review on Google Maps.
"name": "A String", # A reference representing this place review which may be used to look up this place review again (also called the API "resource" name: `places/{place_id}/reviews/{review}`).
"originalText": { # Localized variant of a text in a particular language. # The review text in its original language.
"languageCode": "A String", # The text's BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
"text": "A String", # Localized string in the language corresponding to language_code below.
},
"publishTime": "A String", # Timestamp for the review.
"rating": 3.14, # A number between 1.0 and 5.0, also called the number of stars.
"relativePublishTimeDescription": "A String", # A string of formatted recent time, expressing the review time relative to the current time in a form appropriate for the language and country.
"text": { # Localized variant of a text in a particular language. # The localized text of the review.
"languageCode": "A String", # The text's BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
"text": "A String", # Localized string in the language corresponding to language_code below.
},
"visitDate": { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # The date when the author visited the place. This is trucated to the year and month of the visit.
"day": 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
"month": 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
"year": 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
},
},
],
},
],
"nextPageToken": "A String", # A token that can be sent as `page_token` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
"places": [ # A list of places that meet the user's text search criteria.
{ # All the information representing a Place.
"accessibilityOptions": { # Information about the accessibility options a place offers. # Information about the accessibility options a place offers.
"wheelchairAccessibleEntrance": True or False, # Places has wheelchair accessible entrance.
"wheelchairAccessibleParking": True or False, # Place offers wheelchair accessible parking.
"wheelchairAccessibleRestroom": True or False, # Place has wheelchair accessible restroom.
"wheelchairAccessibleSeating": True or False, # Place has wheelchair accessible seating.
},
"addressComponents": [ # Repeated components for each locality level. Note the following facts about the address_components[] array: - The array of address components may contain more components than the formatted_address. - The array does not necessarily include all the political entities that contain an address, apart from those included in the formatted_address. To retrieve all the political entities that contain a specific address, you should use reverse geocoding, passing the latitude/longitude of the address as a parameter to the request. - The format of the response is not guaranteed to remain the same between requests. In particular, the number of address_components varies based on the address requested and can change over time for the same address. A component can change position in the array. The type of the component can change. A particular component may be missing in a later response.
{ # The structured components that form the formatted address, if this information is available.
"languageCode": "A String", # The language used to format this components, in CLDR notation.
"longText": "A String", # The full text description or name of the address component. For example, an address component for the country Australia may have a long_name of "Australia".
"shortText": "A String", # An abbreviated textual name for the address component, if available. For example, an address component for the country of Australia may have a short_name of "AU".
"types": [ # An array indicating the type(s) of the address component.
"A String",
],
},
],
"addressDescriptor": { # A relational description of a location. Includes a ranked set of nearby landmarks and precise containing areas and their relationship to the target location. # The address descriptor of the place. Address descriptors include additional information that help describe a location using landmarks and areas. See address descriptor regional coverage in https://developers.google.com/maps/documentation/geocoding/address-descriptors/coverage.
"areas": [ # A ranked list of containing or adjacent areas. The most recognizable and precise areas are ranked first.
{ # Area information and the area's relationship with the target location. Areas includes precise sublocality, neighborhoods, and large compounds that are useful for describing a location.
"containment": "A String", # Defines the spatial relationship between the target location and the area.
"displayName": { # Localized variant of a text in a particular language. # The area's display name.
"languageCode": "A String", # The text's BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
"text": "A String", # Localized string in the language corresponding to language_code below.
},
"name": "A String", # The area's resource name.
"placeId": "A String", # The area's place id.
},
],
"landmarks": [ # A ranked list of nearby landmarks. The most recognizable and nearby landmarks are ranked first.
{ # Basic landmark information and the landmark's relationship with the target location. Landmarks are prominent places that can be used to describe a location.
"displayName": { # Localized variant of a text in a particular language. # The landmark's display name.
"languageCode": "A String", # The text's BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
"text": "A String", # Localized string in the language corresponding to language_code below.
},
"name": "A String", # The landmark's resource name.
"placeId": "A String", # The landmark's place id.
"spatialRelationship": "A String", # Defines the spatial relationship between the target location and the landmark.
"straightLineDistanceMeters": 3.14, # The straight line distance, in meters, between the center point of the target and the center point of the landmark. In some situations, this value can be longer than `travel_distance_meters`.
"travelDistanceMeters": 3.14, # The travel distance, in meters, along the road network from the target to the landmark, if known. This value does not take into account the mode of transportation, such as walking, driving, or biking.
"types": [ # A set of type tags for this landmark. For a complete list of possible values, see https://developers.google.com/maps/documentation/places/web-service/place-types.
"A String",
],
},
],
},
"adrFormatAddress": "A String", # The place's address in adr microformat: http://microformats.org/wiki/adr.
"allowsDogs": True or False, # Place allows dogs.
"attributions": [ # A set of data provider that must be shown with this result.
{ # Information about data providers of this place.
"provider": "A String", # Name of the Place's data provider.
"providerUri": "A String", # URI to the Place's data provider.
},
],
"businessStatus": "A String", # The business status for the place.
"consumerAlert": { # The consumer alert message for the place when we detect suspicious review activity on a business or a business violates our policies. # The consumer alert message for the place when we detect suspicious review activity on a business or a business violates our policies.
"details": { # The details of the consumer alert message. # The details of the consumer alert message.ƒ
"aboutLink": { # The link to show together with the description to provide more information. # The link to show together with the description to provide more information.
"title": "A String", # The title to show for the link.
"uri": "A String", # The uri of the link.
},
"description": "A String", # The description of the consumer alert message.
"title": "A String", # The title to show together with the description.
},
"languageCode": "A String", # The language code of the consumer alert message. This is a BCP 47 language code.
"overview": "A String", # The overview of the consumer alert message.
},
"containingPlaces": [ # List of places in which the current place is located.
{ # Info about the place in which this place is located.
"id": "A String", # The place id of the place in which this place is located.
"name": "A String", # The resource name of the place in which this place is located.
},
],
"curbsidePickup": True or False, # Specifies if the business supports curbside pickup.
"currentOpeningHours": { # Information about business hour of the place. # The hours of operation for the next seven days (including today). The time period starts at midnight on the date of the request and ends at 11:59 pm six days later. This field includes the special_days subfield of all hours, set for dates that have exceptional hours.
"nextCloseTime": "A String", # The next time the current opening hours period ends up to 7 days in the future. This field is only populated if the opening hours period is active at the time of serving the request.
"nextOpenTime": "A String", # The next time the current opening hours period starts up to 7 days in the future. This field is only populated if the opening hours period is not active at the time of serving the request.
"openNow": True or False, # Whether the opening hours period is currently active. For regular opening hours and current opening hours, this field means whether the place is open. For secondary opening hours and current secondary opening hours, this field means whether the secondary hours of this place is active.
"periods": [ # The periods that this place is open during the week. The periods are in chronological order, in the place-local timezone. An empty (but not absent) value indicates a place that is never open, e.g. because it is closed temporarily for renovations. The starting day of `periods` is NOT fixed and should not be assumed to be Sunday. The API determines the start day based on a variety of factors. For example, for a 24/7 business, the first period may begin on the day of the request. For other businesses, it might be the first day of the week that they are open. NOTE: The ordering of the `periods` array is independent of the ordering of the `weekday_descriptions` array. Do not assume they will begin on the same day.
{ # A period the place remains in open_now status.
"close": { # Status changing points. # The time that the place starts to be closed.
"date": { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # Date in the local timezone for the place.
"day": 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
"month": 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
"year": 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
},
"day": 42, # A day of the week, as an integer in the range 0-6. 0 is Sunday, 1 is Monday, etc.
"hour": 42, # The hour in 24 hour format. Ranges from 0 to 23.
"minute": 42, # The minute. Ranges from 0 to 59.
"truncated": True or False, # Whether or not this endpoint was truncated. Truncation occurs when the real hours are outside the times we are willing to return hours between, so we truncate the hours back to these boundaries. This ensures that at most 24 * 7 hours from midnight of the day of the request are returned.
},
"open": { # Status changing points. # The time that the place starts to be open.
"date": { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # Date in the local timezone for the place.
"day": 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
"month": 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
"year": 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
},
"day": 42, # A day of the week, as an integer in the range 0-6. 0 is Sunday, 1 is Monday, etc.
"hour": 42, # The hour in 24 hour format. Ranges from 0 to 23.
"minute": 42, # The minute. Ranges from 0 to 59.
"truncated": True or False, # Whether or not this endpoint was truncated. Truncation occurs when the real hours are outside the times we are willing to return hours between, so we truncate the hours back to these boundaries. This ensures that at most 24 * 7 hours from midnight of the day of the request are returned.
},
},
],
"secondaryHoursType": "A String", # A type string used to identify the type of secondary hours.
"specialDays": [ # Structured information for special days that fall within the period that the returned opening hours cover. Special days are days that could impact the business hours of a place, e.g. Christmas day. Set for current_opening_hours and current_secondary_opening_hours if there are exceptional hours.
{ # Structured information for special days that fall within the period that the returned opening hours cover. Special days are days that could impact the business hours of a place, e.g. Christmas day.
"date": { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # The date of this special day.
"day": 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
"month": 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
"year": 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
},
},
],
"weekdayDescriptions": [ # Localized strings describing the opening hours of this place, one string for each day of the week. NOTE: The order of the days and the start of the week is determined by the locale (language and region). The ordering of the `periods` array is independent of the ordering of the `weekday_descriptions` array. Do not assume they will begin on the same day. Will be empty if the hours are unknown or could not be converted to localized text. Example: "Sun: 18:00–06:00"
"A String",
],
},
"currentSecondaryOpeningHours": [ # Contains an array of entries for the next seven days including information about secondary hours of a business. Secondary hours are different from a business's main hours. For example, a restaurant can specify drive through hours or delivery hours as its secondary hours. This field populates the type subfield, which draws from a predefined list of opening hours types (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on the types of the place. This field includes the special_days subfield of all hours, set for dates that have exceptional hours.
{ # Information about business hour of the place.
"nextCloseTime": "A String", # The next time the current opening hours period ends up to 7 days in the future. This field is only populated if the opening hours period is active at the time of serving the request.
"nextOpenTime": "A String", # The next time the current opening hours period starts up to 7 days in the future. This field is only populated if the opening hours period is not active at the time of serving the request.
"openNow": True or False, # Whether the opening hours period is currently active. For regular opening hours and current opening hours, this field means whether the place is open. For secondary opening hours and current secondary opening hours, this field means whether the secondary hours of this place is active.
"periods": [ # The periods that this place is open during the week. The periods are in chronological order, in the place-local timezone. An empty (but not absent) value indicates a place that is never open, e.g. because it is closed temporarily for renovations. The starting day of `periods` is NOT fixed and should not be assumed to be Sunday. The API determines the start day based on a variety of factors. For example, for a 24/7 business, the first period may begin on the day of the request. For other businesses, it might be the first day of the week that they are open. NOTE: The ordering of the `periods` array is independent of the ordering of the `weekday_descriptions` array. Do not assume they will begin on the same day.
{ # A period the place remains in open_now status.
"close": { # Status changing points. # The time that the place starts to be closed.
"date": { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # Date in the local timezone for the place.
"day": 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
"month": 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
"year": 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
},
"day": 42, # A day of the week, as an integer in the range 0-6. 0 is Sunday, 1 is Monday, etc.
"hour": 42, # The hour in 24 hour format. Ranges from 0 to 23.
"minute": 42, # The minute. Ranges from 0 to 59.
"truncated": True or False, # Whether or not this endpoint was truncated. Truncation occurs when the real hours are outside the times we are willing to return hours between, so we truncate the hours back to these boundaries. This ensures that at most 24 * 7 hours from midnight of the day of the request are returned.
},
"open": { # Status changing points. # The time that the place starts to be open.
"date": { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # Date in the local timezone for the place.
"day": 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
"month": 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
"year": 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
},
"day": 42, # A day of the week, as an integer in the range 0-6. 0 is Sunday, 1 is Monday, etc.
"hour": 42, # The hour in 24 hour format. Ranges from 0 to 23.
"minute": 42, # The minute. Ranges from 0 to 59.
"truncated": True or False, # Whether or not this endpoint was truncated. Truncation occurs when the real hours are outside the times we are willing to return hours between, so we truncate the hours back to these boundaries. This ensures that at most 24 * 7 hours from midnight of the day of the request are returned.
},
},
],
"secondaryHoursType": "A String", # A type string used to identify the type of secondary hours.
"specialDays": [ # Structured information for special days that fall within the period that the returned opening hours cover. Special days are days that could impact the business hours of a place, e.g. Christmas day. Set for current_opening_hours and current_secondary_opening_hours if there are exceptional hours.
{ # Structured information for special days that fall within the period that the returned opening hours cover. Special days are days that could impact the business hours of a place, e.g. Christmas day.
"date": { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # The date of this special day.
"day": 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
"month": 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
"year": 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
},
},
],
"weekdayDescriptions": [ # Localized strings describing the opening hours of this place, one string for each day of the week. NOTE: The order of the days and the start of the week is determined by the locale (language and region). The ordering of the `periods` array is independent of the ordering of the `weekday_descriptions` array. Do not assume they will begin on the same day. Will be empty if the hours are unknown or could not be converted to localized text. Example: "Sun: 18:00–06:00"
"A String",
],
},
],
"delivery": True or False, # Specifies if the business supports delivery.
"dineIn": True or False, # Specifies if the business supports indoor or outdoor seating options.
"displayName": { # Localized variant of a text in a particular language. # The localized name of the place, suitable as a short human-readable description. For example, "Google Sydney", "Starbucks", "Pyrmont", etc.
"languageCode": "A String", # The text's BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
"text": "A String", # Localized string in the language corresponding to language_code below.
},
"editorialSummary": { # Localized variant of a text in a particular language. # Contains a summary of the place. A summary is comprised of a textual overview, and also includes the language code for these if applicable. Summary text must be presented as-is and can not be modified or altered.
"languageCode": "A String", # The text's BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
"text": "A String", # Localized string in the language corresponding to language_code below.
},
"evChargeAmenitySummary": { # The summary of amenities near the EV charging station. This only applies to places with type `electric_vehicle_charging_station`. The `overview` field is guaranteed to be provided while the other fields are optional. # The summary of amenities near the EV charging station.
"coffee": { # A block of content that can be served individually. # A summary of the nearby coffee options.
"content": { # Localized variant of a text in a particular language. # Content related to the topic.
"languageCode": "A String", # The text's BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
"text": "A String", # Localized string in the language corresponding to language_code below.
},
"referencedPlaces": [ # The list of resource names of the referenced places. This name can be used in other APIs that accept Place resource names.
"A String",
],
},
"disclosureText": { # Localized variant of a text in a particular language. # The AI disclosure message "Summarized with Gemini" (and its localized variants). This will be in the language specified in the request if available.
"languageCode": "A String", # The text's BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
"text": "A String", # Localized string in the language corresponding to language_code below.
},
"flagContentUri": "A String", # A link where users can flag a problem with the summary.
"overview": { # A block of content that can be served individually. # An overview of the available amenities. This is guaranteed to be provided.
"content": { # Localized variant of a text in a particular language. # Content related to the topic.
"languageCode": "A String", # The text's BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
"text": "A String", # Localized string in the language corresponding to language_code below.
},
"referencedPlaces": [ # The list of resource names of the referenced places. This name can be used in other APIs that accept Place resource names.
"A String",
],
},
"restaurant": { # A block of content that can be served individually. # A summary of the nearby restaurants.
"content": { # Localized variant of a text in a particular language. # Content related to the topic.
"languageCode": "A String", # The text's BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
"text": "A String", # Localized string in the language corresponding to language_code below.
},
"referencedPlaces": [ # The list of resource names of the referenced places. This name can be used in other APIs that accept Place resource names.
"A String",
],
},
"store": { # A block of content that can be served individually. # A summary of the nearby stores.
"content": { # Localized variant of a text in a particular language. # Content related to the topic.
"languageCode": "A String", # The text's BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
"text": "A String", # Localized string in the language corresponding to language_code below.
},
"referencedPlaces": [ # The list of resource names of the referenced places. This name can be used in other APIs that accept Place resource names.
"A String",
],
},
},
"evChargeOptions": { # Information about the EV Charge Station hosted in Place. Terminology follows https://afdc.energy.gov/fuels/electricity_infrastructure.html One port could charge one car at a time. One port has one or more connectors. One station has one or more ports. # Information of ev charging options.
"connectorAggregation": [ # A list of EV charging connector aggregations that contain connectors of the same type and same charge rate.
{ # EV charging information grouped by [type, max_charge_rate_kw]. Shows EV charge aggregation of connectors that have the same type and max charge rate in kw.
"availabilityLastUpdateTime": "A String", # The timestamp when the connector availability information in this aggregation was last updated.
"availableCount": 42, # Number of connectors in this aggregation that are currently available.
"count": 42, # Number of connectors in this aggregation.
"maxChargeRateKw": 3.14, # The static max charging rate in kw of each connector in the aggregation.
"outOfServiceCount": 42, # Number of connectors in this aggregation that are currently out of service.
"type": "A String", # The connector type of this aggregation.
},
],
"connectorCount": 42, # Number of connectors at this station. However, because some ports can have multiple connectors but only be able to charge one car at a time (e.g.) the number of connectors may be greater than the total number of cars which can charge simultaneously.
},
"formattedAddress": "A String", # A full, human-readable address for this place.
"fuelOptions": { # The most recent information about fuel options in a gas station. This information is updated regularly. # The most recent information about fuel options in a gas station. This information is updated regularly.
"fuelPrices": [ # The last known fuel price for each type of fuel this station has. There is one entry per fuel type this station has. Order is not important.
{ # Fuel price information for a given type.
"price": { # Represents an amount of money with its currency type. # The price of the fuel.
"currencyCode": "A String", # The three-letter currency code defined in ISO 4217.
"nanos": 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
"units": "A String", # The whole units of the amount. For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar.
},
"type": "A String", # The type of fuel.
"updateTime": "A String", # The time the fuel price was last updated.
},
],
},
"generativeSummary": { # AI-generated summary of the place. # AI-generated summary of the place.
"disclosureText": { # Localized variant of a text in a particular language. # The AI disclosure message "Summarized with Gemini" (and its localized variants). This will be in the language specified in the request if available.
"languageCode": "A String", # The text's BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
"text": "A String", # Localized string in the language corresponding to language_code below.
},
"overview": { # Localized variant of a text in a particular language. # The overview of the place.
"languageCode": "A String", # The text's BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
"text": "A String", # Localized string in the language corresponding to language_code below.
},
"overviewFlagContentUri": "A String", # A link where users can flag a problem with the overview summary.
},
"goodForChildren": True or False, # Place is good for children.
"goodForGroups": True or False, # Place accommodates groups.
"goodForWatchingSports": True or False, # Place is suitable for watching sports.
"googleMapsLinks": { # Links to trigger different Google Maps actions. # Links to trigger different Google Maps actions.
"directionsUri": "A String", # A link to show the directions to the place. The link only populates the destination location and uses the default travel mode `DRIVE`.
"photosUri": "A String", # A link to show photos of this place on Google Maps.
"placeUri": "A String", # A link to show this place.
"reviewsUri": "A String", # A link to show reviews of this place on Google Maps.
"writeAReviewUri": "A String", # A link to write a review for this place on Google Maps.
},
"googleMapsUri": "A String", # A URL providing more information about this place.
"iconBackgroundColor": "A String", # Background color for icon_mask in hex format, e.g. #909CE1.
"iconMaskBaseUri": "A String", # A truncated URL to an icon mask. User can access different icon type by appending type suffix to the end (eg, ".svg" or ".png").
"id": "A String", # The unique identifier of a place.
"internationalPhoneNumber": "A String", # A human-readable phone number for the place, in international format.
"liveMusic": True or False, # Place provides live music.
"location": { # An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges. # The position of this place.
"latitude": 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
"longitude": 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
},
"menuForChildren": True or False, # Place has a children's menu.
"name": "A String", # This Place's resource name, in `places/{place_id}` format. Can be used to look up the Place.
"nationalPhoneNumber": "A String", # A human-readable phone number for the place, in national format.
"neighborhoodSummary": { # A summary of points of interest near the place. # A summary of points of interest near the place.
"description": { # A block of content that can be served individually. # A detailed description of the neighborhood.
"content": { # Localized variant of a text in a particular language. # Content related to the topic.
"languageCode": "A String", # The text's BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
"text": "A String", # Localized string in the language corresponding to language_code below.
},
"referencedPlaces": [ # The list of resource names of the referenced places. This name can be used in other APIs that accept Place resource names.
"A String",
],
},
"disclosureText": { # Localized variant of a text in a particular language. # The AI disclosure message "Summarized with Gemini" (and its localized variants). This will be in the language specified in the request if available.
"languageCode": "A String", # The text's BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
"text": "A String", # Localized string in the language corresponding to language_code below.
},
"flagContentUri": "A String", # A link where users can flag a problem with the summary.
"overview": { # A block of content that can be served individually. # An overview summary of the neighborhood.
"content": { # Localized variant of a text in a particular language. # Content related to the topic.
"languageCode": "A String", # The text's BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
"text": "A String", # Localized string in the language corresponding to language_code below.
},
"referencedPlaces": [ # The list of resource names of the referenced places. This name can be used in other APIs that accept Place resource names.
"A String",
],
},
},
"outdoorSeating": True or False, # Place provides outdoor seating.
"parkingOptions": { # Information about parking options for the place. A parking lot could support more than one option at the same time. # Options of parking provided by the place.
"freeGarageParking": True or False, # Place offers free garage parking.
"freeParkingLot": True or False, # Place offers free parking lots.
"freeStreetParking": True or False, # Place offers free street parking.
"paidGarageParking": True or False, # Place offers paid garage parking.
"paidParkingLot": True or False, # Place offers paid parking lots.
"paidStreetParking": True or False, # Place offers paid street parking.
"valetParking": True or False, # Place offers valet parking.
},
"paymentOptions": { # Payment options the place accepts. # Payment options the place accepts. If a payment option data is not available, the payment option field will be unset.
"acceptsCashOnly": True or False, # Place accepts cash only as payment. Places with this attribute may still accept other payment methods.
"acceptsCreditCards": True or False, # Place accepts credit cards as payment.
"acceptsDebitCards": True or False, # Place accepts debit cards as payment.
"acceptsNfc": True or False, # Place accepts NFC payments.
},
"photos": [ # Information (including references) about photos of this place. A maximum of 10 photos can be returned.
{ # Information about a photo of a place.
"authorAttributions": [ # This photo's authors.
{ # Information about the author of the UGC data. Used in Photo, and Review.
"displayName": "A String", # Name of the author of the Photo or Review.
"photoUri": "A String", # Profile photo URI of the author of the Photo or Review.
"uri": "A String", # URI of the author of the Photo or Review.
},
],
"flagContentUri": "A String", # A link where users can flag a problem with the photo.
"googleMapsUri": "A String", # A link to show the photo on Google Maps.
"heightPx": 42, # The maximum available height, in pixels.
"name": "A String", # Identifier. A reference representing this place photo which may be used to look up this place photo again (also called the API "resource" name: `places/{place_id}/photos/{photo}`).
"widthPx": 42, # The maximum available width, in pixels.
},
],
"plusCode": { # Plus code (http://plus.codes) is a location reference with two formats: global code defining a 14mx14m (1/8000th of a degree) or smaller rectangle, and compound code, replacing the prefix with a reference location. # Plus code of the place location lat/long.
"compoundCode": "A String", # Place's compound code, such as "33GV+HQ, Ramberg, Norway", containing the suffix of the global code and replacing the prefix with a formatted name of a reference entity.
"globalCode": "A String", # Place's global (full) code, such as "9FWM33GV+HQ", representing an 1/8000 by 1/8000 degree area (~14 by 14 meters).
},
"postalAddress": { # Represents a postal address, such as for postal delivery or payments addresses. With a postal address, a postal service can deliver items to a premise, P.O. box, or similar. A postal address is not intended to model geographical locations like roads, towns, or mountains. In typical usage, an address would be created by user input or from importing existing data, depending on the type of process. Advice on address input or editing: - Use an internationalization-ready address widget such as https://github.com/google/libaddressinput. - Users should not be presented with UI elements for input or editing of fields outside countries where that field is used. For more guidance on how to use this schema, see: https://support.google.com/business/answer/6397478. # The address in postal address format.
"addressLines": [ # Unstructured address lines describing the lower levels of an address. Because values in `address_lines` do not have type information and may sometimes contain multiple values in a single field (for example, "Austin, TX"), it is important that the line order is clear. The order of address lines should be "envelope order" for the country or region of the address. In places where this can vary (for example, Japan), `address_language` is used to make it explicit (for example, "ja" for large-to-small ordering and "ja-Latn" or "en" for small-to-large). In this way, the most specific line of an address can be selected based on the language. The minimum permitted structural representation of an address consists of a `region_code` with all remaining information placed in the `address_lines`. It would be possible to format such an address very approximately without geocoding, but no semantic reasoning could be made about any of the address components until it was at least partially resolved. Creating an address only containing a `region_code` and `address_lines` and then geocoding is the recommended way to handle completely unstructured addresses (as opposed to guessing which parts of the address should be localities or administrative areas).
"A String",
],
"administrativeArea": "A String", # Optional. Highest administrative subdivision which is used for postal addresses of a country or region. For example, this can be a state, a province, an oblast, or a prefecture. For Spain, this is the province and not the autonomous community (for example, "Barcelona" and not "Catalonia"). Many countries don't use an administrative area in postal addresses. For example, in Switzerland, this should be left unpopulated.
"languageCode": "A String", # Optional. BCP-47 language code of the contents of this address (if known). This is often the UI language of the input form or is expected to match one of the languages used in the address' country/region, or their transliterated equivalents. This can affect formatting in certain countries, but is not critical to the correctness of the data and will never affect any validation or other non-formatting related operations. If this value is not known, it should be omitted (rather than specifying a possibly incorrect default). Examples: "zh-Hant", "ja", "ja-Latn", "en".
"locality": "A String", # Optional. Generally refers to the city or town portion of the address. Examples: US city, IT comune, UK post town. In regions of the world where localities are not well defined or do not fit into this structure well, leave `locality` empty and use `address_lines`.
"organization": "A String", # Optional. The name of the organization at the address.
"postalCode": "A String", # Optional. Postal code of the address. Not all countries use or require postal codes to be present, but where they are used, they may trigger additional validation with other parts of the address (for example, state or zip code validation in the United States).
"recipients": [ # Optional. The recipient at the address. This field may, under certain circumstances, contain multiline information. For example, it might contain "care of" information.
"A String",
],
"regionCode": "A String", # Required. CLDR region code of the country/region of the address. This is never inferred and it is up to the user to ensure the value is correct. See https://cldr.unicode.org/ and https://www.unicode.org/cldr/charts/30/supplemental/territory_information.html for details. Example: "CH" for Switzerland.
"revision": 42, # The schema revision of the `PostalAddress`. This must be set to 0, which is the latest revision. All new revisions **must** be backward compatible with old revisions.
"sortingCode": "A String", # Optional. Additional, country-specific, sorting code. This is not used in most regions. Where it is used, the value is either a string like "CEDEX", optionally followed by a number (for example, "CEDEX 7"), or just a number alone, representing the "sector code" (Jamaica), "delivery area indicator" (Malawi) or "post office indicator" (Côte d'Ivoire).
"sublocality": "A String", # Optional. Sublocality of the address. For example, this can be a neighborhood, borough, or district.
},
"priceLevel": "A String", # Price level of the place.
"priceRange": { # The price range associated with a Place. `end_price` could be unset, which indicates a range without upper bound (e.g. "More than $100"). # The price range associated with a Place.
"endPrice": { # Represents an amount of money with its currency type. # The high end of the price range (exclusive). Price should be lower than this amount.
"currencyCode": "A String", # The three-letter currency code defined in ISO 4217.
"nanos": 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
"units": "A String", # The whole units of the amount. For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar.
},
"startPrice": { # Represents an amount of money with its currency type. # The low end of the price range (inclusive). Price should be at or above this amount.
"currencyCode": "A String", # The three-letter currency code defined in ISO 4217.
"nanos": 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
"units": "A String", # The whole units of the amount. For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar.
},
},
"primaryType": "A String", # The primary type of the given result. This type must be one of the Places API supported types. For example, "restaurant", "cafe", "airport", etc. A place can only have a single primary type. For the complete list of possible values, see Table A and Table B at https://developers.google.com/maps/documentation/places/web-service/place-types. The primary type may be missing if the place's primary type is not a supported type. When a primary type is present, it is always one of the types in the `types` field.
"primaryTypeDisplayName": { # Localized variant of a text in a particular language. # The display name of the primary type, localized to the request language if applicable. For the complete list of possible values, see Table A and Table B at https://developers.google.com/maps/documentation/places/web-service/place-types. The primary type may be missing if the place's primary type is not a supported type.
"languageCode": "A String", # The text's BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
"text": "A String", # Localized string in the language corresponding to language_code below.
},
"pureServiceAreaBusiness": True or False, # Indicates whether the place is a pure service area business. Pure service area business is a business that visits or delivers to customers directly but does not serve customers at their business address. For example, businesses like cleaning services or plumbers. Those businesses may not have a physical address or location on Google Maps.
"rating": 3.14, # A rating between 1.0 and 5.0, based on user reviews of this place.
"regularOpeningHours": { # Information about business hour of the place. # The regular hours of operation. Note that if a place is always open (24 hours), the `close` field will not be set. Clients can rely on always open (24 hours) being represented as an [`open`](https://developers.google.com/maps/documentation/places/web-service/reference/rest/v1/places#Period) period containing [`day`](https://developers.google.com/maps/documentation/places/web-service/reference/rest/v1/places#Point) with value `0`, [`hour`](https://developers.google.com/maps/documentation/places/web-service/reference/rest/v1/places#Point) with value `0`, and [`minute`](https://developers.google.com/maps/documentation/places/web-service/reference/rest/v1/places#Point) with value `0`.
"nextCloseTime": "A String", # The next time the current opening hours period ends up to 7 days in the future. This field is only populated if the opening hours period is active at the time of serving the request.
"nextOpenTime": "A String", # The next time the current opening hours period starts up to 7 days in the future. This field is only populated if the opening hours period is not active at the time of serving the request.
"openNow": True or False, # Whether the opening hours period is currently active. For regular opening hours and current opening hours, this field means whether the place is open. For secondary opening hours and current secondary opening hours, this field means whether the secondary hours of this place is active.
"periods": [ # The periods that this place is open during the week. The periods are in chronological order, in the place-local timezone. An empty (but not absent) value indicates a place that is never open, e.g. because it is closed temporarily for renovations. The starting day of `periods` is NOT fixed and should not be assumed to be Sunday. The API determines the start day based on a variety of factors. For example, for a 24/7 business, the first period may begin on the day of the request. For other businesses, it might be the first day of the week that they are open. NOTE: The ordering of the `periods` array is independent of the ordering of the `weekday_descriptions` array. Do not assume they will begin on the same day.
{ # A period the place remains in open_now status.
"close": { # Status changing points. # The time that the place starts to be closed.
"date": { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # Date in the local timezone for the place.
"day": 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
"month": 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
"year": 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
},
"day": 42, # A day of the week, as an integer in the range 0-6. 0 is Sunday, 1 is Monday, etc.
"hour": 42, # The hour in 24 hour format. Ranges from 0 to 23.
"minute": 42, # The minute. Ranges from 0 to 59.
"truncated": True or False, # Whether or not this endpoint was truncated. Truncation occurs when the real hours are outside the times we are willing to return hours between, so we truncate the hours back to these boundaries. This ensures that at most 24 * 7 hours from midnight of the day of the request are returned.
},
"open": { # Status changing points. # The time that the place starts to be open.
"date": { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # Date in the local timezone for the place.
"day": 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
"month": 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
"year": 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
},
"day": 42, # A day of the week, as an integer in the range 0-6. 0 is Sunday, 1 is Monday, etc.
"hour": 42, # The hour in 24 hour format. Ranges from 0 to 23.
"minute": 42, # The minute. Ranges from 0 to 59.
"truncated": True or False, # Whether or not this endpoint was truncated. Truncation occurs when the real hours are outside the times we are willing to return hours between, so we truncate the hours back to these boundaries. This ensures that at most 24 * 7 hours from midnight of the day of the request are returned.
},
},
],
"secondaryHoursType": "A String", # A type string used to identify the type of secondary hours.
"specialDays": [ # Structured information for special days that fall within the period that the returned opening hours cover. Special days are days that could impact the business hours of a place, e.g. Christmas day. Set for current_opening_hours and current_secondary_opening_hours if there are exceptional hours.
{ # Structured information for special days that fall within the period that the returned opening hours cover. Special days are days that could impact the business hours of a place, e.g. Christmas day.
"date": { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # The date of this special day.
"day": 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
"month": 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
"year": 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
},
},
],
"weekdayDescriptions": [ # Localized strings describing the opening hours of this place, one string for each day of the week. NOTE: The order of the days and the start of the week is determined by the locale (language and region). The ordering of the `periods` array is independent of the ordering of the `weekday_descriptions` array. Do not assume they will begin on the same day. Will be empty if the hours are unknown or could not be converted to localized text. Example: "Sun: 18:00–06:00"
"A String",
],
},
"regularSecondaryOpeningHours": [ # Contains an array of entries for information about regular secondary hours of a business. Secondary hours are different from a business's main hours. For example, a restaurant can specify drive through hours or delivery hours as its secondary hours. This field populates the type subfield, which draws from a predefined list of opening hours types (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on the types of the place.
{ # Information about business hour of the place.
"nextCloseTime": "A String", # The next time the current opening hours period ends up to 7 days in the future. This field is only populated if the opening hours period is active at the time of serving the request.
"nextOpenTime": "A String", # The next time the current opening hours period starts up to 7 days in the future. This field is only populated if the opening hours period is not active at the time of serving the request.
"openNow": True or False, # Whether the opening hours period is currently active. For regular opening hours and current opening hours, this field means whether the place is open. For secondary opening hours and current secondary opening hours, this field means whether the secondary hours of this place is active.
"periods": [ # The periods that this place is open during the week. The periods are in chronological order, in the place-local timezone. An empty (but not absent) value indicates a place that is never open, e.g. because it is closed temporarily for renovations. The starting day of `periods` is NOT fixed and should not be assumed to be Sunday. The API determines the start day based on a variety of factors. For example, for a 24/7 business, the first period may begin on the day of the request. For other businesses, it might be the first day of the week that they are open. NOTE: The ordering of the `periods` array is independent of the ordering of the `weekday_descriptions` array. Do not assume they will begin on the same day.
{ # A period the place remains in open_now status.
"close": { # Status changing points. # The time that the place starts to be closed.
"date": { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # Date in the local timezone for the place.
"day": 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
"month": 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
"year": 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
},
"day": 42, # A day of the week, as an integer in the range 0-6. 0 is Sunday, 1 is Monday, etc.
"hour": 42, # The hour in 24 hour format. Ranges from 0 to 23.
"minute": 42, # The minute. Ranges from 0 to 59.
"truncated": True or False, # Whether or not this endpoint was truncated. Truncation occurs when the real hours are outside the times we are willing to return hours between, so we truncate the hours back to these boundaries. This ensures that at most 24 * 7 hours from midnight of the day of the request are returned.
},
"open": { # Status changing points. # The time that the place starts to be open.
"date": { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # Date in the local timezone for the place.
"day": 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
"month": 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
"year": 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
},
"day": 42, # A day of the week, as an integer in the range 0-6. 0 is Sunday, 1 is Monday, etc.
"hour": 42, # The hour in 24 hour format. Ranges from 0 to 23.
"minute": 42, # The minute. Ranges from 0 to 59.
"truncated": True or False, # Whether or not this endpoint was truncated. Truncation occurs when the real hours are outside the times we are willing to return hours between, so we truncate the hours back to these boundaries. This ensures that at most 24 * 7 hours from midnight of the day of the request are returned.
},
},
],
"secondaryHoursType": "A String", # A type string used to identify the type of secondary hours.
"specialDays": [ # Structured information for special days that fall within the period that the returned opening hours cover. Special days are days that could impact the business hours of a place, e.g. Christmas day. Set for current_opening_hours and current_secondary_opening_hours if there are exceptional hours.
{ # Structured information for special days that fall within the period that the returned opening hours cover. Special days are days that could impact the business hours of a place, e.g. Christmas day.
"date": { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # The date of this special day.
"day": 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
"month": 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
"year": 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
},
},
],
"weekdayDescriptions": [ # Localized strings describing the opening hours of this place, one string for each day of the week. NOTE: The order of the days and the start of the week is determined by the locale (language and region). The ordering of the `periods` array is independent of the ordering of the `weekday_descriptions` array. Do not assume they will begin on the same day. Will be empty if the hours are unknown or could not be converted to localized text. Example: "Sun: 18:00–06:00"
"A String",
],
},
],
"reservable": True or False, # Specifies if the place supports reservations.
"restroom": True or False, # Place has restroom.
"reviewSummary": { # AI-generated summary of the place using user reviews. # AI-generated summary of the place using user reviews.
"disclosureText": { # Localized variant of a text in a particular language. # The AI disclosure message "Summarized with Gemini" (and its localized variants). This will be in the language specified in the request if available.
"languageCode": "A String", # The text's BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
"text": "A String", # Localized string in the language corresponding to language_code below.
},
"flagContentUri": "A String", # A link where users can flag a problem with the summary.
"reviewsUri": "A String", # A link to show reviews of this place on Google Maps.
"text": { # Localized variant of a text in a particular language. # The summary of user reviews.
"languageCode": "A String", # The text's BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
"text": "A String", # Localized string in the language corresponding to language_code below.
},
},
"reviews": [ # List of reviews about this place, sorted by relevance. A maximum of 5 reviews can be returned.
{ # Information about a review of a place.
"authorAttribution": { # Information about the author of the UGC data. Used in Photo, and Review. # This review's author.
"displayName": "A String", # Name of the author of the Photo or Review.
"photoUri": "A String", # Profile photo URI of the author of the Photo or Review.
"uri": "A String", # URI of the author of the Photo or Review.
},
"flagContentUri": "A String", # A link where users can flag a problem with the review.
"googleMapsUri": "A String", # A link to show the review on Google Maps.
"name": "A String", # A reference representing this place review which may be used to look up this place review again (also called the API "resource" name: `places/{place_id}/reviews/{review}`).
"originalText": { # Localized variant of a text in a particular language. # The review text in its original language.
"languageCode": "A String", # The text's BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
"text": "A String", # Localized string in the language corresponding to language_code below.
},
"publishTime": "A String", # Timestamp for the review.
"rating": 3.14, # A number between 1.0 and 5.0, also called the number of stars.
"relativePublishTimeDescription": "A String", # A string of formatted recent time, expressing the review time relative to the current time in a form appropriate for the language and country.
"text": { # Localized variant of a text in a particular language. # The localized text of the review.
"languageCode": "A String", # The text's BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
"text": "A String", # Localized string in the language corresponding to language_code below.
},
"visitDate": { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # The date when the author visited the place. This is trucated to the year and month of the visit.
"day": 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
"month": 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
"year": 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
},
},
],
"servesBeer": True or False, # Specifies if the place serves beer.
"servesBreakfast": True or False, # Specifies if the place serves breakfast.
"servesBrunch": True or False, # Specifies if the place serves brunch.
"servesCocktails": True or False, # Place serves cocktails.
"servesCoffee": True or False, # Place serves coffee.
"servesDessert": True or False, # Place serves dessert.
"servesDinner": True or False, # Specifies if the place serves dinner.
"servesLunch": True or False, # Specifies if the place serves lunch.
"servesVegetarianFood": True or False, # Specifies if the place serves vegetarian food.
"servesWine": True or False, # Specifies if the place serves wine.
"shortFormattedAddress": "A String", # A short, human-readable address for this place.
"subDestinations": [ # A list of sub-destinations related to the place.
{ # Sub-destinations are specific places associated with a main place. These provide more specific destinations for users who are searching within a large or complex place, like an airport, national park, university, or stadium. For example, sub-destinations at an airport might include associated terminals and parking lots. Sub-destinations return the place ID and place resource name, which can be used in subsequent Place Details (New) requests to fetch richer details, including the sub-destination's display name and location.
"id": "A String", # The place id of the sub-destination.
"name": "A String", # The resource name of the sub-destination.
},
],
"takeout": True or False, # Specifies if the business supports takeout.
"timeZone": { # Represents a time zone from the [IANA Time Zone Database](https://www.iana.org/time-zones). # IANA Time Zone Database time zone. For example "America/New_York".
"id": "A String", # IANA Time Zone Database time zone. For example "America/New_York".
"version": "A String", # Optional. IANA Time Zone Database version number. For example "2019a".
},
"types": [ # A set of type tags for this result. For example, "political" and "locality". For the complete list of possible values, see Table A and Table B at https://developers.google.com/maps/documentation/places/web-service/place-types
"A String",
],
"userRatingCount": 42, # The total number of reviews (with or without text) for this place.
"utcOffsetMinutes": 42, # Number of minutes this place's timezone is currently offset from UTC. This is expressed in minutes to support timezones that are offset by fractions of an hour, e.g. X hours and 15 minutes.
"viewport": { # A latitude-longitude viewport, represented as two diagonally opposite `low` and `high` points. A viewport is considered a closed region, i.e. it includes its boundary. The latitude bounds must range between -90 to 90 degrees inclusive, and the longitude bounds must range between -180 to 180 degrees inclusive. Various cases include: - If `low` = `high`, the viewport consists of that single point. - If `low.longitude` > `high.longitude`, the longitude range is inverted (the viewport crosses the 180 degree longitude line). - If `low.longitude` = -180 degrees and `high.longitude` = 180 degrees, the viewport includes all longitudes. - If `low.longitude` = 180 degrees and `high.longitude` = -180 degrees, the longitude range is empty. - If `low.latitude` > `high.latitude`, the latitude range is empty. Both `low` and `high` must be populated, and the represented box cannot be empty (as specified by the definitions above). An empty viewport will result in an error. For example, this viewport fully encloses New York City: { "low": { "latitude": 40.477398, "longitude": -74.259087 }, "high": { "latitude": 40.91618, "longitude": -73.70018 } } # A viewport suitable for displaying the place on an average-sized map. This viewport should not be used as the physical boundary or the service area of the business.
"high": { # An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges. # Required. The high point of the viewport.
"latitude": 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
"longitude": 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
},
"low": { # An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges. # Required. The low point of the viewport.
"latitude": 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
"longitude": 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
},
},
"websiteUri": "A String", # The authoritative website for this place, e.g. a business' homepage. Note that for places that are part of a chain (e.g. an IKEA store), this will usually be the website for the individual store, not the overall chain.
},
],
"routingSummaries": [ # A list of routing summaries where each entry associates to the corresponding place in the same index in the `places` field. If the routing summary is not available for one of the places, it will contain an empty entry. This list will have as many entries as the list of places if requested.
{ # The duration and distance from the routing origin to a place in the response, and a second leg from that place to the destination, if requested. **Note:** Adding `routingSummaries` in the field mask without also including either the `routingParameters.origin` parameter or the `searchAlongRouteParameters.polyline.encodedPolyline` parameter in the request causes an error.
"directionsUri": "A String", # A link to show directions on Google Maps using the waypoints from the given routing summary. The route generated by this link is not guaranteed to be the same as the route used to generate the routing summary. The link uses information provided in the request, from fields including `routingParameters` and `searchAlongRouteParameters` when applicable, to generate the directions link.
"legs": [ # The legs of the trip. When you calculate travel duration and distance from a set origin, `legs` contains a single leg containing the duration and distance from the origin to the destination. When you do a search along route, `legs` contains two legs: one from the origin to place, and one from the place to the destination.
{ # A leg is a single portion of a journey from one location to another.
"distanceMeters": 42, # The distance of this leg of the trip.
"duration": "A String", # The time it takes to complete this leg of the trip.
},
],
},
],
"searchUri": "A String", # A link allows the user to search with the same text query as specified in the request on Google Maps.
}</pre>
</div>
<div class="method">
<code class="details" id="searchText_next">searchText_next()</code>
<pre>Retrieves the next page of results.
Args:
previous_request: The request for the previous page. (required)
previous_response: The response from the request for the previous page. (required)
Returns:
A request object that you can call 'execute()' on to request the next
page. Returns None if there are no more items in the collection.
</pre>
</div>
</body></html>
|