Skip to content

Commit 12188c4

Browse files
Closure Teamcopybara-github
Closure Team
authored andcommitted
chore: sync changes for Maps JS API v3.56.7.
PiperOrigin-RevId: 621996209
1 parent 7c2463d commit 12188c4

File tree

2 files changed

+252
-0
lines changed

2 files changed

+252
-0
lines changed

contrib/externs/maps/google_maps_api_v3_56.js

+126
Original file line numberDiff line numberDiff line change
@@ -7483,6 +7483,11 @@ google.maps.PlacesLibrary.prototype.SearchBox;
74837483
*/
74847484
google.maps.PlacesLibrary.prototype.SearchByTextRankPreference;
74857485

7486+
/**
7487+
* @type {typeof google.maps.places.SearchNearbyRankPreference}
7488+
*/
7489+
google.maps.PlacesLibrary.prototype.SearchNearbyRankPreference;
7490+
74867491
/**
74877492
*
74887493
* Access by calling `const {Point} = await google.maps.importLibrary("core")`.
@@ -16268,6 +16273,13 @@ google.maps.places.Place.prototype.openingHours;
1626816273
*/
1626916274
google.maps.places.Place.searchByText = function(request) {};
1627016275

16276+
/**
16277+
* Search for nearby places.
16278+
* @param {!google.maps.places.SearchNearbyRequest} request
16279+
* @return {!Promise<{places:!Array<!google.maps.places.Place>}>}
16280+
*/
16281+
google.maps.places.Place.searchNearby = function(request) {};
16282+
1627116283
/**
1627216284
* @param {!google.maps.places.FetchFieldsRequest} options
1627316285
* @return {!Promise<{place:!google.maps.places.Place}>}
@@ -17765,6 +17777,120 @@ google.maps.places.SearchByTextRequest.prototype.query;
1776517777
*/
1776617778
google.maps.places.SearchByTextRequest.prototype.rankBy;
1776717779

17780+
/**
17781+
* RankPreference enum for SearchNearbyRequest.
17782+
*
17783+
* Access by calling `const {SearchNearbyRankPreference} = await
17784+
* google.maps.importLibrary("places")`. See
17785+
* https://developers.google.com/maps/documentation/javascript/libraries.
17786+
* @enum {string}
17787+
*/
17788+
google.maps.places.SearchNearbyRankPreference = {
17789+
/**
17790+
* Ranks results by distance.
17791+
*/
17792+
DISTANCE: 'DISTANCE',
17793+
/**
17794+
* Ranks results by popularity.
17795+
*/
17796+
POPULARITY: 'POPULARITY',
17797+
};
17798+
17799+
/**
17800+
* Request interface for {@link google.maps.places.Place.searchNearby}. For more
17801+
* information on the request, see <a
17802+
* href="https://developers.google.com/maps/documentation/places/web-service/reference/rest/v1/places/searchNearby">Places
17803+
* API reference</a>.
17804+
* @record
17805+
*/
17806+
google.maps.places.SearchNearbyRequest = function() {};
17807+
17808+
/**
17809+
* Excluded primary place type. See the <a
17810+
* href="https://developers.google.com/maps/documentation/places/web-service/place-types">full
17811+
* list of types supported</a>. A place can only have a single primary type. Up
17812+
* to 50 types may be specified. If you specify the same type in both
17813+
* <code>included</code> and <code>excluded</code> lists, an INVALID_ARGUMENT
17814+
* error is returned.
17815+
* @type {!Array<string>|undefined}
17816+
*/
17817+
google.maps.places.SearchNearbyRequest.prototype.excludedPrimaryTypes;
17818+
17819+
/**
17820+
* Fields to be included in the response, <a
17821+
* href="https://developers.google.com/maps/billing/understanding-cost-of-use#places-product">which
17822+
* will be billed for</a>. If <code>[&#39;*&#39;]</code> is passed in, all
17823+
* available fields will be returned and billed for (this is not recommended for
17824+
* production deployments). For a list of fields see {@link
17825+
* google.maps.places.PlaceResult}. Nested fields can be specified with
17826+
* dot-paths (for example, <code>"geometry.location"</code>).
17827+
* @type {!Array<string>}
17828+
*/
17829+
google.maps.places.SearchNearbyRequest.prototype.fields;
17830+
17831+
/**
17832+
* Included primary place type. See the <a
17833+
* href="https://developers.google.com/maps/documentation/places/web-service/place-types">full
17834+
* list of types supported</a>. A place can only have a single primary type. Up
17835+
* to 50 types may be specified. If you specify the same type in both
17836+
* <code>included</code> and <code>excluded</code> lists, an INVALID_ARGUMENT
17837+
* error is returned.
17838+
* @type {!Array<string>|undefined}
17839+
*/
17840+
google.maps.places.SearchNearbyRequest.prototype.includedPrimaryTypes;
17841+
17842+
/**
17843+
* Included place type. See the <a
17844+
* href="https://developers.google.com/maps/documentation/places/web-service/place-types">full
17845+
* list of types supported</a>. A place can have many different place types. Up
17846+
* to 50 types may be specified. If you specify the same type in both
17847+
* <code>included</code> and <code>excluded</code> lists, an INVALID_ARGUMENT
17848+
* error is returned.
17849+
* @type {!Array<string>|undefined}
17850+
*/
17851+
google.maps.places.SearchNearbyRequest.prototype.includedTypes;
17852+
17853+
/**
17854+
* Place details will be displayed with the preferred language if available.
17855+
* Will default to the browser&#39;s language preference. Current list of
17856+
* supported languages: <a
17857+
* href="https://developers.google.com/maps/faq#languagesupport">https://developers.google.com/maps/faq#languagesupport</a>.
17858+
* @type {string|undefined}
17859+
*/
17860+
google.maps.places.SearchNearbyRequest.prototype.language;
17861+
17862+
/**
17863+
* The region to search, specified as a circle with center and radius. Results
17864+
* outside given location are not returned.
17865+
* @type {!google.maps.Circle|!google.maps.CircleLiteral}
17866+
*/
17867+
google.maps.places.SearchNearbyRequest.prototype.locationRestriction;
17868+
17869+
/**
17870+
* Maximum number of results to return. It must be between 1 and 20,
17871+
* inclusively.
17872+
* @type {number|undefined}
17873+
*/
17874+
google.maps.places.SearchNearbyRequest.prototype.maxResultCount;
17875+
17876+
/**
17877+
* How results will be ranked in the response.
17878+
* @default <code>SearchNearbyRankPreference.DISTANCE</code>
17879+
* @type {!google.maps.places.SearchNearbyRankPreference|undefined}
17880+
*/
17881+
google.maps.places.SearchNearbyRequest.prototype.rankPreference;
17882+
17883+
/**
17884+
* The Unicode country/region code (CLDR) of the location where the request is
17885+
* coming from. This parameter is used to display the place details, like
17886+
* region-specific place name, if available. The parameter can affect results
17887+
* based on applicable law. For more information, see <a
17888+
* href="https://www.unicode.org/cldr/charts/latest/supplemental/territory_language_information.html">https://www.unicode.org/cldr/charts/latest/supplemental/territory_language_information.html</a>.
17889+
* Note that 3-digit region codes are not currently supported.
17890+
* @type {string|undefined}
17891+
*/
17892+
google.maps.places.SearchNearbyRequest.prototype.region;
17893+
1776817894
/**
1776917895
* Contains structured information about the place&#39;s description, divided
1777017896
* into a main text and a secondary text, including an array of matched

contrib/externs/maps/google_maps_api_v3_exp.js

+126
Original file line numberDiff line numberDiff line change
@@ -7483,6 +7483,11 @@ google.maps.PlacesLibrary.prototype.SearchBox;
74837483
*/
74847484
google.maps.PlacesLibrary.prototype.SearchByTextRankPreference;
74857485

