File: places_v1.Text.html

package info (click to toggle)
python-googleapi 2.180.0-1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 527,124 kB
  • sloc: python: 11,076; javascript: 249; sh: 114; makefile: 59
file content (424 lines) | stat: -rw-r--r-- 52,187 bytes parent folder | download | duplicates (2)
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
<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.Text.html">Text</a></h1>
<h2>Instance Methods</h2>
<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="#search">search(body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Text query based place search.</p>
<h3>Method Details</h3>
<div class="method">
    <code class="details" id="close">close()</code>
  <pre>Close httplib2 connections.</pre>
</div>

<div class="method">
    <code class="details" id="search">search(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.
  &quot;includedType&quot;: &quot;A String&quot;, # The requested place type. Full list of types supported: https://developers.google.com/places/supported_types. Only support one included type.
  &quot;languageCode&quot;: &quot;A String&quot;, # 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.
  &quot;locationBias&quot;: { # 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.
    &quot;circle&quot;: { # Circle with a LatLng as center and radius. # A circle defined by center point and radius.
      &quot;center&quot;: { # 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].
        &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
        &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
      },
      &quot;radius&quot;: 3.14, # Required. Radius measured in meters. The radius must be within [0.0, 50000.0].
    },
    &quot;rectangle&quot;: { # 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` &gt; `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` &gt; `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: { &quot;low&quot;: { &quot;latitude&quot;: 40.477398, &quot;longitude&quot;: -74.259087 }, &quot;high&quot;: { &quot;latitude&quot;: 40.91618, &quot;longitude&quot;: -73.70018 } } # A rectangle box defined by northeast and southwest corner.
      &quot;high&quot;: { # 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.
        &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
        &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
      },
      &quot;low&quot;: { # 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.
        &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
        &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
      },
    },
  },
  &quot;locationRestriction&quot;: { # 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.
    &quot;rectangle&quot;: { # 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` &gt; `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` &gt; `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: { &quot;low&quot;: { &quot;latitude&quot;: 40.477398, &quot;longitude&quot;: -74.259087 }, &quot;high&quot;: { &quot;latitude&quot;: 40.91618, &quot;longitude&quot;: -73.70018 } } # A rectangle box defined by northeast and southwest corner.
      &quot;high&quot;: { # 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.
        &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
        &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
      },
      &quot;low&quot;: { # 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.
        &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
        &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
      },
    },
  },
  &quot;maxResultCount&quot;: 42, # Maximum number of results to return. It must be between 1 and 20, 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.
  &quot;minRating&quot;: 3.14, # Filter out results whose average user rating is strictly less than this limit. A valid value must be an float between 0 and 5 (inclusively) at a 0.5 cadence i.e. [0, 0.5, 1.0, ... , 5.0] inclusively. This is to keep parity with LocalRefinement_UserRating. 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.
  &quot;openNow&quot;: True or False, # Used to restrict the search to places that are open at a specific time. open_now marks if a business is currently open.
  &quot;priceLevels&quot;: [ # 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.
    &quot;A String&quot;,
  ],
  &quot;rankPreference&quot;: &quot;A String&quot;, # How results will be ranked in the response.
  &quot;regionCode&quot;: &quot;A String&quot;, # 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 http://www.unicode.org/reports/tr35/#unicode_region_subtag. Note that 3-digit region codes are not currently supported.
  &quot;strictTypeFiltering&quot;: 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.
  &quot;textQuery&quot;: &quot;A String&quot;, # 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.
  &quot;places&quot;: [ # A list of places that meet the user&#x27;s text search criteria.
    { # All the information representing a Place.
      &quot;addressComponents&quot;: [ # Output only. Repeated components for each locality level.
        { # The structured components that form the formatted address, if this information is available.
          &quot;languageCode&quot;: &quot;A String&quot;, # Output only. The language used to format this components, in CLDR notation.
          &quot;longText&quot;: &quot;A String&quot;, # Output only. 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 &quot;Australia&quot;.
          &quot;shortText&quot;: &quot;A String&quot;, # Output only. 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 &quot;AU&quot;.
          &quot;types&quot;: [ # Output only. An array indicating the type(s) of the address component.
            &quot;A String&quot;,
          ],
        },
      ],
      &quot;adrFormatAddress&quot;: &quot;A String&quot;, # Output only. The place&#x27;s address in adr microformat: http://microformats.org/wiki/adr.
      &quot;attributions&quot;: [ # Output only. A set of data provider that must be shown with this result.
        { # Information about data providers of this place.
          &quot;provider&quot;: &quot;A String&quot;, # Output only. Name of the Place&#x27;s data provider.
          &quot;providerUri&quot;: &quot;A String&quot;, # Output only. URI to the Place&#x27;s data provider.
        },
      ],
      &quot;businessStatus&quot;: &quot;A String&quot;, # Output only. The business status for the place.
      &quot;curbsidePickup&quot;: True or False, # Output only. Specifies if the business supports curbside pickup.
      &quot;currentOpeningHours&quot;: { # Information about business hour of the place. # Output only. 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.
        &quot;openNow&quot;: True or False, # Output only. Is this place open right now? Always present unless we lack time-of-day or timezone data for these opening hours.
        &quot;periods&quot;: [ # Output only. The periods that this place is open during the week. The periods are in chronological order, starting with Sunday 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.
          { # A period the place remains in open_now status.
            &quot;close&quot;: { # Status changing points. # Output only. The time that the place starts to be closed.
              &quot;date&quot;: { # 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 # Output only. Date in the local timezone for the place.
                &quot;day&quot;: 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&#x27;t significant.
                &quot;month&quot;: 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
                &quot;year&quot;: 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
              },
              &quot;day&quot;: 42, # Output only. A day of the week, as an integer in the range 0-6. 0 is Sunday, 1 is Monday, etc.
              &quot;hour&quot;: 42, # Output only. The hour in 2 digits. Ranges from 00 to 23.
              &quot;minute&quot;: 42, # Output only. The minute in 2 digits. Ranges from 00 to 59.
              &quot;truncated&quot;: True or False, # Output only. 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.
            },
            &quot;open&quot;: { # Status changing points. # Output only. The time that the place starts to be open.
              &quot;date&quot;: { # 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 # Output only. Date in the local timezone for the place.
                &quot;day&quot;: 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&#x27;t significant.
                &quot;month&quot;: 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
                &quot;year&quot;: 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
              },
              &quot;day&quot;: 42, # Output only. A day of the week, as an integer in the range 0-6. 0 is Sunday, 1 is Monday, etc.
              &quot;hour&quot;: 42, # Output only. The hour in 2 digits. Ranges from 00 to 23.
              &quot;minute&quot;: 42, # Output only. The minute in 2 digits. Ranges from 00 to 59.
              &quot;truncated&quot;: True or False, # Output only. 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.
            },
          },
        ],
        &quot;secondaryHoursType&quot;: &quot;A String&quot;, # Output only. A type string used to identify the type of secondary hours.
        &quot;specialDays&quot;: [ # Output only. 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.
            &quot;date&quot;: { # 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 # Output only. The date of this special day.
              &quot;day&quot;: 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&#x27;t significant.
              &quot;month&quot;: 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
              &quot;year&quot;: 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
            },
          },
        ],
        &quot;weekdayDescriptions&quot;: [ # Output only. Localized strings describing the opening hours of this place, one string for each day of the week. Will be empty if the hours are unknown or could not be converted to localized text. Example: &quot;Sun: 18:00–06:00&quot;
          &quot;A String&quot;,
        ],
      },
      &quot;currentSecondaryOpeningHours&quot;: [ # Output only. 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&#x27;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.
          &quot;openNow&quot;: True or False, # Output only. Is this place open right now? Always present unless we lack time-of-day or timezone data for these opening hours.
          &quot;periods&quot;: [ # Output only. The periods that this place is open during the week. The periods are in chronological order, starting with Sunday 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.
            { # A period the place remains in open_now status.
              &quot;close&quot;: { # Status changing points. # Output only. The time that the place starts to be closed.
                &quot;date&quot;: { # 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 # Output only. Date in the local timezone for the place.
                  &quot;day&quot;: 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&#x27;t significant.
                  &quot;month&quot;: 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
                  &quot;year&quot;: 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
                },
                &quot;day&quot;: 42, # Output only. A day of the week, as an integer in the range 0-6. 0 is Sunday, 1 is Monday, etc.
                &quot;hour&quot;: 42, # Output only. The hour in 2 digits. Ranges from 00 to 23.
                &quot;minute&quot;: 42, # Output only. The minute in 2 digits. Ranges from 00 to 59.
                &quot;truncated&quot;: True or False, # Output only. 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.
              },
              &quot;open&quot;: { # Status changing points. # Output only. The time that the place starts to be open.
                &quot;date&quot;: { # 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 # Output only. Date in the local timezone for the place.
                  &quot;day&quot;: 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&#x27;t significant.
                  &quot;month&quot;: 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
                  &quot;year&quot;: 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
                },
                &quot;day&quot;: 42, # Output only. A day of the week, as an integer in the range 0-6. 0 is Sunday, 1 is Monday, etc.
                &quot;hour&quot;: 42, # Output only. The hour in 2 digits. Ranges from 00 to 23.
                &quot;minute&quot;: 42, # Output only. The minute in 2 digits. Ranges from 00 to 59.
                &quot;truncated&quot;: True or False, # Output only. 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.
              },
            },
          ],
          &quot;secondaryHoursType&quot;: &quot;A String&quot;, # Output only. A type string used to identify the type of secondary hours.
          &quot;specialDays&quot;: [ # Output only. 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.
              &quot;date&quot;: { # 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 # Output only. The date of this special day.
                &quot;day&quot;: 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&#x27;t significant.
                &quot;month&quot;: 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
                &quot;year&quot;: 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
              },
            },
          ],
          &quot;weekdayDescriptions&quot;: [ # Output only. Localized strings describing the opening hours of this place, one string for each day of the week. Will be empty if the hours are unknown or could not be converted to localized text. Example: &quot;Sun: 18:00–06:00&quot;
            &quot;A String&quot;,
          ],
        },
      ],
      &quot;delivery&quot;: True or False, # Output only. Specifies if the business supports delivery.
      &quot;dineIn&quot;: True or False, # Output only. Specifies if the business supports indoor or outdoor seating options.
      &quot;displayName&quot;: { # Localized variant of a text in a particular language. # Output only. The localized name of the place, suitable as a short human-readable description. For example, &quot;Google Sydney&quot;, &quot;Starbucks&quot;, &quot;Pyrmont&quot;, etc.
        &quot;languageCode&quot;: &quot;A String&quot;, # The text&#x27;s BCP-47 language code, such as &quot;en-US&quot; or &quot;sr-Latn&quot;. For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
        &quot;text&quot;: &quot;A String&quot;, # Localized string in the language corresponding to `language_code&#x27; below.
      },
      &quot;editorialSummary&quot;: { # Localized variant of a text in a particular language. # Output only. 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.
        &quot;languageCode&quot;: &quot;A String&quot;, # The text&#x27;s BCP-47 language code, such as &quot;en-US&quot; or &quot;sr-Latn&quot;. For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
        &quot;text&quot;: &quot;A String&quot;, # Localized string in the language corresponding to `language_code&#x27; below.
      },
      &quot;formattedAddress&quot;: &quot;A String&quot;, # Output only. A full, human-readable address for this place.
      &quot;googleMapsUri&quot;: &quot;A String&quot;, # Output only. A URL providing more information about this place.
      &quot;iconBackgroundColor&quot;: &quot;A String&quot;, # Output only. Background color for icon_mask in hex format, e.g. #909CE1.
      &quot;iconMaskBaseUri&quot;: &quot;A String&quot;, # Output only. A truncated URL to an v2 icon mask. User can access different icon type by appending type suffix to the end (eg, &quot;.svg&quot; or &quot;.png&quot;).
      &quot;id&quot;: &quot;A String&quot;, # Output only. The unique identifier of a place.
      &quot;internationalPhoneNumber&quot;: &quot;A String&quot;, # Output only. A human-readable phone number for the place, in international format.
      &quot;location&quot;: { # 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. # Output only. The position of this place.
        &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
        &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
      },
      &quot;name&quot;: &quot;A String&quot;, # Output only. An ID representing this place which may be used to look up this place again (a.k.a. the API &quot;resource&quot; name: places/).
      &quot;nationalPhoneNumber&quot;: &quot;A String&quot;, # Output only. A human-readable phone number for the place, in national format.
      &quot;openingHours&quot;: { # Information about business hour of the place. # Output only. The regular hours of operation.
        &quot;openNow&quot;: True or False, # Output only. Is this place open right now? Always present unless we lack time-of-day or timezone data for these opening hours.
        &quot;periods&quot;: [ # Output only. The periods that this place is open during the week. The periods are in chronological order, starting with Sunday 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.
          { # A period the place remains in open_now status.
            &quot;close&quot;: { # Status changing points. # Output only. The time that the place starts to be closed.
              &quot;date&quot;: { # 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 # Output only. Date in the local timezone for the place.
                &quot;day&quot;: 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&#x27;t significant.
                &quot;month&quot;: 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
                &quot;year&quot;: 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
              },
              &quot;day&quot;: 42, # Output only. A day of the week, as an integer in the range 0-6. 0 is Sunday, 1 is Monday, etc.
              &quot;hour&quot;: 42, # Output only. The hour in 2 digits. Ranges from 00 to 23.
              &quot;minute&quot;: 42, # Output only. The minute in 2 digits. Ranges from 00 to 59.
              &quot;truncated&quot;: True or False, # Output only. 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.
            },
            &quot;open&quot;: { # Status changing points. # Output only. The time that the place starts to be open.
              &quot;date&quot;: { # 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 # Output only. Date in the local timezone for the place.
                &quot;day&quot;: 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&#x27;t significant.
                &quot;month&quot;: 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
                &quot;year&quot;: 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
              },
              &quot;day&quot;: 42, # Output only. A day of the week, as an integer in the range 0-6. 0 is Sunday, 1 is Monday, etc.
              &quot;hour&quot;: 42, # Output only. The hour in 2 digits. Ranges from 00 to 23.
              &quot;minute&quot;: 42, # Output only. The minute in 2 digits. Ranges from 00 to 59.
              &quot;truncated&quot;: True or False, # Output only. 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.
            },
          },
        ],
        &quot;secondaryHoursType&quot;: &quot;A String&quot;, # Output only. A type string used to identify the type of secondary hours.
        &quot;specialDays&quot;: [ # Output only. 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.
            &quot;date&quot;: { # 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 # Output only. The date of this special day.
              &quot;day&quot;: 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&#x27;t significant.
              &quot;month&quot;: 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
              &quot;year&quot;: 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
            },
          },
        ],
        &quot;weekdayDescriptions&quot;: [ # Output only. Localized strings describing the opening hours of this place, one string for each day of the week. Will be empty if the hours are unknown or could not be converted to localized text. Example: &quot;Sun: 18:00–06:00&quot;
          &quot;A String&quot;,
        ],
      },
      &quot;plusCode&quot;: { # 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. # Output only. Plus code of the place location lat/long.
        &quot;compoundCode&quot;: &quot;A String&quot;, # Output only. Place&#x27;s compound code, such as &quot;33GV+HQ, Ramberg, Norway&quot;, containing the suffix of the global code and replacing the prefix with a formatted name of a reference entity.
        &quot;globalCode&quot;: &quot;A String&quot;, # Output only. Place&#x27;s global (full) code, such as &quot;9FWM33GV+HQ&quot;, representing an 1/8000 by 1/8000 degree area (~14 by 14 meters).
      },
      &quot;priceLevel&quot;: &quot;A String&quot;, # Output only. Price level of the place.
      &quot;rating&quot;: 3.14, # Output only. A rating between 1.0 and 5.0, based on user reviews of this place.
      &quot;reservable&quot;: True or False, # Output only. Specifies if the place supports reservations.
      &quot;reviews&quot;: [ # Output only. List of reviews about this place.
        { # Information about a review of a place.
          &quot;authorAttribution&quot;: { # Information about the author of the UGC data. Used in Photo, and Review. # Output only. This review&#x27;s author.
            &quot;displayName&quot;: &quot;A String&quot;, # Output only. Name of the author of the Photo or Review.
            &quot;photoUri&quot;: &quot;A String&quot;, # Output only. Profile photo URI of the author of the Photo or Review.
            &quot;uri&quot;: &quot;A String&quot;, # Output only. URI of the author of the Photo or Review.
          },
          &quot;originalText&quot;: { # Localized variant of a text in a particular language. # Output only. The review text in its original language.
            &quot;languageCode&quot;: &quot;A String&quot;, # The text&#x27;s BCP-47 language code, such as &quot;en-US&quot; or &quot;sr-Latn&quot;. For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
            &quot;text&quot;: &quot;A String&quot;, # Localized string in the language corresponding to `language_code&#x27; below.
          },
          &quot;publishTime&quot;: &quot;A String&quot;, # Output only. Timestamp for the review.
          &quot;rating&quot;: 3.14, # Output only. A number between 1.0 and 5.0, a.k.a. the number of stars.
          &quot;relativePublishTimeDescription&quot;: &quot;A String&quot;, # Output only. A string of formatted recent time, expressing the review time relative to the current time in a form appropriate for the language and country.
          &quot;text&quot;: { # Localized variant of a text in a particular language. # Output only. The localized text of the review.
            &quot;languageCode&quot;: &quot;A String&quot;, # The text&#x27;s BCP-47 language code, such as &quot;en-US&quot; or &quot;sr-Latn&quot;. For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
            &quot;text&quot;: &quot;A String&quot;, # Localized string in the language corresponding to `language_code&#x27; below.
          },
        },
      ],
      &quot;secondaryOpeningHours&quot;: [ # Output only. Contains an array of entries for information about regular secondary hours of a business. Secondary hours are different from a business&#x27;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.
          &quot;openNow&quot;: True or False, # Output only. Is this place open right now? Always present unless we lack time-of-day or timezone data for these opening hours.
          &quot;periods&quot;: [ # Output only. The periods that this place is open during the week. The periods are in chronological order, starting with Sunday 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.
            { # A period the place remains in open_now status.
              &quot;close&quot;: { # Status changing points. # Output only. The time that the place starts to be closed.
                &quot;date&quot;: { # 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 # Output only. Date in the local timezone for the place.
                  &quot;day&quot;: 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&#x27;t significant.
                  &quot;month&quot;: 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
                  &quot;year&quot;: 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
                },
                &quot;day&quot;: 42, # Output only. A day of the week, as an integer in the range 0-6. 0 is Sunday, 1 is Monday, etc.
                &quot;hour&quot;: 42, # Output only. The hour in 2 digits. Ranges from 00 to 23.
                &quot;minute&quot;: 42, # Output only. The minute in 2 digits. Ranges from 00 to 59.
                &quot;truncated&quot;: True or False, # Output only. 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.
              },
              &quot;open&quot;: { # Status changing points. # Output only. The time that the place starts to be open.
                &quot;date&quot;: { # 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 # Output only. Date in the local timezone for the place.
                  &quot;day&quot;: 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&#x27;t significant.
                  &quot;month&quot;: 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
                  &quot;year&quot;: 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
                },
                &quot;day&quot;: 42, # Output only. A day of the week, as an integer in the range 0-6. 0 is Sunday, 1 is Monday, etc.
                &quot;hour&quot;: 42, # Output only. The hour in 2 digits. Ranges from 00 to 23.
                &quot;minute&quot;: 42, # Output only. The minute in 2 digits. Ranges from 00 to 59.
                &quot;truncated&quot;: True or False, # Output only. 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.
              },
            },
          ],
          &quot;secondaryHoursType&quot;: &quot;A String&quot;, # Output only. A type string used to identify the type of secondary hours.
          &quot;specialDays&quot;: [ # Output only. 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.
              &quot;date&quot;: { # 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 # Output only. The date of this special day.
                &quot;day&quot;: 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&#x27;t significant.
                &quot;month&quot;: 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
                &quot;year&quot;: 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
              },
            },
          ],
          &quot;weekdayDescriptions&quot;: [ # Output only. Localized strings describing the opening hours of this place, one string for each day of the week. Will be empty if the hours are unknown or could not be converted to localized text. Example: &quot;Sun: 18:00–06:00&quot;
            &quot;A String&quot;,
          ],
        },
      ],
      &quot;servesBeer&quot;: True or False, # Output only. Specifies if the place serves beer.
      &quot;servesBreakfast&quot;: True or False, # Output only. Specifies if the place serves breakfast.
      &quot;servesBrunch&quot;: True or False, # Output only. Specifies if the place serves brunch.
      &quot;servesDinner&quot;: True or False, # Output only. Specifies if the place serves dinner.
      &quot;servesLunch&quot;: True or False, # Output only. Specifies if the place serves lunch.
      &quot;servesVegetarianFood&quot;: True or False, # Output only. Specifies if the place serves vegetarian food.
      &quot;servesWine&quot;: True or False, # Output only. Specifies if the place serves wine.
      &quot;takeout&quot;: True or False, # Output only. Specifies if the business supports takeout.
      &quot;types&quot;: [ # Output only. A set of type tags for this result. For example, &quot;political&quot; and &quot;locality&quot;.
        &quot;A String&quot;,
      ],
      &quot;userRatingCount&quot;: 42, # Output only. The total number of reviews (with or without text) for this place.
      &quot;utcOffsetMinutes&quot;: 42, # Output only. Number of minutes this place&#x27;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.
      &quot;viewport&quot;: { # 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` &gt; `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` &gt; `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: { &quot;low&quot;: { &quot;latitude&quot;: 40.477398, &quot;longitude&quot;: -74.259087 }, &quot;high&quot;: { &quot;latitude&quot;: 40.91618, &quot;longitude&quot;: -73.70018 } } # Output only. A viewport suitable for displaying the place on an average-sized map.
        &quot;high&quot;: { # 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.
          &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
          &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
        },
        &quot;low&quot;: { # 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.
          &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
          &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
        },
      },
      &quot;websiteUri&quot;: &quot;A String&quot;, # Output only. The authoritative website for this place, e.g. a business&#x27; 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.
      &quot;wheelchairAccessibleEntrance&quot;: True or False, # Output only. [Deprecated!] Specifies if the place has an entrance that is wheelchair-accessible.
    },
  ],
}</pre>
</div>

</body></html>