1{
2 "auth": {
3 "oauth2": {
4 "scopes": {
5 "https://www.googleapis.com/auth/cloud-platform": {
6 "description": "See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account."
7 },
8 "https://www.googleapis.com/auth/maps-platform.places": {
9 "description": "Private Service: https://www.googleapis.com/auth/maps-platform.places"
10 },
11 "https://www.googleapis.com/auth/maps-platform.places.autocomplete": {
12 "description": "Private Service: https://www.googleapis.com/auth/maps-platform.places.autocomplete"
13 },
14 "https://www.googleapis.com/auth/maps-platform.places.details": {
15 "description": "Private Service: https://www.googleapis.com/auth/maps-platform.places.details"
16 },
17 "https://www.googleapis.com/auth/maps-platform.places.nearbysearch": {
18 "description": "Private Service: https://www.googleapis.com/auth/maps-platform.places.nearbysearch"
19 },
20 "https://www.googleapis.com/auth/maps-platform.places.textsearch": {
21 "description": "Private Service: https://www.googleapis.com/auth/maps-platform.places.textsearch"
22 }
23 }
24 }
25 },
26 "basePath": "",
27 "baseUrl": "https://places.googleapis.com/",
28 "batchPath": "batch",
29 "canonicalName": "Maps Places",
30 "description": "",
31 "discoveryVersion": "v1",
32 "documentationLink": "https://mapsplatform.google.com/maps-products/#places-section",
33 "fullyEncodeReservedExpansion": true,
34 "icons": {
35 "x16": "http://www.google.com/images/icons/product/search-16.gif",
36 "x32": "http://www.google.com/images/icons/product/search-32.gif"
37 },
38 "id": "places:v1",
39 "kind": "discovery#restDescription",
40 "mtlsRootUrl": "https://places.mtls.googleapis.com/",
41 "name": "places",
42 "ownerDomain": "google.com",
43 "ownerName": "Google",
44 "parameters": {
45 "$.xgafv": {
46 "description": "V1 error format.",
47 "enum": [
48 "1",
49 "2"
50 ],
51 "enumDescriptions": [
52 "v1 error format",
53 "v2 error format"
54 ],
55 "location": "query",
56 "type": "string"
57 },
58 "access_token": {
59 "description": "OAuth access token.",
60 "location": "query",
61 "type": "string"
62 },
63 "alt": {
64 "default": "json",
65 "description": "Data format for response.",
66 "enum": [
67 "json",
68 "media",
69 "proto"
70 ],
71 "enumDescriptions": [
72 "Responses with Content-Type of application/json",
73 "Media download with context-dependent Content-Type",
74 "Responses with Content-Type of application/x-protobuf"
75 ],
76 "location": "query",
77 "type": "string"
78 },
79 "callback": {
80 "description": "JSONP",
81 "location": "query",
82 "type": "string"
83 },
84 "fields": {
85 "description": "Selector specifying which fields to include in a partial response.",
86 "location": "query",
87 "type": "string"
88 },
89 "key": {
90 "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
91 "location": "query",
92 "type": "string"
93 },
94 "oauth_token": {
95 "description": "OAuth 2.0 token for the current user.",
96 "location": "query",
97 "type": "string"
98 },
99 "prettyPrint": {
100 "default": "true",
101 "description": "Returns response with indentations and line breaks.",
102 "location": "query",
103 "type": "boolean"
104 },
105 "quotaUser": {
106 "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
107 "location": "query",
108 "type": "string"
109 },
110 "uploadType": {
111 "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
112 "location": "query",
113 "type": "string"
114 },
115 "upload_protocol": {
116 "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
117 "location": "query",
118 "type": "string"
119 }
120 },
121 "protocol": "rest",
122 "resources": {
123 "places": {
124 "methods": {
125 "autocomplete": {
126 "description": "Returns predictions for the given input.",
127 "flatPath": "v1/places:autocomplete",
128 "httpMethod": "POST",
129 "id": "places.places.autocomplete",
130 "parameterOrder": [],
131 "parameters": {},
132 "path": "v1/places:autocomplete",
133 "request": {
134 "$ref": "GoogleMapsPlacesV1AutocompletePlacesRequest"
135 },
136 "response": {
137 "$ref": "GoogleMapsPlacesV1AutocompletePlacesResponse"
138 },
139 "scopes": [
140 "https://www.googleapis.com/auth/cloud-platform",
141 "https://www.googleapis.com/auth/maps-platform.places",
142 "https://www.googleapis.com/auth/maps-platform.places.autocomplete"
143 ]
144 },
145 "get": {
146 "description": "Get the details of a place based on its resource name, which is a string in the `places/{place_id}` format.",
147 "flatPath": "v1/places/{placesId}",
148 "httpMethod": "GET",
149 "id": "places.places.get",
150 "parameterOrder": [
151 "name"
152 ],
153 "parameters": {
154 "languageCode": {
155 "description": "Optional. Place details will be displayed with the preferred language if available. Current list of supported languages: https://developers.google.com/maps/faq#languagesupport.",
156 "location": "query",
157 "type": "string"
158 },
159 "name": {
160 "description": "Required. The resource name of a place, in the `places/{place_id}` format.",
161 "location": "path",
162 "pattern": "^places/[^/]+$",
163 "required": true,
164 "type": "string"
165 },
166 "regionCode": {
167 "description": "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.",
168 "location": "query",
169 "type": "string"
170 },
171 "sessionToken": {
172 "description": "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.",
173 "location": "query",
174 "type": "string"
175 }
176 },
177 "path": "v1/{+name}",
178 "response": {
179 "$ref": "GoogleMapsPlacesV1Place"
180 },
181 "scopes": [
182 "https://www.googleapis.com/auth/cloud-platform",
183 "https://www.googleapis.com/auth/maps-platform.places",
184 "https://www.googleapis.com/auth/maps-platform.places.details"
185 ]
186 },
187 "searchNearby": {
188 "description": "Search for places near locations.",
189 "flatPath": "v1/places:searchNearby",
190 "httpMethod": "POST",
191 "id": "places.places.searchNearby",
192 "parameterOrder": [],
193 "parameters": {},
194 "path": "v1/places:searchNearby",
195 "request": {
196 "$ref": "GoogleMapsPlacesV1SearchNearbyRequest"
197 },
198 "response": {
199 "$ref": "GoogleMapsPlacesV1SearchNearbyResponse"
200 },
201 "scopes": [
202 "https://www.googleapis.com/auth/cloud-platform",
203 "https://www.googleapis.com/auth/maps-platform.places",
204 "https://www.googleapis.com/auth/maps-platform.places.nearbysearch"
205 ]
206 },
207 "searchText": {
208 "description": "Text query based place search.",
209 "flatPath": "v1/places:searchText",
210 "httpMethod": "POST",
211 "id": "places.places.searchText",
212 "parameterOrder": [],
213 "parameters": {},
214 "path": "v1/places:searchText",
215 "request": {
216 "$ref": "GoogleMapsPlacesV1SearchTextRequest"
217 },
218 "response": {
219 "$ref": "GoogleMapsPlacesV1SearchTextResponse"
220 },
221 "scopes": [
222 "https://www.googleapis.com/auth/cloud-platform",
223 "https://www.googleapis.com/auth/maps-platform.places",
224 "https://www.googleapis.com/auth/maps-platform.places.textsearch"
225 ]
226 }
227 },
228 "resources": {
229 "photos": {
230 "methods": {
231 "getMedia": {
232 "description": "Get a photo media with a photo reference string.",
233 "flatPath": "v1/places/{placesId}/photos/{photosId}/media",
234 "httpMethod": "GET",
235 "id": "places.places.photos.getMedia",
236 "parameterOrder": [
237 "name"
238 ],
239 "parameters": {
240 "maxHeightPx": {
241 "description": "Optional. Specifies the maximum desired height, in pixels, of the image. If the image is smaller than the values specified, the original image will be returned. If the image is larger in either dimension, it will be scaled to match the smaller of the two dimensions, restricted to its original aspect ratio. Both the max_height_px and max_width_px properties accept an integer between 1 and 4800, inclusively. If the value is not within the allowed range, an INVALID_ARGUMENT error will be returned. At least one of max_height_px or max_width_px needs to be specified. If neither max_height_px nor max_width_px is specified, an INVALID_ARGUMENT error will be returned.",
242 "format": "int32",
243 "location": "query",
244 "type": "integer"
245 },
246 "maxWidthPx": {
247 "description": "Optional. Specifies the maximum desired width, in pixels, of the image. If the image is smaller than the values specified, the original image will be returned. If the image is larger in either dimension, it will be scaled to match the smaller of the two dimensions, restricted to its original aspect ratio. Both the max_height_px and max_width_px properties accept an integer between 1 and 4800, inclusively. If the value is not within the allowed range, an INVALID_ARGUMENT error will be returned. At least one of max_height_px or max_width_px needs to be specified. If neither max_height_px nor max_width_px is specified, an INVALID_ARGUMENT error will be returned.",
248 "format": "int32",
249 "location": "query",
250 "type": "integer"
251 },
252 "name": {
253 "description": "Required. The resource name of a photo media in the format: `places/{place_id}/photos/{photo_reference}/media`. The resource name of a photo as returned in a Place object's `photos.name` field comes with the format `places/{place_id}/photos/{photo_reference}`. You need to append `/media` at the end of the photo resource to get the photo media resource name.",
254 "location": "path",
255 "pattern": "^places/[^/]+/photos/[^/]+/media$",
256 "required": true,
257 "type": "string"
258 },
259 "skipHttpRedirect": {
260 "description": "Optional. If set, skip the default HTTP redirect behavior and render a text format (for example, in JSON format for HTTP use case) response. If not set, an HTTP redirect will be issued to redirect the call to the image media. This option is ignored for non-HTTP requests.",
261 "location": "query",
262 "type": "boolean"
263 }
264 },
265 "path": "v1/{+name}",
266 "response": {
267 "$ref": "GoogleMapsPlacesV1PhotoMedia"
268 },
269 "scopes": [
270 "https://www.googleapis.com/auth/cloud-platform",
271 "https://www.googleapis.com/auth/maps-platform.places"
272 ]
273 }
274 }
275 }
276 }
277 }
278 },
279 "revision": "20240512",
280 "rootUrl": "https://places.googleapis.com/",
281 "schemas": {
282 "GoogleGeoTypeViewport": {
283 "description": "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` \u003e `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` \u003e `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 } }",
284 "id": "GoogleGeoTypeViewport",
285 "properties": {
286 "high": {
287 "$ref": "GoogleTypeLatLng",
288 "description": "Required. The high point of the viewport."
289 },
290 "low": {
291 "$ref": "GoogleTypeLatLng",
292 "description": "Required. The low point of the viewport."
293 }
294 },
295 "type": "object"
296 },
297 "GoogleMapsPlacesV1AuthorAttribution": {
298 "description": "Information about the author of the UGC data. Used in Photo, and Review.",
299 "id": "GoogleMapsPlacesV1AuthorAttribution",
300 "properties": {
301 "displayName": {
302 "description": "Name of the author of the Photo or Review.",
303 "type": "string"
304 },
305 "photoUri": {
306 "description": "Profile photo URI of the author of the Photo or Review.",
307 "type": "string"
308 },
309 "uri": {
310 "description": "URI of the author of the Photo or Review.",
311 "type": "string"
312 }
313 },
314 "type": "object"
315 },
316 "GoogleMapsPlacesV1AutocompletePlacesRequest": {
317 "description": "Request proto for AutocompletePlaces.",
318 "id": "GoogleMapsPlacesV1AutocompletePlacesRequest",
319 "properties": {
320 "includeQueryPredictions": {
321 "description": "Optional. If true, the response will include both Place and query predictions. Otherwise the response will only return Place predictions.",
322 "type": "boolean"
323 },
324 "includedPrimaryTypes": {
325 "description": "Optional. Included primary Place type (for example, \"restaurant\" or \"gas_station\") from https://developers.google.com/maps/documentation/places/web-service/place-types. 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.",
326 "items": {
327 "type": "string"
328 },
329 "type": "array"
330 },
331 "includedRegionCodes": {
332 "description": "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.",
333 "items": {
334 "type": "string"
335 },
336 "type": "array"
337 },
338 "input": {
339 "description": "Required. The text string on which to search.",
340 "type": "string"
341 },
342 "inputOffset": {
343 "description": "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`.",
344 "format": "int32",
345 "type": "integer"
346 },
347 "languageCode": {
348 "description": "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`.",
349 "type": "string"
350 },
351 "locationBias": {
352 "$ref": "GoogleMapsPlacesV1AutocompletePlacesRequestLocationBias",
353 "description": "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."
354 },
355 "locationRestriction": {
356 "$ref": "GoogleMapsPlacesV1AutocompletePlacesRequestLocationRestriction",
357 "description": "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."
358 },
359 "origin": {
360 "$ref": "GoogleTypeLatLng",
361 "description": "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."
362 },
363 "regionCode": {
364 "description": "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`.",
365 "type": "string"
366 },
367 "sessionToken": {
368 "description": "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.",
369 "type": "string"
370 }
371 },
372 "type": "object"
373 },
374 "GoogleMapsPlacesV1AutocompletePlacesRequestLocationBias": {
375 "description": "The region to search. The results may be biased around the specified region.",
376 "id": "GoogleMapsPlacesV1AutocompletePlacesRequestLocationBias",
377 "properties": {
378 "circle": {
379 "$ref": "GoogleMapsPlacesV1Circle",
380 "description": "A circle defined by a center point and radius."
381 },
382 "rectangle": {
383 "$ref": "GoogleGeoTypeViewport",
384 "description": "A viewport defined by a northeast and a southwest corner."
385 }
386 },
387 "type": "object"
388 },
389 "GoogleMapsPlacesV1AutocompletePlacesRequestLocationRestriction": {
390 "description": "The region to search. The results will be restricted to the specified region.",
391 "id": "GoogleMapsPlacesV1AutocompletePlacesRequestLocationRestriction",
392 "properties": {
393 "circle": {
394 "$ref": "GoogleMapsPlacesV1Circle",
395 "description": "A circle defined by a center point and radius."
396 },
397 "rectangle": {
398 "$ref": "GoogleGeoTypeViewport",
399 "description": "A viewport defined by a northeast and a southwest corner."
400 }
401 },
402 "type": "object"
403 },
404 "GoogleMapsPlacesV1AutocompletePlacesResponse": {
405 "description": "Response proto for AutocompletePlaces.",
406 "id": "GoogleMapsPlacesV1AutocompletePlacesResponse",
407 "properties": {
408 "suggestions": {
409 "description": "Contains a list of suggestions, ordered in descending order of relevance.",
410 "items": {
411 "$ref": "GoogleMapsPlacesV1AutocompletePlacesResponseSuggestion"
412 },
413 "type": "array"
414 }
415 },
416 "type": "object"
417 },
418 "GoogleMapsPlacesV1AutocompletePlacesResponseSuggestion": {
419 "description": "An Autocomplete suggestion result.",
420 "id": "GoogleMapsPlacesV1AutocompletePlacesResponseSuggestion",
421 "properties": {
422 "placePrediction": {
423 "$ref": "GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionPlacePrediction",
424 "description": "A prediction for a Place."
425 },
426 "queryPrediction": {
427 "$ref": "GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionQueryPrediction",
428 "description": "A prediction for a query."
429 }
430 },
431 "type": "object"
432 },
433 "GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionFormattableText": {
434 "description": "Text representing a Place or query prediction. The text may be used as is or formatted.",
435 "id": "GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionFormattableText",
436 "properties": {
437 "matches": {
438 "description": "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.",
439 "items": {
440 "$ref": "GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionStringRange"
441 },
442 "type": "array"
443 },
444 "text": {
445 "description": "Text that may be used as is or formatted with `matches`.",
446 "type": "string"
447 }
448 },
449 "type": "object"
450 },
451 "GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionPlacePrediction": {
452 "description": "Prediction results for a Place Autocomplete prediction.",
453 "id": "GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionPlacePrediction",
454 "properties": {
455 "distanceMeters": {
456 "description": "The length of the geodesic in meters from `origin` if `origin` is specified. Certain predictions such as routes may not populate this field.",
457 "format": "int32",
458 "type": "integer"
459 },
460 "place": {
461 "description": "The resource name of the suggested Place. This name can be used in other APIs that accept Place names.",
462 "type": "string"
463 },
464 "placeId": {
465 "description": "The unique identifier of the suggested Place. This identifier can be used in other APIs that accept Place IDs.",
466 "type": "string"
467 },
468 "structuredFormat": {
469 "$ref": "GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionStructuredFormat",
470 "description": "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."
471 },
472 "text": {
473 "$ref": "GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionFormattableText",
474 "description": "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`."
475 },
476 "types": {
477 "description": "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.",
478 "items": {
479 "type": "string"
480 },
481 "type": "array"
482 }
483 },
484 "type": "object"
485 },
486 "GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionQueryPrediction": {
487 "description": "Prediction results for a Query Autocomplete prediction.",
488 "id": "GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionQueryPrediction",
489 "properties": {
490 "structuredFormat": {
491 "$ref": "GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionStructuredFormat",
492 "description": "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."
493 },
494 "text": {
495 "$ref": "GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionFormattableText",
496 "description": "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`."
497 }
498 },
499 "type": "object"
500 },
501 "GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionStringRange": {
502 "description": "Identifies a substring within a given text.",
503 "id": "GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionStringRange",
504 "properties": {
505 "endOffset": {
506 "description": "Zero-based offset of the last Unicode character (exclusive).",
507 "format": "int32",
508 "type": "integer"
509 },
510 "startOffset": {
511 "description": "Zero-based offset of the first Unicode character of the string (inclusive).",
512 "format": "int32",
513 "type": "integer"
514 }
515 },
516 "type": "object"
517 },
518 "GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionStructuredFormat": {
519 "description": "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.",
520 "id": "GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionStructuredFormat",
521 "properties": {
522 "mainText": {
523 "$ref": "GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionFormattableText",
524 "description": "Represents the name of the Place or query."
525 },
526 "secondaryText": {
527 "$ref": "GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionFormattableText",
528 "description": "Represents additional disambiguating features (such as a city or region) to further identify the Place or refine the query."
529 }
530 },
531 "type": "object"
532 },
533 "GoogleMapsPlacesV1Circle": {
534 "description": "Circle with a LatLng as center and radius.",
535 "id": "GoogleMapsPlacesV1Circle",
536 "properties": {
537 "center": {
538 "$ref": "GoogleTypeLatLng",
539 "description": "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]."
540 },
541 "radius": {
542 "description": "Required. Radius measured in meters. The radius must be within [0.0, 50000.0].",
543 "format": "double",
544 "type": "number"
545 }
546 },
547 "type": "object"
548 },
549 "GoogleMapsPlacesV1ContentBlock": {
550 "description": "A block of content that can be served individually.",
551 "id": "GoogleMapsPlacesV1ContentBlock",
552 "properties": {
553 "content": {
554 "$ref": "GoogleTypeLocalizedText",
555 "description": "Content related to the topic."
556 },
557 "references": {
558 "$ref": "GoogleMapsPlacesV1References",
559 "description": "Experimental: See https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative for more details. References that are related to this block of content."
560 },
561 "topic": {
562 "description": "The topic of the content, for example \"overview\" or \"restaurant\".",
563 "type": "string"
564 }
565 },
566 "type": "object"
567 },
568 "GoogleMapsPlacesV1ContextualContent": {
569 "description": "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.",
570 "id": "GoogleMapsPlacesV1ContextualContent",
571 "properties": {
572 "justifications": {
573 "description": "Experimental: See https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative for more details. Justifications for the place.",
574 "items": {
575 "$ref": "GoogleMapsPlacesV1ContextualContentJustification"
576 },
577 "type": "array"
578 },
579 "photos": {
580 "description": "Information (including references) about photos of this place, contexual to the place query.",
581 "items": {
582 "$ref": "GoogleMapsPlacesV1Photo"
583 },
584 "type": "array"
585 },
586 "reviews": {
587 "description": "List of reviews about this place, contexual to the place query.",
588 "items": {
589 "$ref": "GoogleMapsPlacesV1Review"
590 },
591 "type": "array"
592 }
593 },
594 "type": "object"
595 },
596 "GoogleMapsPlacesV1ContextualContentJustification": {
597 "description": "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.",
598 "id": "GoogleMapsPlacesV1ContextualContentJustification",
599 "properties": {
600 "businessAvailabilityAttributesJustification": {
601 "$ref": "GoogleMapsPlacesV1ContextualContentJustificationBusinessAvailabilityAttributesJustification",
602 "description": "Experimental: See https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative for more details."
603 },
604 "reviewJustification": {
605 "$ref": "GoogleMapsPlacesV1ContextualContentJustificationReviewJustification",
606 "description": "Experimental: See https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative for more details."
607 }
608 },
609 "type": "object"
610 },
611 "GoogleMapsPlacesV1ContextualContentJustificationBusinessAvailabilityAttributesJustification": {
612 "description": "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.",
613 "id": "GoogleMapsPlacesV1ContextualContentJustificationBusinessAvailabilityAttributesJustification",
614 "properties": {
615 "delivery": {
616 "description": "If a place provides delivery.",
617 "type": "boolean"
618 },
619 "dineIn": {
620 "description": "If a place provides dine-in.",
621 "type": "boolean"
622 },
623 "takeout": {
624 "description": "If a place provides takeout.",
625 "type": "boolean"
626 }
627 },
628 "type": "object"
629 },
630 "GoogleMapsPlacesV1ContextualContentJustificationReviewJustification": {
631 "description": "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.",
632 "id": "GoogleMapsPlacesV1ContextualContentJustificationReviewJustification",
633 "properties": {
634 "highlightedText": {
635 "$ref": "GoogleMapsPlacesV1ContextualContentJustificationReviewJustificationHighlightedText"
636 },
637 "review": {
638 "$ref": "GoogleMapsPlacesV1Review",
639 "description": "The review that the highlighted text is generated from."
640 }
641 },
642 "type": "object"
643 },
644 "GoogleMapsPlacesV1ContextualContentJustificationReviewJustificationHighlightedText": {
645 "description": "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.",
646 "id": "GoogleMapsPlacesV1ContextualContentJustificationReviewJustificationHighlightedText",
647 "properties": {
648 "highlightedTextRanges": {
649 "description": "The list of the ranges of the highlighted text.",
650 "items": {
651 "$ref": "GoogleMapsPlacesV1ContextualContentJustificationReviewJustificationHighlightedTextHighlightedTextRange"
652 },
653 "type": "array"
654 },
655 "text": {
656 "type": "string"
657 }
658 },
659 "type": "object"
660 },
661 "GoogleMapsPlacesV1ContextualContentJustificationReviewJustificationHighlightedTextHighlightedTextRange": {
662 "description": "The range of highlighted text.",
663 "id": "GoogleMapsPlacesV1ContextualContentJustificationReviewJustificationHighlightedTextHighlightedTextRange",
664 "properties": {
665 "endIndex": {
666 "format": "int32",
667 "type": "integer"
668 },
669 "startIndex": {
670 "format": "int32",
671 "type": "integer"
672 }
673 },
674 "type": "object"
675 },
676 "GoogleMapsPlacesV1EVChargeOptions": {
677 "description": "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.",
678 "id": "GoogleMapsPlacesV1EVChargeOptions",
679 "properties": {
680 "connectorAggregation": {
681 "description": "A list of EV charging connector aggregations that contain connectors of the same type and same charge rate.",
682 "items": {
683 "$ref": "GoogleMapsPlacesV1EVChargeOptionsConnectorAggregation"
684 },
685 "type": "array"
686 },
687 "connectorCount": {
688 "description": "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.",
689 "format": "int32",
690 "type": "integer"
691 }
692 },
693 "type": "object"
694 },
695 "GoogleMapsPlacesV1EVChargeOptionsConnectorAggregation": {
696 "description": "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.",
697 "id": "GoogleMapsPlacesV1EVChargeOptionsConnectorAggregation",
698 "properties": {
699 "availabilityLastUpdateTime": {
700 "description": "The timestamp when the connector availability information in this aggregation was last updated.",
701 "format": "google-datetime",
702 "type": "string"
703 },
704 "availableCount": {
705 "description": "Number of connectors in this aggregation that are currently available.",
706 "format": "int32",
707 "type": "integer"
708 },
709 "count": {
710 "description": "Number of connectors in this aggregation.",
711 "format": "int32",
712 "type": "integer"
713 },
714 "maxChargeRateKw": {
715 "description": "The static max charging rate in kw of each connector in the aggregation.",
716 "format": "double",
717 "type": "number"
718 },
719 "outOfServiceCount": {
720 "description": "Number of connectors in this aggregation that are currently out of service.",
721 "format": "int32",
722 "type": "integer"
723 },
724 "type": {
725 "description": "The connector type of this aggregation.",
726 "enum": [
727 "EV_CONNECTOR_TYPE_UNSPECIFIED",
728 "EV_CONNECTOR_TYPE_OTHER",
729 "EV_CONNECTOR_TYPE_J1772",
730 "EV_CONNECTOR_TYPE_TYPE_2",
731 "EV_CONNECTOR_TYPE_CHADEMO",
732 "EV_CONNECTOR_TYPE_CCS_COMBO_1",
733 "EV_CONNECTOR_TYPE_CCS_COMBO_2",
734 "EV_CONNECTOR_TYPE_TESLA",
735 "EV_CONNECTOR_TYPE_UNSPECIFIED_GB_T",
736 "EV_CONNECTOR_TYPE_UNSPECIFIED_WALL_OUTLET"
737 ],
738 "enumDescriptions": [
739 "Unspecified connector.",
740 "Other connector types.",
741 "J1772 type 1 connector.",
742 "IEC 62196 type 2 connector. Often referred to as MENNEKES.",
743 "CHAdeMO type connector.",
744 "Combined Charging System (AC and DC). Based on SAE. Type-1 J-1772 connector",
745 "Combined Charging System (AC and DC). Based on Type-2 Mennekes connector",
746 "The generic TESLA connector. This is NACS in the North America but can be non-NACS in other parts of the world (e.g. CCS Combo 2 (CCS2) or GB/T). This value is less representative of an actual connector type, and more represents the ability to charge a Tesla brand vehicle at a Tesla owned charging station.",
747 "GB/T type corresponds to the GB/T standard in China. This type covers all GB_T types.",
748 "Unspecified wall outlet."
749 ],
750 "type": "string"
751 }
752 },
753 "type": "object"
754 },
755 "GoogleMapsPlacesV1FuelOptions": {
756 "description": "The most recent information about fuel options in a gas station. This information is updated regularly.",
757 "id": "GoogleMapsPlacesV1FuelOptions",
758 "properties": {
759 "fuelPrices": {
760 "description": "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.",
761 "items": {
762 "$ref": "GoogleMapsPlacesV1FuelOptionsFuelPrice"
763 },
764 "type": "array"
765 }
766 },
767 "type": "object"
768 },
769 "GoogleMapsPlacesV1FuelOptionsFuelPrice": {
770 "description": "Fuel price information for a given type.",
771 "id": "GoogleMapsPlacesV1FuelOptionsFuelPrice",
772 "properties": {
773 "price": {
774 "$ref": "GoogleTypeMoney",
775 "description": "The price of the fuel."
776 },
777 "type": {
778 "description": "The type of fuel.",
779 "enum": [
780 "FUEL_TYPE_UNSPECIFIED",
781 "DIESEL",
782 "REGULAR_UNLEADED",
783 "MIDGRADE",
784 "PREMIUM",
785 "SP91",
786 "SP91_E10",
787 "SP92",
788 "SP95",
789 "SP95_E10",
790 "SP98",
791 "SP99",
792 "SP100",
793 "LPG",
794 "E80",
795 "E85",
796 "METHANE",
797 "BIO_DIESEL",
798 "TRUCK_DIESEL"
799 ],
800 "enumDescriptions": [
801 "Unspecified fuel type.",
802 "Diesel fuel.",
803 "Regular unleaded.",
804 "Midgrade.",
805 "Premium.",
806 "SP 91.",
807 "SP 91 E10.",
808 "SP 92.",
809 "SP 95.",
810 "SP95 E10.",
811 "SP 98.",
812 "SP 99.",
813 "SP 100.",
814 "LPG.",
815 "E 80.",
816 "E 85.",
817 "Methane.",
818 "Bio-diesel.",
819 "Truck diesel."
820 ],
821 "type": "string"
822 },
823 "updateTime": {
824 "description": "The time the fuel price was last updated.",
825 "format": "google-datetime",
826 "type": "string"
827 }
828 },
829 "type": "object"
830 },
831 "GoogleMapsPlacesV1Photo": {
832 "description": "Information about a photo of a place.",
833 "id": "GoogleMapsPlacesV1Photo",
834 "properties": {
835 "authorAttributions": {
836 "description": "This photo's authors.",
837 "items": {
838 "$ref": "GoogleMapsPlacesV1AuthorAttribution"
839 },
840 "type": "array"
841 },
842 "heightPx": {
843 "description": "The maximum available height, in pixels.",
844 "format": "int32",
845 "type": "integer"
846 },
847 "name": {
848 "description": "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}`).",
849 "type": "string"
850 },
851 "widthPx": {
852 "description": "The maximum available width, in pixels.",
853 "format": "int32",
854 "type": "integer"
855 }
856 },
857 "type": "object"
858 },
859 "GoogleMapsPlacesV1PhotoMedia": {
860 "description": "A photo media from Places API.",
861 "id": "GoogleMapsPlacesV1PhotoMedia",
862 "properties": {
863 "name": {
864 "description": "The resource name of a photo media in the format: `places/{place_id}/photos/{photo_reference}/media`.",
865 "type": "string"
866 },
867 "photoUri": {
868 "description": "A short-lived uri that can be used to render the photo.",
869 "type": "string"
870 }
871 },
872 "type": "object"
873 },
874 "GoogleMapsPlacesV1Place": {
875 "description": "All the information representing a Place.",
876 "id": "GoogleMapsPlacesV1Place",
877 "properties": {
878 "accessibilityOptions": {
879 "$ref": "GoogleMapsPlacesV1PlaceAccessibilityOptions",
880 "description": "Information about the accessibility options a place offers."
881 },
882 "addressComponents": {
883 "description": "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.",
884 "items": {
885 "$ref": "GoogleMapsPlacesV1PlaceAddressComponent"
886 },
887 "type": "array"
888 },
889 "adrFormatAddress": {
890 "description": "The place's address in adr microformat: http://microformats.org/wiki/adr.",
891 "type": "string"
892 },
893 "allowsDogs": {
894 "description": "Place allows dogs.",
895 "type": "boolean"
896 },
897 "areaSummary": {
898 "$ref": "GoogleMapsPlacesV1PlaceAreaSummary",
899 "description": "Experimental: See https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative for more details. AI-generated summary of the area that the place is in."
900 },
901 "attributions": {
902 "description": "A set of data provider that must be shown with this result.",
903 "items": {
904 "$ref": "GoogleMapsPlacesV1PlaceAttribution"
905 },
906 "type": "array"
907 },
908 "businessStatus": {
909 "description": "The business status for the place.",
910 "enum": [
911 "BUSINESS_STATUS_UNSPECIFIED",
912 "OPERATIONAL",
913 "CLOSED_TEMPORARILY",
914 "CLOSED_PERMANENTLY"
915 ],
916 "enumDescriptions": [
917 "Default value. This value is unused.",
918 "The establishment is operational, not necessarily open now.",
919 "The establishment is temporarily closed.",
920 "The establishment is permanently closed."
921 ],
922 "type": "string"
923 },
924 "curbsidePickup": {
925 "description": "Specifies if the business supports curbside pickup.",
926 "type": "boolean"
927 },
928 "currentOpeningHours": {
929 "$ref": "GoogleMapsPlacesV1PlaceOpeningHours",
930 "description": "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."
931 },
932 "currentSecondaryOpeningHours": {
933 "description": "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.",
934 "items": {
935 "$ref": "GoogleMapsPlacesV1PlaceOpeningHours"
936 },
937 "type": "array"
938 },
939 "delivery": {
940 "description": "Specifies if the business supports delivery.",
941 "type": "boolean"
942 },
943 "dineIn": {
944 "description": "Specifies if the business supports indoor or outdoor seating options.",
945 "type": "boolean"
946 },
947 "displayName": {
948 "$ref": "GoogleTypeLocalizedText",
949 "description": "The localized name of the place, suitable as a short human-readable description. For example, \"Google Sydney\", \"Starbucks\", \"Pyrmont\", etc."
950 },
951 "editorialSummary": {
952 "$ref": "GoogleTypeLocalizedText",
953 "description": "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."
954 },
955 "evChargeOptions": {
956 "$ref": "GoogleMapsPlacesV1EVChargeOptions",
957 "description": "Information of ev charging options."
958 },
959 "formattedAddress": {
960 "description": "A full, human-readable address for this place.",
961 "type": "string"
962 },
963 "fuelOptions": {
964 "$ref": "GoogleMapsPlacesV1FuelOptions",
965 "description": "The most recent information about fuel options in a gas station. This information is updated regularly."
966 },
967 "generativeSummary": {
968 "$ref": "GoogleMapsPlacesV1PlaceGenerativeSummary",
969 "description": "Experimental: See https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative for more details. AI-generated summary of the place."
970 },
971 "goodForChildren": {
972 "description": "Place is good for children.",
973 "type": "boolean"
974 },
975 "goodForGroups": {
976 "description": "Place accommodates groups.",
977 "type": "boolean"
978 },
979 "goodForWatchingSports": {
980 "description": "Place is suitable for watching sports.",
981 "type": "boolean"
982 },
983 "googleMapsUri": {
984 "description": "A URL providing more information about this place.",
985 "type": "string"
986 },
987 "iconBackgroundColor": {
988 "description": "Background color for icon_mask in hex format, e.g. #909CE1.",
989 "type": "string"
990 },
991 "iconMaskBaseUri": {
992 "description": "A truncated URL to an icon mask. User can access different icon type by appending type suffix to the end (eg, \".svg\" or \".png\").",
993 "type": "string"
994 },
995 "id": {
996 "description": "The unique identifier of a place.",
997 "type": "string"
998 },
999 "internationalPhoneNumber": {
1000 "description": "A human-readable phone number for the place, in international format.",
1001 "type": "string"
1002 },
1003 "liveMusic": {
1004 "description": "Place provides live music.",
1005 "type": "boolean"
1006 },
1007 "location": {
1008 "$ref": "GoogleTypeLatLng",
1009 "description": "The position of this place."
1010 },
1011 "menuForChildren": {
1012 "description": "Place has a children's menu.",
1013 "type": "boolean"
1014 },
1015 "name": {
1016 "description": "This Place's resource name, in `places/{place_id}` format. Can be used to look up the Place.",
1017 "type": "string"
1018 },
1019 "nationalPhoneNumber": {
1020 "description": "A human-readable phone number for the place, in national format.",
1021 "type": "string"
1022 },
1023 "outdoorSeating": {
1024 "description": "Place provides outdoor seating.",
1025 "type": "boolean"
1026 },
1027 "parkingOptions": {
1028 "$ref": "GoogleMapsPlacesV1PlaceParkingOptions",
1029 "description": "Options of parking provided by the place."
1030 },
1031 "paymentOptions": {
1032 "$ref": "GoogleMapsPlacesV1PlacePaymentOptions",
1033 "description": "Payment options the place accepts. If a payment option data is not available, the payment option field will be unset."
1034 },
1035 "photos": {
1036 "description": "Information (including references) about photos of this place. A maximum of 10 photos can be returned.",
1037 "items": {
1038 "$ref": "GoogleMapsPlacesV1Photo"
1039 },
1040 "type": "array"
1041 },
1042 "plusCode": {
1043 "$ref": "GoogleMapsPlacesV1PlacePlusCode",
1044 "description": "Plus code of the place location lat/long."
1045 },
1046 "priceLevel": {
1047 "description": "Price level of the place.",
1048 "enum": [
1049 "PRICE_LEVEL_UNSPECIFIED",
1050 "PRICE_LEVEL_FREE",
1051 "PRICE_LEVEL_INEXPENSIVE",
1052 "PRICE_LEVEL_MODERATE",
1053 "PRICE_LEVEL_EXPENSIVE",
1054 "PRICE_LEVEL_VERY_EXPENSIVE"
1055 ],
1056 "enumDescriptions": [
1057 "Place price level is unspecified or unknown.",
1058 "Place provides free services.",
1059 "Place provides inexpensive services.",
1060 "Place provides moderately priced services.",
1061 "Place provides expensive services.",
1062 "Place provides very expensive services."
1063 ],
1064 "type": "string"
1065 },
1066 "primaryType": {
1067 "description": "The primary type of the given result. This type must 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",
1068 "type": "string"
1069 },
1070 "primaryTypeDisplayName": {
1071 "$ref": "GoogleTypeLocalizedText",
1072 "description": "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"
1073 },
1074 "rating": {
1075 "description": "A rating between 1.0 and 5.0, based on user reviews of this place.",
1076 "format": "double",
1077 "type": "number"
1078 },
1079 "regularOpeningHours": {
1080 "$ref": "GoogleMapsPlacesV1PlaceOpeningHours",
1081 "description": "The regular hours of operation."
1082 },
1083 "regularSecondaryOpeningHours": {
1084 "description": "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.",
1085 "items": {
1086 "$ref": "GoogleMapsPlacesV1PlaceOpeningHours"
1087 },
1088 "type": "array"
1089 },
1090 "reservable": {
1091 "description": "Specifies if the place supports reservations.",
1092 "type": "boolean"
1093 },
1094 "restroom": {
1095 "description": "Place has restroom.",
1096 "type": "boolean"
1097 },
1098 "reviews": {
1099 "description": "List of reviews about this place, sorted by relevance. A maximum of 5 reviews can be returned.",
1100 "items": {
1101 "$ref": "GoogleMapsPlacesV1Review"
1102 },
1103 "type": "array"
1104 },
1105 "servesBeer": {
1106 "description": "Specifies if the place serves beer.",
1107 "type": "boolean"
1108 },
1109 "servesBreakfast": {
1110 "description": "Specifies if the place serves breakfast.",
1111 "type": "boolean"
1112 },
1113 "servesBrunch": {
1114 "description": "Specifies if the place serves brunch.",
1115 "type": "boolean"
1116 },
1117 "servesCocktails": {
1118 "description": "Place serves cocktails.",
1119 "type": "boolean"
1120 },
1121 "servesCoffee": {
1122 "description": "Place serves coffee.",
1123 "type": "boolean"
1124 },
1125 "servesDessert": {
1126 "description": "Place serves dessert.",
1127 "type": "boolean"
1128 },
1129 "servesDinner": {
1130 "description": "Specifies if the place serves dinner.",
1131 "type": "boolean"
1132 },
1133 "servesLunch": {
1134 "description": "Specifies if the place serves lunch.",
1135 "type": "boolean"
1136 },
1137 "servesVegetarianFood": {
1138 "description": "Specifies if the place serves vegetarian food.",
1139 "type": "boolean"
1140 },
1141 "servesWine": {
1142 "description": "Specifies if the place serves wine.",
1143 "type": "boolean"
1144 },
1145 "shortFormattedAddress": {
1146 "description": "A short, human-readable address for this place.",
1147 "type": "string"
1148 },
1149 "subDestinations": {
1150 "description": "A list of sub destinations related to the place.",
1151 "items": {
1152 "$ref": "GoogleMapsPlacesV1PlaceSubDestination"
1153 },
1154 "type": "array"
1155 },
1156 "takeout": {
1157 "description": "Specifies if the business supports takeout.",
1158 "type": "boolean"
1159 },
1160 "types": {
1161 "description": "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",
1162 "items": {
1163 "type": "string"
1164 },
1165 "type": "array"
1166 },
1167 "userRatingCount": {
1168 "description": "The total number of reviews (with or without text) for this place.",
1169 "format": "int32",
1170 "type": "integer"
1171 },
1172 "utcOffsetMinutes": {
1173 "description": "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.",
1174 "format": "int32",
1175 "type": "integer"
1176 },
1177 "viewport": {
1178 "$ref": "GoogleGeoTypeViewport",
1179 "description": "A viewport suitable for displaying the place on an average-sized map."
1180 },
1181 "websiteUri": {
1182 "description": "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.",
1183 "type": "string"
1184 }
1185 },
1186 "type": "object"
1187 },
1188 "GoogleMapsPlacesV1PlaceAccessibilityOptions": {
1189 "description": "Information about the accessibility options a place offers.",
1190 "id": "GoogleMapsPlacesV1PlaceAccessibilityOptions",
1191 "properties": {
1192 "wheelchairAccessibleEntrance": {
1193 "description": "Places has wheelchair accessible entrance.",
1194 "type": "boolean"
1195 },
1196 "wheelchairAccessibleParking": {
1197 "description": "Place offers wheelchair accessible parking.",
1198 "type": "boolean"
1199 },
1200 "wheelchairAccessibleRestroom": {
1201 "description": "Place has wheelchair accessible restroom.",
1202 "type": "boolean"
1203 },
1204 "wheelchairAccessibleSeating": {
1205 "description": "Place has wheelchair accessible seating.",
1206 "type": "boolean"
1207 }
1208 },
1209 "type": "object"
1210 },
1211 "GoogleMapsPlacesV1PlaceAddressComponent": {
1212 "description": "The structured components that form the formatted address, if this information is available.",
1213 "id": "GoogleMapsPlacesV1PlaceAddressComponent",
1214 "properties": {
1215 "languageCode": {
1216 "description": "The language used to format this components, in CLDR notation.",
1217 "type": "string"
1218 },
1219 "longText": {
1220 "description": "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\".",
1221 "type": "string"
1222 },
1223 "shortText": {
1224 "description": "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\".",
1225 "type": "string"
1226 },
1227 "types": {
1228 "description": "An array indicating the type(s) of the address component.",
1229 "items": {
1230 "type": "string"
1231 },
1232 "type": "array"
1233 }
1234 },
1235 "type": "object"
1236 },
1237 "GoogleMapsPlacesV1PlaceAreaSummary": {
1238 "description": "Experimental: See https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative for more details. AI-generated summary of the area that the place is in.",
1239 "id": "GoogleMapsPlacesV1PlaceAreaSummary",
1240 "properties": {
1241 "contentBlocks": {
1242 "description": "Content blocks that compose the area summary. Each block has a separate topic about the area.",
1243 "items": {
1244 "$ref": "GoogleMapsPlacesV1ContentBlock"
1245 },
1246 "type": "array"
1247 }
1248 },
1249 "type": "object"
1250 },
1251 "GoogleMapsPlacesV1PlaceAttribution": {
1252 "description": "Information about data providers of this place.",
1253 "id": "GoogleMapsPlacesV1PlaceAttribution",
1254 "properties": {
1255 "provider": {
1256 "description": "Name of the Place's data provider.",
1257 "type": "string"
1258 },
1259 "providerUri": {
1260 "description": "URI to the Place's data provider.",
1261 "type": "string"
1262 }
1263 },
1264 "type": "object"
1265 },
1266 "GoogleMapsPlacesV1PlaceGenerativeSummary": {
1267 "description": "Experimental: See https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative for more details. AI-generated summary of the place.",
1268 "id": "GoogleMapsPlacesV1PlaceGenerativeSummary",
1269 "properties": {
1270 "description": {
1271 "$ref": "GoogleTypeLocalizedText",
1272 "description": "The detailed description of the place."
1273 },
1274 "overview": {
1275 "$ref": "GoogleTypeLocalizedText",
1276 "description": "The overview of the place."
1277 },
1278 "references": {
1279 "$ref": "GoogleMapsPlacesV1References",
1280 "description": "References that are used to generate the summary description."
1281 }
1282 },
1283 "type": "object"
1284 },
1285 "GoogleMapsPlacesV1PlaceOpeningHours": {
1286 "description": "Information about business hour of the place.",
1287 "id": "GoogleMapsPlacesV1PlaceOpeningHours",
1288 "properties": {
1289 "openNow": {
1290 "description": "Is this place open right now? Always present unless we lack time-of-day or timezone data for these opening hours.",
1291 "type": "boolean"
1292 },
1293 "periods": {
1294 "description": "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.",
1295 "items": {
1296 "$ref": "GoogleMapsPlacesV1PlaceOpeningHoursPeriod"
1297 },
1298 "type": "array"
1299 },
1300 "secondaryHoursType": {
1301 "description": "A type string used to identify the type of secondary hours.",
1302 "enum": [
1303 "SECONDARY_HOURS_TYPE_UNSPECIFIED",
1304 "DRIVE_THROUGH",
1305 "HAPPY_HOUR",
1306 "DELIVERY",
1307 "TAKEOUT",
1308 "KITCHEN",
1309 "BREAKFAST",
1310 "LUNCH",
1311 "DINNER",
1312 "BRUNCH",
1313 "PICKUP",
1314 "ACCESS",
1315 "SENIOR_HOURS",
1316 "ONLINE_SERVICE_HOURS"
1317 ],
1318 "enumDescriptions": [
1319 "Default value when secondary hour type is not specified.",
1320 "The drive-through hour for banks, restaurants, or pharmacies.",
1321 "The happy hour.",
1322 "The delivery hour.",
1323 "The takeout hour.",
1324 "The kitchen hour.",
1325 "The breakfast hour.",
1326 "The lunch hour.",
1327 "The dinner hour.",
1328 "The brunch hour.",
1329 "The pickup hour.",
1330 "The access hours for storage places.",
1331 "The special hours for seniors.",
1332 "The online service hours."
1333 ],
1334 "type": "string"
1335 },
1336 "specialDays": {
1337 "description": "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.",
1338 "items": {
1339 "$ref": "GoogleMapsPlacesV1PlaceOpeningHoursSpecialDay"
1340 },
1341 "type": "array"
1342 },
1343 "weekdayDescriptions": {
1344 "description": "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: \"Sun: 18:00–06:00\"",
1345 "items": {
1346 "type": "string"
1347 },
1348 "type": "array"
1349 }
1350 },
1351 "type": "object"
1352 },
1353 "GoogleMapsPlacesV1PlaceOpeningHoursPeriod": {
1354 "description": "A period the place remains in open_now status.",
1355 "id": "GoogleMapsPlacesV1PlaceOpeningHoursPeriod",
1356 "properties": {
1357 "close": {
1358 "$ref": "GoogleMapsPlacesV1PlaceOpeningHoursPeriodPoint",
1359 "description": "The time that the place starts to be closed."
1360 },
1361 "open": {
1362 "$ref": "GoogleMapsPlacesV1PlaceOpeningHoursPeriodPoint",
1363 "description": "The time that the place starts to be open."
1364 }
1365 },
1366 "type": "object"
1367 },
1368 "GoogleMapsPlacesV1PlaceOpeningHoursPeriodPoint": {
1369 "description": "Status changing points.",
1370 "id": "GoogleMapsPlacesV1PlaceOpeningHoursPeriodPoint",
1371 "properties": {
1372 "date": {
1373 "$ref": "GoogleTypeDate",
1374 "description": "Date in the local timezone for the place."
1375 },
1376 "day": {
1377 "description": "A day of the week, as an integer in the range 0-6. 0 is Sunday, 1 is Monday, etc.",
1378 "format": "int32",
1379 "type": "integer"
1380 },
1381 "hour": {
1382 "description": "The hour in 2 digits. Ranges from 00 to 23.",
1383 "format": "int32",
1384 "type": "integer"
1385 },
1386 "minute": {
1387 "description": "The minute in 2 digits. Ranges from 00 to 59.",
1388 "format": "int32",
1389 "type": "integer"
1390 },
1391 "truncated": {
1392 "description": "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.",
1393 "type": "boolean"
1394 }
1395 },
1396 "type": "object"
1397 },
1398 "GoogleMapsPlacesV1PlaceOpeningHoursSpecialDay": {
1399 "description": "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.",
1400 "id": "GoogleMapsPlacesV1PlaceOpeningHoursSpecialDay",
1401 "properties": {
1402 "date": {
1403 "$ref": "GoogleTypeDate",
1404 "description": "The date of this special day."
1405 }
1406 },
1407 "type": "object"
1408 },
1409 "GoogleMapsPlacesV1PlaceParkingOptions": {
1410 "description": "Information about parking options for the place. A parking lot could support more than one option at the same time.",
1411 "id": "GoogleMapsPlacesV1PlaceParkingOptions",
1412 "properties": {
1413 "freeGarageParking": {
1414 "description": "Place offers free garage parking.",
1415 "type": "boolean"
1416 },
1417 "freeParkingLot": {
1418 "description": "Place offers free parking lots.",
1419 "type": "boolean"
1420 },
1421 "freeStreetParking": {
1422 "description": "Place offers free street parking.",
1423 "type": "boolean"
1424 },
1425 "paidGarageParking": {
1426 "description": "Place offers paid garage parking.",
1427 "type": "boolean"
1428 },
1429 "paidParkingLot": {
1430 "description": "Place offers paid parking lots.",
1431 "type": "boolean"
1432 },
1433 "paidStreetParking": {
1434 "description": "Place offers paid street parking.",
1435 "type": "boolean"
1436 },
1437 "valetParking": {
1438 "description": "Place offers valet parking.",
1439 "type": "boolean"
1440 }
1441 },
1442 "type": "object"
1443 },
1444 "GoogleMapsPlacesV1PlacePaymentOptions": {
1445 "description": "Payment options the place accepts.",
1446 "id": "GoogleMapsPlacesV1PlacePaymentOptions",
1447 "properties": {
1448 "acceptsCashOnly": {
1449 "description": "Place accepts cash only as payment. Places with this attribute may still accept other payment methods.",
1450 "type": "boolean"
1451 },
1452 "acceptsCreditCards": {
1453 "description": "Place accepts credit cards as payment.",
1454 "type": "boolean"
1455 },
1456 "acceptsDebitCards": {
1457 "description": "Place accepts debit cards as payment.",
1458 "type": "boolean"
1459 },
1460 "acceptsNfc": {
1461 "description": "Place accepts NFC payments.",
1462 "type": "boolean"
1463 }
1464 },
1465 "type": "object"
1466 },
1467 "GoogleMapsPlacesV1PlacePlusCode": {
1468 "description": "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.",
1469 "id": "GoogleMapsPlacesV1PlacePlusCode",
1470 "properties": {
1471 "compoundCode": {
1472 "description": "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.",
1473 "type": "string"
1474 },
1475 "globalCode": {
1476 "description": "Place's global (full) code, such as \"9FWM33GV+HQ\", representing an 1/8000 by 1/8000 degree area (~14 by 14 meters).",
1477 "type": "string"
1478 }
1479 },
1480 "type": "object"
1481 },
1482 "GoogleMapsPlacesV1PlaceSubDestination": {
1483 "description": "Place resource name and id of sub destinations that relate to the place. For example, different terminals are different destinations of an airport.",
1484 "id": "GoogleMapsPlacesV1PlaceSubDestination",
1485 "properties": {
1486 "id": {
1487 "description": "The place id of the sub destination.",
1488 "type": "string"
1489 },
1490 "name": {
1491 "description": "The resource name of the sub destination.",
1492 "type": "string"
1493 }
1494 },
1495 "type": "object"
1496 },
1497 "GoogleMapsPlacesV1References": {
1498 "description": "Experimental: See https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative for more details. Reference that the generative content is related to.",
1499 "id": "GoogleMapsPlacesV1References",
1500 "properties": {
1501 "places": {
1502 "description": "The list of resource names of the referenced places. This name can be used in other APIs that accept Place resource names.",
1503 "items": {
1504 "type": "string"
1505 },
1506 "type": "array"
1507 },
1508 "reviews": {
1509 "description": "Reviews that serve as references.",
1510 "items": {
1511 "$ref": "GoogleMapsPlacesV1Review"
1512 },
1513 "type": "array"
1514 }
1515 },
1516 "type": "object"
1517 },
1518 "GoogleMapsPlacesV1Review": {
1519 "description": "Information about a review of a place.",
1520 "id": "GoogleMapsPlacesV1Review",
1521 "properties": {
1522 "authorAttribution": {
1523 "$ref": "GoogleMapsPlacesV1AuthorAttribution",
1524 "description": "This review's author."
1525 },
1526 "name": {
1527 "description": "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}`).",
1528 "type": "string"
1529 },
1530 "originalText": {
1531 "$ref": "GoogleTypeLocalizedText",
1532 "description": "The review text in its original language."
1533 },
1534 "publishTime": {
1535 "description": "Timestamp for the review.",
1536 "format": "google-datetime",
1537 "type": "string"
1538 },
1539 "rating": {
1540 "description": "A number between 1.0 and 5.0, also called the number of stars.",
1541 "format": "double",
1542 "type": "number"
1543 },
1544 "relativePublishTimeDescription": {
1545 "description": "A string of formatted recent time, expressing the review time relative to the current time in a form appropriate for the language and country.",
1546 "type": "string"
1547 },
1548 "text": {
1549 "$ref": "GoogleTypeLocalizedText",
1550 "description": "The localized text of the review."
1551 }
1552 },
1553 "type": "object"
1554 },
1555 "GoogleMapsPlacesV1SearchNearbyRequest": {
1556 "description": "Request proto for Search Nearby. ",
1557 "id": "GoogleMapsPlacesV1SearchNearbyRequest",
1558 "properties": {
1559 "excludedPrimaryTypes": {
1560 "description": "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\".",
1561 "items": {
1562 "type": "string"
1563 },
1564 "type": "array"
1565 },
1566 "excludedTypes": {
1567 "description": "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\".",
1568 "items": {
1569 "type": "string"
1570 },
1571 "type": "array"
1572 },
1573 "includedPrimaryTypes": {
1574 "description": "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\".",
1575 "items": {
1576 "type": "string"
1577 },
1578 "type": "array"
1579 },
1580 "includedTypes": {
1581 "description": "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\".",
1582 "items": {
1583 "type": "string"
1584 },
1585 "type": "array"
1586 },
1587 "languageCode": {
1588 "description": "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.",
1589 "type": "string"
1590 },
1591 "locationRestriction": {
1592 "$ref": "GoogleMapsPlacesV1SearchNearbyRequestLocationRestriction",
1593 "description": "Required. The region to search."
1594 },
1595 "maxResultCount": {
1596 "description": "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.",
1597 "format": "int32",
1598 "type": "integer"
1599 },
1600 "rankPreference": {
1601 "description": "How results will be ranked in the response.",
1602 "enum": [
1603 "RANK_PREFERENCE_UNSPECIFIED",
1604 "DISTANCE",
1605 "POPULARITY"
1606 ],
1607 "enumDescriptions": [
1608 "RankPreference value not set. Will use rank by POPULARITY by default.",
1609 "Ranks results by distance.",
1610 "Ranks results by popularity."
1611 ],
1612 "type": "string"
1613 },
1614 "regionCode": {
1615 "description": "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.",
1616 "type": "string"
1617 }
1618 },
1619 "type": "object"
1620 },
1621 "GoogleMapsPlacesV1SearchNearbyRequestLocationRestriction": {
1622 "description": "The region to search.",
1623 "id": "GoogleMapsPlacesV1SearchNearbyRequestLocationRestriction",
1624 "properties": {
1625 "circle": {
1626 "$ref": "GoogleMapsPlacesV1Circle",
1627 "description": "A circle defined by center point and radius."
1628 }
1629 },
1630 "type": "object"
1631 },
1632 "GoogleMapsPlacesV1SearchNearbyResponse": {
1633 "description": "Response proto for Search Nearby. ",
1634 "id": "GoogleMapsPlacesV1SearchNearbyResponse",
1635 "properties": {
1636 "places": {
1637 "description": "A list of places that meets user's requirements like places types, number of places and specific location restriction.",
1638 "items": {
1639 "$ref": "GoogleMapsPlacesV1Place"
1640 },
1641 "type": "array"
1642 }
1643 },
1644 "type": "object"
1645 },
1646 "GoogleMapsPlacesV1SearchTextRequest": {
1647 "description": "Request proto for SearchText. ",
1648 "id": "GoogleMapsPlacesV1SearchTextRequest",
1649 "properties": {
1650 "evOptions": {
1651 "$ref": "GoogleMapsPlacesV1SearchTextRequestEVOptions",
1652 "description": "Optional. Set the searchable EV options of a place search request."
1653 },
1654 "includedType": {
1655 "description": "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.",
1656 "type": "string"
1657 },
1658 "languageCode": {
1659 "description": "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.",
1660 "type": "string"
1661 },
1662 "locationBias": {
1663 "$ref": "GoogleMapsPlacesV1SearchTextRequestLocationBias",
1664 "description": "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."
1665 },
1666 "locationRestriction": {
1667 "$ref": "GoogleMapsPlacesV1SearchTextRequestLocationRestriction",
1668 "description": "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."
1669 },
1670 "maxResultCount": {
1671 "deprecated": true,
1672 "description": "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.",
1673 "format": "int32",
1674 "type": "integer"
1675 },
1676 "minRating": {
1677 "description": "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.",
1678 "format": "double",
1679 "type": "number"
1680 },
1681 "openNow": {
1682 "description": "Used to restrict the search to places that are currently open. The default is false.",
1683 "type": "boolean"
1684 },
1685 "pageSize": {
1686 "description": "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.",
1687 "format": "int32",
1688 "type": "integer"
1689 },
1690 "pageToken": {
1691 "description": "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.",
1692 "type": "string"
1693 },
1694 "priceLevels": {
1695 "description": "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.",
1696 "items": {
1697 "enum": [
1698 "PRICE_LEVEL_UNSPECIFIED",
1699 "PRICE_LEVEL_FREE",
1700 "PRICE_LEVEL_INEXPENSIVE",
1701 "PRICE_LEVEL_MODERATE",
1702 "PRICE_LEVEL_EXPENSIVE",
1703 "PRICE_LEVEL_VERY_EXPENSIVE"
1704 ],
1705 "enumDescriptions": [
1706 "Place price level is unspecified or unknown.",
1707 "Place provides free services.",
1708 "Place provides inexpensive services.",
1709 "Place provides moderately priced services.",
1710 "Place provides expensive services.",
1711 "Place provides very expensive services."
1712 ],
1713 "type": "string"
1714 },
1715 "type": "array"
1716 },
1717 "rankPreference": {
1718 "description": "How results will be ranked in the response.",
1719 "enum": [
1720 "RANK_PREFERENCE_UNSPECIFIED",
1721 "DISTANCE",
1722 "RELEVANCE"
1723 ],
1724 "enumDescriptions": [
1725 "For a categorical query such as \"Restaurants in New York City\", RELEVANCE is the default. For non-categorical queries such as \"Mountain View, CA\" we recommend that you leave rankPreference unset.",
1726 "Ranks results by distance.",
1727 "Ranks results by relevance. Sort order determined by normal ranking stack."
1728 ],
1729 "type": "string"
1730 },
1731 "regionCode": {
1732 "description": "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.",
1733 "type": "string"
1734 },
1735 "strictTypeFiltering": {
1736 "description": "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.",
1737 "type": "boolean"
1738 },
1739 "textQuery": {
1740 "description": "Required. The text query for textual search.",
1741 "type": "string"
1742 }
1743 },
1744 "type": "object"
1745 },
1746 "GoogleMapsPlacesV1SearchTextRequestEVOptions": {
1747 "description": "Searchable EV options of a place search request.",
1748 "id": "GoogleMapsPlacesV1SearchTextRequestEVOptions",
1749 "properties": {
1750 "connectorTypes": {
1751 "description": "Optional. The list of preferred EV connector types. A place that does not support any of the listed connector types is filtered out.",
1752 "items": {
1753 "enum": [
1754 "EV_CONNECTOR_TYPE_UNSPECIFIED",
1755 "EV_CONNECTOR_TYPE_OTHER",
1756 "EV_CONNECTOR_TYPE_J1772",
1757 "EV_CONNECTOR_TYPE_TYPE_2",
1758 "EV_CONNECTOR_TYPE_CHADEMO",
1759 "EV_CONNECTOR_TYPE_CCS_COMBO_1",
1760 "EV_CONNECTOR_TYPE_CCS_COMBO_2",
1761 "EV_CONNECTOR_TYPE_TESLA",
1762 "EV_CONNECTOR_TYPE_UNSPECIFIED_GB_T",
1763 "EV_CONNECTOR_TYPE_UNSPECIFIED_WALL_OUTLET"
1764 ],
1765 "enumDescriptions": [
1766 "Unspecified connector.",
1767 "Other connector types.",
1768 "J1772 type 1 connector.",
1769 "IEC 62196 type 2 connector. Often referred to as MENNEKES.",
1770 "CHAdeMO type connector.",
1771 "Combined Charging System (AC and DC). Based on SAE. Type-1 J-1772 connector",
1772 "Combined Charging System (AC and DC). Based on Type-2 Mennekes connector",
1773 "The generic TESLA connector. This is NACS in the North America but can be non-NACS in other parts of the world (e.g. CCS Combo 2 (CCS2) or GB/T). This value is less representative of an actual connector type, and more represents the ability to charge a Tesla brand vehicle at a Tesla owned charging station.",
1774 "GB/T type corresponds to the GB/T standard in China. This type covers all GB_T types.",
1775 "Unspecified wall outlet."
1776 ],
1777 "type": "string"
1778 },
1779 "type": "array"
1780 },
1781 "minimumChargingRateKw": {
1782 "description": "Optional. Minimum required charging rate in kilowatts. A place with a charging rate less than the specified rate is filtered out.",
1783 "format": "double",
1784 "type": "number"
1785 }
1786 },
1787 "type": "object"
1788 },
1789 "GoogleMapsPlacesV1SearchTextRequestLocationBias": {
1790 "description": "The region to search. This location serves as a bias which means results around given location might be returned.",
1791 "id": "GoogleMapsPlacesV1SearchTextRequestLocationBias",
1792 "properties": {
1793 "circle": {
1794 "$ref": "GoogleMapsPlacesV1Circle",
1795 "description": "A circle defined by center point and radius."
1796 },
1797 "rectangle": {
1798 "$ref": "GoogleGeoTypeViewport",
1799 "description": "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."
1800 }
1801 },
1802 "type": "object"
1803 },
1804 "GoogleMapsPlacesV1SearchTextRequestLocationRestriction": {
1805 "description": "The region to search. This location serves as a restriction which means results outside given location will not be returned.",
1806 "id": "GoogleMapsPlacesV1SearchTextRequestLocationRestriction",
1807 "properties": {
1808 "rectangle": {
1809 "$ref": "GoogleGeoTypeViewport",
1810 "description": "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."
1811 }
1812 },
1813 "type": "object"
1814 },
1815 "GoogleMapsPlacesV1SearchTextResponse": {
1816 "description": "Response proto for SearchText. ",
1817 "id": "GoogleMapsPlacesV1SearchTextResponse",
1818 "properties": {
1819 "contextualContents": {
1820 "description": "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 should have as many entries as the list of places if requested.",
1821 "items": {
1822 "$ref": "GoogleMapsPlacesV1ContextualContent"
1823 },
1824 "type": "array"
1825 },
1826 "nextPageToken": {
1827 "description": "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.",
1828 "type": "string"
1829 },
1830 "places": {
1831 "description": "A list of places that meet the user's text search criteria.",
1832 "items": {
1833 "$ref": "GoogleMapsPlacesV1Place"
1834 },
1835 "type": "array"
1836 }
1837 },
1838 "type": "object"
1839 },
1840 "GoogleTypeDate": {
1841 "description": "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",
1842 "id": "GoogleTypeDate",
1843 "properties": {
1844 "day": {
1845 "description": "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.",
1846 "format": "int32",
1847 "type": "integer"
1848 },
1849 "month": {
1850 "description": "Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.",
1851 "format": "int32",
1852 "type": "integer"
1853 },
1854 "year": {
1855 "description": "Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.",
1856 "format": "int32",
1857 "type": "integer"
1858 }
1859 },
1860 "type": "object"
1861 },
1862 "GoogleTypeLatLng": {
1863 "description": "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.",
1864 "id": "GoogleTypeLatLng",
1865 "properties": {
1866 "latitude": {
1867 "description": "The latitude in degrees. It must be in the range [-90.0, +90.0].",
1868 "format": "double",
1869 "type": "number"
1870 },
1871 "longitude": {
1872 "description": "The longitude in degrees. It must be in the range [-180.0, +180.0].",
1873 "format": "double",
1874 "type": "number"
1875 }
1876 },
1877 "type": "object"
1878 },
1879 "GoogleTypeLocalizedText": {
1880 "description": "Localized variant of a text in a particular language.",
1881 "id": "GoogleTypeLocalizedText",
1882 "properties": {
1883 "languageCode": {
1884 "description": "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.",
1885 "type": "string"
1886 },
1887 "text": {
1888 "description": "Localized string in the language corresponding to language_code below.",
1889 "type": "string"
1890 }
1891 },
1892 "type": "object"
1893 },
1894 "GoogleTypeMoney": {
1895 "description": "Represents an amount of money with its currency type.",
1896 "id": "GoogleTypeMoney",
1897 "properties": {
1898 "currencyCode": {
1899 "description": "The three-letter currency code defined in ISO 4217.",
1900 "type": "string"
1901 },
1902 "nanos": {
1903 "description": "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.",
1904 "format": "int32",
1905 "type": "integer"
1906 },
1907 "units": {
1908 "description": "The whole units of the amount. For example if `currencyCode` is `\"USD\"`, then 1 unit is one US dollar.",
1909 "format": "int64",
1910 "type": "string"
1911 }
1912 },
1913 "type": "object"
1914 }
1915 },
1916 "servicePath": "",
1917 "title": "Places API (New)",
1918 "version": "v1",
1919 "version_module": true
1920}
View as plain text