@googlemaps/places 1.0.1 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/README.md +3 -0
- package/build/protos/google/maps/places/v1/attribution.proto +44 -0
- package/build/protos/google/maps/places/v1/ev_charging.proto +111 -0
- package/build/protos/google/maps/places/v1/fuel_options.proto +109 -0
- package/build/protos/google/maps/places/v1/geometry.proto +4 -4
- package/build/protos/google/maps/places/v1/photo.proto +54 -0
- package/build/protos/google/maps/places/v1/place.proto +199 -84
- package/build/protos/google/maps/places/v1/places_service.proto +298 -56
- package/build/protos/google/maps/places/v1/review.proto +65 -0
- package/build/protos/protos.d.ts +7895 -5734
- package/build/protos/protos.js +24833 -18827
- package/build/protos/protos.json +2762 -1951
- package/build/src/index.js +1 -1
- package/build/src/v1/index.js +1 -1
- package/build/src/v1/places_client.d.ts +343 -30
- package/build/src/v1/places_client.js +240 -11
- package/build/src/v1/places_client.js.map +1 -1
- package/build/src/v1/places_client_config.json +12 -0
- package/package.json +7 -7
|
@@ -16,9 +16,12 @@ syntax = "proto3";
|
|
|
16
16
|
|
|
17
17
|
package google.maps.places.v1;
|
|
18
18
|
|
|
19
|
-
import "google/api/
|
|
19
|
+
import "google/api/resource.proto";
|
|
20
20
|
import "google/geo/type/viewport.proto";
|
|
21
|
-
import "google/
|
|
21
|
+
import "google/maps/places/v1/ev_charging.proto";
|
|
22
|
+
import "google/maps/places/v1/fuel_options.proto";
|
|
23
|
+
import "google/maps/places/v1/photo.proto";
|
|
24
|
+
import "google/maps/places/v1/review.proto";
|
|
22
25
|
import "google/type/date.proto";
|
|
23
26
|
import "google/type/latlng.proto";
|
|
24
27
|
import "google/type/localized_text.proto";
|
|
@@ -34,6 +37,13 @@ option php_namespace = "Google\\Maps\\Places\\V1";
|
|
|
34
37
|
|
|
35
38
|
// All the information representing a Place.
|
|
36
39
|
message Place {
|
|
40
|
+
option (google.api.resource) = {
|
|
41
|
+
type: "places.googleapis.com/Place"
|
|
42
|
+
pattern: "places/{place_id}"
|
|
43
|
+
plural: "places"
|
|
44
|
+
singular: "place"
|
|
45
|
+
};
|
|
46
|
+
|
|
37
47
|
// The structured components that form the formatted address, if this
|
|
38
48
|
// information is available.
|
|
39
49
|
message AddressComponent {
|
|
@@ -58,62 +68,22 @@ message Place {
|
|
|
58
68
|
// global code defining a 14mx14m (1/8000th of a degree) or smaller rectangle,
|
|
59
69
|
// and compound code, replacing the prefix with a reference location.
|
|
60
70
|
message PlusCode {
|
|
61
|
-
// Place's global (full) code, such as
|
|
71
|
+
// Place's global (full) code, such as "9FWM33GV+HQ", representing an
|
|
62
72
|
// 1/8000 by 1/8000 degree area (~14 by 14 meters).
|
|
63
73
|
string global_code = 1;
|
|
64
74
|
|
|
65
|
-
// Place's compound code, such as
|
|
75
|
+
// Place's compound code, such as "33GV+HQ, Ramberg, Norway", containing
|
|
66
76
|
// the suffix of the global code and replacing the prefix with a formatted
|
|
67
77
|
// name of a reference entity.
|
|
68
78
|
string compound_code = 2;
|
|
69
79
|
}
|
|
70
80
|
|
|
71
|
-
// Information about a review of the place.
|
|
72
|
-
message Review {
|
|
73
|
-
// Timestamp for the review, expressed in seconds since epoch.
|
|
74
|
-
google.protobuf.Timestamp publish_time = 1;
|
|
75
|
-
|
|
76
|
-
// A string of formatted recent time, expressing the review time relative
|
|
77
|
-
// to the current time in a form appropriate for the language and country.
|
|
78
|
-
string relative_publish_time_description = 2;
|
|
79
|
-
|
|
80
|
-
// The localized text of the review.
|
|
81
|
-
google.type.LocalizedText text = 9;
|
|
82
|
-
|
|
83
|
-
// The name of the review author.
|
|
84
|
-
string author = 4;
|
|
85
|
-
|
|
86
|
-
// A link to the review author's profile.
|
|
87
|
-
string author_uri = 5;
|
|
88
|
-
|
|
89
|
-
// The author's profile photo.
|
|
90
|
-
string author_photo_uri = 6;
|
|
91
|
-
|
|
92
|
-
// A whole number between 1.0 and 5.0, a.k.a. the number of stars.
|
|
93
|
-
double rating = 7;
|
|
94
|
-
|
|
95
|
-
// A BCP-47 language code indicating the original language of the review.
|
|
96
|
-
// If the review has been translated, then original_language != language.
|
|
97
|
-
// This field contains the main language tag only, and not the secondary tag
|
|
98
|
-
// indicating country or region. For example, all the English reviews are
|
|
99
|
-
// tagged as 'en', and not 'en-AU' or 'en-UK' and so on.This field is empty
|
|
100
|
-
// if there is only a rating with no review text.
|
|
101
|
-
string original_language_code = 10;
|
|
102
|
-
|
|
103
|
-
// A boolean value indicating if the review was translated from the original
|
|
104
|
-
// language it was written in. If a review has been translated,
|
|
105
|
-
// corresponding to a value of true, Google recommends that you indicate
|
|
106
|
-
// this to your users. For example, you can add the following string,
|
|
107
|
-
// “Translated by Google”, to the review.
|
|
108
|
-
bool translated = 11;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
81
|
// Information about business hour of the place.
|
|
112
82
|
message OpeningHours {
|
|
113
83
|
// A period the place remains in open_now status.
|
|
114
|
-
message
|
|
84
|
+
message Period {
|
|
115
85
|
// Status changing points.
|
|
116
|
-
message
|
|
86
|
+
message Point {
|
|
117
87
|
// A day of the week, as an integer in the range 0-6. 0 is Sunday, 1 is
|
|
118
88
|
// Monday, etc.
|
|
119
89
|
optional int32 day = 1;
|
|
@@ -124,32 +94,28 @@ message Place {
|
|
|
124
94
|
// The minute in 2 digits. Ranges from 00 to 59.
|
|
125
95
|
optional int32 minute = 3;
|
|
126
96
|
|
|
127
|
-
// Date of the endpoint expressed in `RFC3339` format in the local
|
|
128
|
-
// timezone for the place. For example 2010-12-31.
|
|
129
|
-
string date_deprecated = 4 [deprecated = true];
|
|
130
|
-
|
|
131
97
|
// Date in the local timezone for the place.
|
|
132
98
|
google.type.Date date = 6;
|
|
133
99
|
|
|
134
100
|
// Whether or not this endpoint was truncated. Truncation occurs when
|
|
135
101
|
// the real hours are outside the times we are willing to return hours
|
|
136
102
|
// between, so we truncate the hours back to these boundaries. This
|
|
137
|
-
// ensures that at most
|
|
103
|
+
// ensures that at most 24 * 7 hours from midnight of the day of the
|
|
138
104
|
// request are returned.
|
|
139
105
|
bool truncated = 5;
|
|
140
106
|
}
|
|
141
107
|
|
|
142
108
|
// The time that the place starts to be open.
|
|
143
|
-
|
|
109
|
+
Point open = 1;
|
|
144
110
|
|
|
145
111
|
// The time that the place starts to be closed.
|
|
146
|
-
|
|
112
|
+
Point close = 2;
|
|
147
113
|
}
|
|
148
114
|
|
|
149
115
|
// A type used to identify the type of secondary hours.
|
|
150
|
-
enum
|
|
116
|
+
enum SecondaryHoursType {
|
|
151
117
|
// Default value when secondary hour type is not specified.
|
|
152
|
-
|
|
118
|
+
SECONDARY_HOURS_TYPE_UNSPECIFIED = 0;
|
|
153
119
|
|
|
154
120
|
// The drive-through hour for banks, restaurants, or pharmacies.
|
|
155
121
|
DRIVE_THROUGH = 1;
|
|
@@ -201,13 +167,13 @@ message Place {
|
|
|
201
167
|
|
|
202
168
|
// Is this place open right now? Always present unless we lack time-of-day
|
|
203
169
|
// or timezone data for these opening hours.
|
|
204
|
-
bool open_now = 1;
|
|
170
|
+
optional bool open_now = 1;
|
|
205
171
|
|
|
206
172
|
// The periods that this place is open during the week. The periods are in
|
|
207
173
|
// chronological order, starting with Sunday in the place-local timezone. An
|
|
208
174
|
// empty (but not absent) value indicates a place that is never open, e.g.
|
|
209
175
|
// because it is closed temporarily for renovations.
|
|
210
|
-
repeated
|
|
176
|
+
repeated Period periods = 2;
|
|
211
177
|
|
|
212
178
|
// Localized strings describing the opening hours of this place, one string
|
|
213
179
|
// for each day of the week. Will be empty if the hours are unknown or
|
|
@@ -215,7 +181,7 @@ message Place {
|
|
|
215
181
|
repeated string weekday_descriptions = 3;
|
|
216
182
|
|
|
217
183
|
// A type string used to identify the type of secondary hours.
|
|
218
|
-
|
|
184
|
+
SecondaryHoursType secondary_hours_type = 4;
|
|
219
185
|
|
|
220
186
|
// Structured information for special days that fall within the period that
|
|
221
187
|
// the returned opening hours cover. Special days are days that could impact
|
|
@@ -249,25 +215,104 @@ message Place {
|
|
|
249
215
|
string provider_uri = 2;
|
|
250
216
|
}
|
|
251
217
|
|
|
252
|
-
//
|
|
253
|
-
message
|
|
254
|
-
//
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
218
|
+
// Payment options the place accepts.
|
|
219
|
+
message PaymentOptions {
|
|
220
|
+
// Place accepts credit cards as payment.
|
|
221
|
+
optional bool accepts_credit_cards = 1;
|
|
222
|
+
|
|
223
|
+
// Place accepts debit cards as payment.
|
|
224
|
+
optional bool accepts_debit_cards = 2;
|
|
225
|
+
|
|
226
|
+
// Place accepts cash only as payment. Places with this attribute may still
|
|
227
|
+
// accept other payment methods.
|
|
228
|
+
optional bool accepts_cash_only = 3;
|
|
229
|
+
|
|
230
|
+
// Place accepts NFC payments.
|
|
231
|
+
optional bool accepts_nfc = 4;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
// Information about parking options for the place. A parking lot could
|
|
235
|
+
// support more than one option at the same time.
|
|
236
|
+
message ParkingOptions {
|
|
237
|
+
// Place offers free parking lots.
|
|
238
|
+
optional bool free_parking_lot = 1;
|
|
239
|
+
|
|
240
|
+
// Place offers paid parking lots.
|
|
241
|
+
optional bool paid_parking_lot = 2;
|
|
242
|
+
|
|
243
|
+
// Place offers free street parking.
|
|
244
|
+
optional bool free_street_parking = 3;
|
|
245
|
+
|
|
246
|
+
// Place offers paid street parking.
|
|
247
|
+
optional bool paid_street_parking = 4;
|
|
248
|
+
|
|
249
|
+
// Place offers valet parking.
|
|
250
|
+
optional bool valet_parking = 5;
|
|
251
|
+
|
|
252
|
+
// Place offers free garage parking.
|
|
253
|
+
optional bool free_garage_parking = 6;
|
|
254
|
+
|
|
255
|
+
// Place offers paid garage parking.
|
|
256
|
+
optional bool paid_garage_parking = 7;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
// Place resource name and id of sub destinations that relate to the place.
|
|
260
|
+
// For example, different terminals are different destinations of an airport.
|
|
261
|
+
message SubDestination {
|
|
262
|
+
// The resource name of the sub destination.
|
|
263
|
+
string name = 1 [
|
|
264
|
+
(google.api.resource_reference) = { type: "places.googleapis.com/Place" }
|
|
265
|
+
];
|
|
266
|
+
|
|
267
|
+
// The place id of the sub destination.
|
|
268
|
+
string id = 2;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
// Information about the accessibility options a place offers.
|
|
272
|
+
message AccessibilityOptions {
|
|
273
|
+
// Place offers wheelchair accessible parking.
|
|
274
|
+
optional bool wheelchair_accessible_parking = 1;
|
|
275
|
+
|
|
276
|
+
// Places has wheelchair accessible entrance.
|
|
277
|
+
optional bool wheelchair_accessible_entrance = 2;
|
|
278
|
+
|
|
279
|
+
// Place has wheelchair accessible restroom.
|
|
280
|
+
optional bool wheelchair_accessible_restroom = 3;
|
|
281
|
+
|
|
282
|
+
// Place has wheelchair accessible seating.
|
|
283
|
+
optional bool wheelchair_accessible_seating = 4;
|
|
258
284
|
}
|
|
259
285
|
|
|
260
|
-
//
|
|
261
|
-
|
|
286
|
+
// An ID representing this place which may be used to look up this place
|
|
287
|
+
// again (a.k.a. the API "resource" name: places/place_id).
|
|
288
|
+
string name = 1;
|
|
289
|
+
|
|
290
|
+
// The unique identifier of a place.
|
|
291
|
+
string id = 2;
|
|
262
292
|
|
|
263
293
|
// The localized name of the place, suitable as a short human-readable
|
|
264
294
|
// description. For example, "Google Sydney", "Starbucks", "Pyrmont", etc.
|
|
265
295
|
google.type.LocalizedText display_name = 31;
|
|
266
296
|
|
|
267
297
|
// A set of type tags for this result. For example, "political" and
|
|
268
|
-
// "locality".
|
|
298
|
+
// "locality". For the complete list of possible values, see Table A and
|
|
299
|
+
// Table B at
|
|
300
|
+
// https://developers.google.com/maps/documentation/places/web-service/place-types
|
|
269
301
|
repeated string types = 5;
|
|
270
302
|
|
|
303
|
+
// The primary type of the given result. This type must one of the Places API
|
|
304
|
+
// supported types. For example, "restaurant", "cafe", "airport", etc. A
|
|
305
|
+
// place can only have a single primary type. For the complete list of
|
|
306
|
+
// possible values, see Table A and Table B at
|
|
307
|
+
// https://developers.google.com/maps/documentation/places/web-service/place-types
|
|
308
|
+
string primary_type = 50;
|
|
309
|
+
|
|
310
|
+
// The display name of the primary type, localized to the request language if
|
|
311
|
+
// applicable. For the complete list of possible values, see Table A and
|
|
312
|
+
// Table B at
|
|
313
|
+
// https://developers.google.com/maps/documentation/places/web-service/place-types
|
|
314
|
+
google.type.LocalizedText primary_type_display_name = 32;
|
|
315
|
+
|
|
271
316
|
// A human-readable phone number for the place, in national format.
|
|
272
317
|
string national_phone_number = 7;
|
|
273
318
|
|
|
@@ -277,7 +322,23 @@ message Place {
|
|
|
277
322
|
// A full, human-readable address for this place.
|
|
278
323
|
string formatted_address = 9;
|
|
279
324
|
|
|
325
|
+
// A short, human-readable address for this place.
|
|
326
|
+
string short_formatted_address = 51;
|
|
327
|
+
|
|
280
328
|
// Repeated components for each locality level.
|
|
329
|
+
// Note the following facts about the address_components[] array:
|
|
330
|
+
// - The array of address components may contain more components than the
|
|
331
|
+
// formatted_address.
|
|
332
|
+
// - The array does not necessarily include all the political entities that
|
|
333
|
+
// contain an address, apart from those included in the formatted_address. To
|
|
334
|
+
// retrieve all the political entities that contain a specific address, you
|
|
335
|
+
// should use reverse geocoding, passing the latitude/longitude of the address
|
|
336
|
+
// as a parameter to the request.
|
|
337
|
+
// - The format of the response is not guaranteed to remain the same between
|
|
338
|
+
// requests. In particular, the number of address_components varies based on
|
|
339
|
+
// the address requested and can change over time for the same address. A
|
|
340
|
+
// component can change position in the array. The type of the component can
|
|
341
|
+
// change. A particular component may be missing in a later response.
|
|
281
342
|
repeated AddressComponent address_components = 10;
|
|
282
343
|
|
|
283
344
|
// Plus code of the place location lat/long.
|
|
@@ -301,16 +362,19 @@ message Place {
|
|
|
301
362
|
// chain.
|
|
302
363
|
string website_uri = 16;
|
|
303
364
|
|
|
304
|
-
// List of reviews about this place.
|
|
305
|
-
repeated Review reviews =
|
|
365
|
+
// List of reviews about this place, sorted by relevance.
|
|
366
|
+
repeated Review reviews = 53;
|
|
306
367
|
|
|
307
368
|
// The regular hours of operation.
|
|
308
|
-
OpeningHours
|
|
369
|
+
OpeningHours regular_opening_hours = 21;
|
|
309
370
|
|
|
310
371
|
// Number of minutes this place's timezone is currently offset from UTC.
|
|
311
372
|
// This is expressed in minutes to support timezones that are offset by
|
|
312
373
|
// fractions of an hour, e.g. X hours and 15 minutes.
|
|
313
|
-
int32 utc_offset_minutes = 22;
|
|
374
|
+
optional int32 utc_offset_minutes = 22;
|
|
375
|
+
|
|
376
|
+
// Information (including references) about photos of this place.
|
|
377
|
+
repeated Photo photos = 54;
|
|
314
378
|
|
|
315
379
|
// The place's address in adr microformat: http://microformats.org/wiki/adr.
|
|
316
380
|
string adr_format_address = 24;
|
|
@@ -325,9 +389,9 @@ message Place {
|
|
|
325
389
|
repeated Attribution attributions = 27;
|
|
326
390
|
|
|
327
391
|
// The total number of reviews (with or without text) for this place.
|
|
328
|
-
int32 user_rating_count = 28;
|
|
392
|
+
optional int32 user_rating_count = 28;
|
|
329
393
|
|
|
330
|
-
// A truncated URL to an
|
|
394
|
+
// A truncated URL to an icon mask. User can access different icon type by
|
|
331
395
|
// appending type suffix to the end (eg, ".svg" or ".png").
|
|
332
396
|
string icon_mask_base_uri = 29;
|
|
333
397
|
|
|
@@ -346,9 +410,6 @@ message Place {
|
|
|
346
410
|
// Specifies if the business supports curbside pickup.
|
|
347
411
|
optional bool curbside_pickup = 36;
|
|
348
412
|
|
|
349
|
-
// Specifies if the place has an entrance that is wheelchair-accessible.
|
|
350
|
-
optional bool wheelchair_accessible_entrance = 37;
|
|
351
|
-
|
|
352
413
|
// Specifies if the place supports reservations.
|
|
353
414
|
optional bool reservable = 38;
|
|
354
415
|
|
|
@@ -395,12 +456,65 @@ message Place {
|
|
|
395
456
|
// as its secondary hours. This field populates the type subfield, which draws
|
|
396
457
|
// from a predefined list of opening hours types (such as DRIVE_THROUGH,
|
|
397
458
|
// PICKUP, or TAKEOUT) based on the types of the place.
|
|
398
|
-
repeated OpeningHours
|
|
459
|
+
repeated OpeningHours regular_secondary_opening_hours = 49;
|
|
399
460
|
|
|
400
461
|
// Contains a summary of the place. A summary is comprised of a textual
|
|
401
462
|
// overview, and also includes the language code for these if applicable.
|
|
402
463
|
// Summary text must be presented as-is and can not be modified or altered.
|
|
403
|
-
|
|
464
|
+
google.type.LocalizedText editorial_summary = 52;
|
|
465
|
+
|
|
466
|
+
// Place provides outdoor seating.
|
|
467
|
+
optional bool outdoor_seating = 55;
|
|
468
|
+
|
|
469
|
+
// Place provides live music.
|
|
470
|
+
optional bool live_music = 56;
|
|
471
|
+
|
|
472
|
+
// Place has a children's menu.
|
|
473
|
+
optional bool menu_for_children = 57;
|
|
474
|
+
|
|
475
|
+
// Place serves cocktails.
|
|
476
|
+
optional bool serves_cocktails = 58;
|
|
477
|
+
|
|
478
|
+
// Place serves dessert.
|
|
479
|
+
optional bool serves_dessert = 59;
|
|
480
|
+
|
|
481
|
+
// Place serves coffee.
|
|
482
|
+
optional bool serves_coffee = 60;
|
|
483
|
+
|
|
484
|
+
// Place is good for children.
|
|
485
|
+
optional bool good_for_children = 62;
|
|
486
|
+
|
|
487
|
+
// Place allows dogs.
|
|
488
|
+
optional bool allows_dogs = 63;
|
|
489
|
+
|
|
490
|
+
// Place has restroom.
|
|
491
|
+
optional bool restroom = 64;
|
|
492
|
+
|
|
493
|
+
// Place accommodates groups.
|
|
494
|
+
optional bool good_for_groups = 65;
|
|
495
|
+
|
|
496
|
+
// Place is suitable for watching sports.
|
|
497
|
+
optional bool good_for_watching_sports = 66;
|
|
498
|
+
|
|
499
|
+
// Payment options the place accepts. If a payment option data is not
|
|
500
|
+
// available, the payment option field will be unset.
|
|
501
|
+
PaymentOptions payment_options = 67;
|
|
502
|
+
|
|
503
|
+
// Options of parking provided by the place.
|
|
504
|
+
ParkingOptions parking_options = 70;
|
|
505
|
+
|
|
506
|
+
// A list of sub destinations related to the place.
|
|
507
|
+
repeated SubDestination sub_destinations = 71;
|
|
508
|
+
|
|
509
|
+
// Information about the accessibility options a place offers.
|
|
510
|
+
optional AccessibilityOptions accessibility_options = 72;
|
|
511
|
+
|
|
512
|
+
// The most recent information about fuel options in a gas station. This
|
|
513
|
+
// information is updated regularly.
|
|
514
|
+
FuelOptions fuel_options = 78;
|
|
515
|
+
|
|
516
|
+
// Information of ev charging options.
|
|
517
|
+
EVChargeOptions ev_charge_options = 79;
|
|
404
518
|
}
|
|
405
519
|
|
|
406
520
|
// Price level of the place.
|
|
@@ -408,17 +522,18 @@ enum PriceLevel {
|
|
|
408
522
|
// Place price level is unspecified or unknown.
|
|
409
523
|
PRICE_LEVEL_UNSPECIFIED = 0;
|
|
410
524
|
|
|
411
|
-
|
|
525
|
+
// Place provides free services.
|
|
526
|
+
PRICE_LEVEL_FREE = 1;
|
|
412
527
|
|
|
413
528
|
// Place provides inexpensive services.
|
|
414
|
-
|
|
529
|
+
PRICE_LEVEL_INEXPENSIVE = 2;
|
|
415
530
|
|
|
416
531
|
// Place provides moderately priced services.
|
|
417
|
-
|
|
532
|
+
PRICE_LEVEL_MODERATE = 3;
|
|
418
533
|
|
|
419
534
|
// Place provides expensive services.
|
|
420
|
-
|
|
535
|
+
PRICE_LEVEL_EXPENSIVE = 4;
|
|
421
536
|
|
|
422
|
-
// Place provides very expensive
|
|
423
|
-
|
|
537
|
+
// Place provides very expensive service s.
|
|
538
|
+
PRICE_LEVEL_VERY_EXPENSIVE = 5;
|
|
424
539
|
}
|