7486+
/**
7487+
* @type {typeof google.maps.places.SearchNearbyRankPreference}
7488+
*/
7489+
google.maps.PlacesLibrary.prototype.SearchNearbyRankPreference;
7490+
74867491
/**
74877492
*
74887493
* Access by calling `const {Point} = await google.maps.importLibrary("core")`.
@@ -16268,6 +16273,13 @@ google.maps.places.Place.prototype.openingHours;
1626816273
*/
1626916274
google.maps.places.Place.searchByText = function(request) {};
1627016275

16276+
/**
16277+
* Search for nearby places.
16278+
* @param {!google.maps.places.SearchNearbyRequest} request
16279+
* @return {!Promise<{places:!Array<!google.maps.places.Place>}>}
16280+
*/
16281+
google.maps.places.Place.searchNearby = function(request) {};
16282+
1627116283
/**
1627216284
* @param {!google.maps.places.FetchFieldsRequest} options
1627316285
* @return {!Promise<{place:!google.maps.places.Place}>}
@@ -17765,6 +17777,120 @@ google.maps.places.SearchByTextRequest.prototype.query;
1776517777
*/
1776617778
google.maps.places.SearchByTextRequest.prototype.rankBy;
1776717779

17780+
/**
17781+
* RankPreference enum for SearchNearbyRequest.
17782+
*
17783+
* Access by calling `const {SearchNearbyRankPreference} = await
17784+
* google.maps.importLibrary("places")`. See
17785+
* https://developers.google.com/maps/documentation/javascript/libraries.
17786+
* @enum {string}
17787+
*/
17788+
google.maps.places.SearchNearbyRankPreference = {
17789+
/**
17790+
* Ranks results by distance.
17791+
*/
17792+
DISTANCE: 'DISTANCE',
17793+
/**
17794+
* Ranks results by popularity.
17795+
*/
17796+
POPULARITY: 'POPULARITY',
17797+
};
17798+
17799+
/**
17800+
* Request interface for {@link google.maps.places.Place.searchNearby}. For more
17801+
* information on the request, see <a
17802+
* href="https://developers.google.com/maps/documentation/places/web-service/reference/rest/v1/places/searchNearby">Places
17803+
* API reference</a>.
17804+
* @record
17805+
*/
17806+
google.maps.places.SearchNearbyRequest = function() {};
17807+
17808+
/**
17809+
* Excluded primary place type. See the <a
17810+
* href="https://developers.google.com/maps/documentation/places/web-service/place-types">full
17811+
* list of types supported</a>. A place can only have a single primary type. Up
17812+
* to 50 types may be specified. If you specify the same type in both
17813+
* <code>included</code> and <code>excluded</code> lists, an INVALID_ARGUMENT
17814+
* error is returned.
17815+
* @type {!Array<string>|undefined}
17816+
*/
17817+
google.maps.places.SearchNearbyRequest.prototype.excludedPrimaryTypes;
17818+
17819+
/**
17820+
* Fields to be included in the response, <a
17821+
* href="https://developers.google.com/maps/billing/understanding-cost-of-use#places-product">which
17822+
* will be billed for</a>. If <code>[&#39;*&#39;]</code> is passed in, all
17823+
* available fields will be returned and billed for (this is not recommended for
17824+
* production deployments). For a list of fields see {@link
17825+
* google.maps.places.PlaceResult}. Nested fields can be specified with
17826+
* dot-paths (for example, <code>"geometry.location"</code>).
17827+
* @type {!Array<string>}
17828+
*/
17829+
google.maps.places.SearchNearbyRequest.prototype.fields;
17830+
17831+
/**
17832+
* Included primary place type. See the <a
17833+
* href="https://developers.google.com/maps/documentation/places/web-service/place-types">full
17834+
* list of types supported</a>. A place can only have a single primary type. Up
17835+
* to 50 types may be specified. If you specify the same type in both
17836+
* <code>included</code> and <code>excluded</code> lists, an INVALID_ARGUMENT
17837+
* error is returned.
17838+
* @type {!Array<string>|undefined}
17839+
*/
17840+
google.maps.places.SearchNearbyRequest.prototype.includedPrimaryTypes;
17841+
17842+
/**
17843+
* Included place type. See the <a
17844+
* href="https://developers.google.com/maps/documentation/places/web-service/place-types">full
17845+
* list of types supported</a>. A place can have many different place types. Up
17846+
* to 50 types may be specified. If you specify the same type in both
17847+
* <code>included</code> and <code>excluded</code> lists, an INVALID_ARGUMENT
17848+
* error is returned.
17849+
* @type {!Array<string>|undefined}
17850+
*/
17851+
google.maps.places.SearchNearbyRequest.prototype.includedTypes;
17852+
17853+
/**
17854+
* Place details will be displayed with the preferred language if available.
17855+
* Will default to the browser&#39;s language preference. Current list of
17856+
* supported languages: <a
17857+
* href="https://developers.google.com/maps/faq#languagesupport">https://developers.google.com/maps/faq#languagesupport</a>.
17858+
* @type {string|undefined}
17859+
*/
17860+
google.maps.places.SearchNearbyRequest.prototype.language;
17861+
17862+
/**
17863+
* The region to search, specified as a circle with center and radius. Results
17864+
* outside given location are not returned.
17865+
* @type {!google.maps.Circle|!google.maps.CircleLiteral}
17866+
*/
17867+
google.maps.places.SearchNearbyRequest.prototype.locationRestriction;
17868+
17869+
/**
17870+
* Maximum number of results to return. It must be between 1 and 20,
17871+
* inclusively.
17872+
* @type {number|undefined}
17873+
*/
17874+
google.maps.places.SearchNearbyRequest.prototype.maxResultCount;
17875+
17876+
/**
17877+
* How results will be ranked in the response.
17878+
* @default <code>SearchNearbyRankPreference.DISTANCE</code>
17879+
* @type {!google.maps.places.SearchNearbyRankPreference|undefined}
17880+
*/
17881+
google.maps.places.SearchNearbyRequest.prototype.rankPreference;
17882+
17883+
/**
17884+
* The Unicode country/region code (CLDR) of the location where the request is
17885+
* coming from. This parameter is used to display the place details, like
17886+
* region-specific place name, if available. The parameter can affect results
17887+
* based on applicable law. For more information, see <a
17888+
* href="https://www.unicode.org/cldr/charts/latest/supplemental/territory_language_information.html">https://www.unicode.org/cldr/charts/latest/supplemental/territory_language_information.html</a>.
17889+
* Note that 3-digit region codes are not currently supported.
17890+
* @type {string|undefined}
17891+
*/
17892+
google.maps.places.SearchNearbyRequest.prototype.region;
17893+
1776817894
/**
1776917895
* Contains structured information about the place&#39;s description, divided
1777017896
* into a main text and a secondary text, including an array of matched

0 commit comments

Comments
 (0)