diff --git a/types/google.maps/google.maps-tests.ts b/types/google.maps/google.maps-tests.ts index f272861b9780c2..65f2b4c7d07ed1 100644 --- a/types/google.maps/google.maps-tests.ts +++ b/types/google.maps/google.maps-tests.ts @@ -1,3 +1,3 @@ // No tests required for generated types -// Synced from: https://github.com/googlemaps/js-types/commit/b3cf68233280c0beea3b8fd5c522788556f8b3e4 +// Synced from: https://github.com/googlemaps/js-types/commit/fa57a845465c0c1453869efa318dceebe4995181 google.maps.Map; diff --git a/types/google.maps/index.d.ts b/types/google.maps/index.d.ts index 2c10ca789f6a96..6c611a098f3c09 100644 --- a/types/google.maps/index.d.ts +++ b/types/google.maps/index.d.ts @@ -1,7 +1,7 @@ // To report an issue with these types, please open a support ticket at: // https://issuetracker.google.com/savedsearches/558438 -// Google Maps JS API Version: 3.64 +// Google Maps JS API Version: 3.65 // tslint:disable:enforce-name-casing // tslint:disable:no-any // tslint:disable:interface-over-type-literal @@ -5933,6 +5933,8 @@ declare namespace google.maps { Attribution: typeof google.maps.places.Attribution; + AttributionColor: typeof google.maps.places.AttributionColor; + AuthorAttribution: typeof google.maps.places.AuthorAttribution; Autocomplete: typeof google.maps.places.Autocomplete; @@ -5943,6 +5945,8 @@ declare namespace google.maps { AutocompleteSuggestion: typeof google.maps.places.AutocompleteSuggestion; + BasicPlaceAutocompleteElement: typeof google.maps.places.BasicPlaceAutocompleteElement; + BusinessStatus: typeof google.maps.places.BusinessStatus; ConnectorAggregation: typeof google.maps.places.ConnectorAggregation; @@ -5975,6 +5979,8 @@ declare namespace google.maps { Landmark: typeof google.maps.places.Landmark; + MediaSize: typeof google.maps.places.MediaSize; + Money: typeof google.maps.places.Money; NeighborhoodSummary: typeof google.maps.places.NeighborhoodSummary; @@ -5993,18 +5999,84 @@ declare namespace google.maps { Place: typeof google.maps.places.Place; + PlaceAccessibleEntranceIconElement: typeof google.maps.places.PlaceAccessibleEntranceIconElement; + + PlaceAddressElement: typeof google.maps.places.PlaceAddressElement; + + PlaceAllContentElement: typeof google.maps.places.PlaceAllContentElement; + + PlaceAttributionElement: typeof google.maps.places.PlaceAttributionElement; + + PlaceAutocompleteElement: typeof google.maps.places.PlaceAutocompleteElement; + + PlaceContentConfigElement: typeof google.maps.places.PlaceContentConfigElement; + PlaceContextualElement: typeof google.maps.places.PlaceContextualElement; PlaceContextualListConfigElement: typeof google.maps.places.PlaceContextualListConfigElement; PlaceContextualListLayout: typeof google.maps.places.PlaceContextualListLayout; + PlaceDetailsCompactElement: typeof google.maps.places.PlaceDetailsCompactElement; + + PlaceDetailsElement: typeof google.maps.places.PlaceDetailsElement; + + PlaceDetailsLocationRequestElement: typeof google.maps.places.PlaceDetailsLocationRequestElement; + + PlaceDetailsOrientation: typeof google.maps.places.PlaceDetailsOrientation; + + PlaceDetailsPlaceRequestElement: typeof google.maps.places.PlaceDetailsPlaceRequestElement; + + PlaceFeatureListElement: typeof google.maps.places.PlaceFeatureListElement; + + PlaceMediaElement: typeof google.maps.places.PlaceMediaElement; + + PlaceNearbySearchRequestElement: typeof google.maps.places.PlaceNearbySearchRequestElement; + + PlaceOpeningHoursElement: typeof google.maps.places.PlaceOpeningHoursElement; + + PlaceOpenNowStatusElement: typeof google.maps.places.PlaceOpenNowStatusElement; + + PlacePhoneNumberElement: typeof google.maps.places.PlacePhoneNumberElement; + + PlacePlusCodeElement: typeof google.maps.places.PlacePlusCodeElement; + PlacePrediction: typeof google.maps.places.PlacePrediction; + PlacePredictionSelectEvent: typeof google.maps.places.PlacePredictionSelectEvent; + + PlacePriceElement: typeof google.maps.places.PlacePriceElement; + + PlaceRatingElement: typeof google.maps.places.PlaceRatingElement; + + PlaceReviewsElement: typeof google.maps.places.PlaceReviewsElement; + + PlaceReviewSummaryElement: typeof google.maps.places.PlaceReviewSummaryElement; + + PlaceSearchAttributionPosition: typeof google.maps.places.PlaceSearchAttributionPosition; + + PlaceSearchElement: typeof google.maps.places.PlaceSearchElement; + + PlaceSearchOrientation: typeof google.maps.places.PlaceSearchOrientation; + + PlaceSelectEvent: typeof google.maps.places.PlaceSelectEvent; + PlacesService: typeof google.maps.places.PlacesService; PlacesServiceStatus: typeof google.maps.places.PlacesServiceStatus; + PlaceStandardContentElement: typeof google.maps.places.PlaceStandardContentElement; + + PlaceSummaryElement: typeof google.maps.places.PlaceSummaryElement; + + PlaceTextSearchRequestElement: typeof google.maps.places.PlaceTextSearchRequestElement; + + PlaceTypeElement: typeof google.maps.places.PlaceTypeElement; + + PlaceTypeSpecificHighlightsElement: typeof google.maps.places.PlaceTypeSpecificHighlightsElement; + + PlaceWebsiteElement: typeof google.maps.places.PlaceWebsiteElement; + PlusCode: typeof google.maps.places.PlusCode; PostalAddress: typeof google.maps.places.PostalAddress; @@ -6032,6 +6104,18 @@ declare namespace google.maps { StringRange: typeof google.maps.places.StringRange; TimeZone: typeof google.maps.places.TimeZone; + + TransitAgency: typeof google.maps.places.TransitAgency; + + TransitIcon: typeof google.maps.places.TransitIcon; + + TransitLine: typeof google.maps.places.TransitLine; + + TransitStation: typeof google.maps.places.TransitStation; + + TransitStop: typeof google.maps.places.TransitStop; + + TransitVehicleType: typeof google.maps.places.TransitVehicleType; } export interface RoutesLibrary { @@ -9365,113 +9449,73 @@ declare namespace google.maps.places { get title(): string | null; } /** - * ContentBlock describes the content of a summary and where it came from. - * Access by calling `const {ContentBlock} = await google.maps.importLibrary("places");`. See https://developers.google.com/maps/documentation/javascript/libraries. + * Defines the spatial relationship between the target location and the area. + * + * Access by calling `const {Containment} = await google.maps.importLibrary("places");`. See https://developers.google.com/maps/documentation/javascript/libraries. */ - export class ContentBlock { - /** - * Content related to the topic. - */ - get content(): string | null; + export enum Containment { /** - * Language code of the content. + * The target location is outside the area region, but close by. */ - get contentLanguageCode(): string | null; + NEAR = 'NEAR', /** - * A list of {@link google.maps.places.Place}s referenced. When first retrieved, each Place only contains a place ID in the id field. + * The target location is within the area region, close to the edge. */ - get referencedPlaces(): google.maps.places.Place[]; + OUTSKIRTS = 'OUTSKIRTS', /** - * Converts to a plain object. + * The target location is within the area region, close to the center. */ - toJSON(key?: string): unknown; + WITHIN = 'WITHIN', } + export type ContainmentString = `${google.maps.places.Containment}`; /** - * AI-generated summary of amenities near the EV charging station. This only applies to places with type electric_vehicle_charging_station. - * Access by calling `const {EVChargeAmenitySummary} = await google.maps.importLibrary("places");`. See https://developers.google.com/maps/documentation/javascript/libraries. + * EV charging connector types. + * + * Access by calling `const {EVConnectorType} = await google.maps.importLibrary("places");`. See https://developers.google.com/maps/documentation/javascript/libraries. */ - export class EVChargeAmenitySummary { - /** - * A summary of the nearby coffee options. - */ - get coffee(): google.maps.places.ContentBlock | null; - /** - * The text for the disclosure relating to this summary. - */ - get disclosureText(): string | null; - /** - * The language code of the disclosure text. - */ - get disclosureTextLanguageCode(): string | null; - /** - * A URI to report a problem with the summary. - */ - get flagContentURI(): string | null; - /** - * An overview of the available amenities. - */ - get overview(): google.maps.places.ContentBlock | null; - /** - * A summary of the nearby restaurants. - */ - get restaurant(): google.maps.places.ContentBlock | null; - /** - * A summary of nearby stores. - */ - get store(): google.maps.places.ContentBlock | null; + export enum EVConnectorType { /** - * Converts to a plain object. + * Combined Charging System (AC and DC). Based on SAE Type-1 J-1772 connector. */ - toJSON(key?: string): unknown; - } - /** - * Information about the EV charging station hosted in the place. - * Access by calling `const {EVChargeOptions} = await google.maps.importLibrary("places");`. See https://developers.google.com/maps/documentation/javascript/libraries. - */ - export class EVChargeOptions { + CCS_COMBO_1 = 'CCS_COMBO_1', /** - * A list of EV charging connector aggregations that contain connectors of the same type and same charge rate. + * Combined Charging System (AC and DC). Based on Type-2 Mennekes connector. */ - get connectorAggregations(): google.maps.places.ConnectorAggregation[]; + CCS_COMBO_2 = 'CCS_COMBO_2', /** - * Number of connectors at this station. Because some ports can have multiple connectors but only be able to charge one car at a time, the number of connectors may be greater than the total number of cars which can charge simultaneously. + * CHAdeMO type connector. */ - get connectorCount(): number; + CHADEMO = 'CHADEMO', /** - * Converts to a plain object. + * J1772 type 1 connector. */ - toJSON(key?: string): unknown; - } - /** - * EV charging information, aggregated for connectors of the same type and the same charge rate. - * Access by calling `const {ConnectorAggregation} = await google.maps.importLibrary("places");`. See https://developers.google.com/maps/documentation/javascript/libraries. - */ - export class ConnectorAggregation { + J1772 = 'J1772', /** - * The time when the connector availability information in this aggregation was last updated. + * The North American Charging System (NACS), standardized as SAE J3400. */ - get availabilityLastUpdateTime(): Date | null; + NACS = 'NACS', /** - * Number of connectors in this aggregation that are currently available. + * Other connector types. */ - get availableCount(): number | null; + OTHER = 'OTHER', /** - * Number of connectors in this aggregation. + * 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. */ - get count(): number; + TESLA = 'TESLA', /** - * The static max charging rate in kw of each connector of the aggregation. + * IEC 62196 type 2 connector. Often referred to as MENNEKES. */ - get maxChargeRateKw(): number; + TYPE_2 = 'TYPE_2', /** - * Number of connectors in this aggregation that are currently out of service. + * GB/T type corresponds to the GB/T standard in China. This type covers all GB_T types. */ - get outOfServiceCount(): number | null; + UNSPECIFIED_GB_T = 'UNSPECIFIED_GB_T', /** - * The connector type of this aggregation. + * Unspecified wall outlet. */ - get type(): google.maps.places.EVConnectorTypeString | null; + UNSPECIFIED_WALL_OUTLET = 'UNSPECIFIED_WALL_OUTLET', } + export type EVConnectorTypeString = `${google.maps.places.EVConnectorType}`; /** * A representation of an amount of money with its currency type. * Access by calling `const {Money} = await google.maps.importLibrary("places");`. See https://developers.google.com/maps/documentation/javascript/libraries. @@ -9583,41 +9627,455 @@ declare namespace google.maps.places { /** * SP 100. */ - SP100 = 'SP100', + SP100 = 'SP100', + /** + * SP 91. + */ + SP91 = 'SP91', + /** + * SP 91 E10. + */ + SP91_E10 = 'SP91_E10', + /** + * SP 92. + */ + SP92 = 'SP92', + /** + * SP 95. + */ + SP95 = 'SP95', + /** + * SP95 E10. + */ + SP95_E10 = 'SP95_E10', + /** + * SP 98. + */ + SP98 = 'SP98', + /** + * SP 99. + */ + SP99 = 'SP99', + /** + * Truck diesel. + */ + TRUCK_DIESEL = 'TRUCK_DIESEL', + } + export type FuelTypeString = `${google.maps.places.FuelType}`; + /** + * Price level for a Place. + * + * Access by calling `const {PriceLevel} = await google.maps.importLibrary("places");`. See https://developers.google.com/maps/documentation/javascript/libraries. + */ + export enum PriceLevel { + + EXPENSIVE = 'EXPENSIVE', + + FREE = 'FREE', + + INEXPENSIVE = 'INEXPENSIVE', + + MODERATE = 'MODERATE', + + VERY_EXPENSIVE = 'VERY_EXPENSIVE', + } + export type PriceLevelString = `${google.maps.places.PriceLevel}`; + /** + * Defines the spatial relationship between the target location and the landmark + * + * Access by calling `const {SpatialRelationship} = await google.maps.importLibrary("places");`. See https://developers.google.com/maps/documentation/javascript/libraries. + */ + export enum SpatialRelationship { + /** + * The target is directly opposite the landmark on the other side of the road. + */ + ACROSS_THE_ROAD = 'ACROSS_THE_ROAD', + /** + * Not on the same route as the landmark but a single turn away. + */ + AROUND_THE_CORNER = 'AROUND_THE_CORNER', + /** + * Close to the landmark's structure but further away from its street entrances. + */ + BEHIND = 'BEHIND', + /** + * The target is directly adjacent to the landmark. + */ + BESIDE = 'BESIDE', + /** + * On the same route as the landmark but not besides or across. + */ + DOWN_THE_ROAD = 'DOWN_THE_ROAD', + /** + * The default relationship when nothing more specific below applies. + */ + NEAR = 'NEAR', + /** + * The landmark has a spatial geometry and the target is within its bounds. + */ + WITHIN = 'WITHIN', + } + export type SpatialRelationshipString = `${google.maps.places.SpatialRelationship}`; + /** + * Represents a transit agency. + * Access by calling `const {TransitAgency} = await google.maps.importLibrary("places");`. See https://developers.google.com/maps/documentation/javascript/libraries. + */ + export class TransitAgency { + /** + * The name of the agency in the requested language. + */ + displayName: string | null; + /** + * The agency name 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. + */ + displayNameLanguageCode: string | null; + /** + * The URL of the agency's fare details page. + */ + fareURL: URL | null; + /** + * A localized branded icon of a transit system. + */ + icon: google.maps.places.TransitIcon | null; + /** + * The transit lines that are served by this agency. + */ + lines: google.maps.places.TransitLine[]; + /** + * The URL of the agency's homepage. + */ + url: URL | null; + /** + * Converts to a plain object. + */ + toJSON(key?: string): unknown; + } + /** + * Represents a transit icon. + * Access by calling `const {TransitIcon} = await google.maps.importLibrary("places");`. See https://developers.google.com/maps/documentation/javascript/libraries. + */ + export class TransitIcon { + /** + * Whether the name is contained in the icon and there is no need to display it next to the icon. + */ + nameIncluded: boolean | null; + /** + * The URL of the icon. + */ + url: URL | null; + /** + * Converts to a plain object. + */ + toJSON(key?: string): unknown; + } + /** + * Represents a transit line. + * Access by calling `const {TransitLine} = await google.maps.importLibrary("places");`. See https://developers.google.com/maps/documentation/javascript/libraries. + */ + export class TransitLine { + /** + * The background color of the labels for this transit line in hexadecimal format (e.g., "#909CE1"). This color can also be used for drawing shapes for this transit line. + */ + backgroundColor: string | null; + /** + * The full name of this transit line (e.g., "Sunnydale local"). + */ + displayName: string | null; + /** + * The transit line full name 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. + */ + displayNameLanguageCode: string | null; + /** + * Icon for this particular line. + */ + icon: google.maps.places.TransitIcon | null; + /** + * The id of the transit line that can be used to uniquely identify the line among other transit lines in the same transit station. This identifier is not guaranteed to be stable across different responses. + */ + id: string | null; + /** + * The short name of this transit line (e.g., "S2"). + */ + shortDisplayName: string | null; + /** + * The transit line short name 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. + */ + shortDisplayNameLanguageCode: string | null; + /** + * The text color of labels for this transit line in hexadecimal format (e.g., "#909CE1"). + */ + textColor: string | null; + /** + * The URL of a webpage with details about this line. + */ + url: URL | null; + /** + * Icon for this particular vehicle type. + */ + vehicleIcon: google.maps.places.TransitIcon | null; + /** + * The type of vehicle used. + */ + vehicleType: google.maps.places.TransitVehicleTypeString | null; + /** + * Converts to a plain object. + */ + toJSON(key?: string): unknown; + } + /** + * Represents a transit stop. + * Access by calling `const {TransitStop} = await google.maps.importLibrary("places");`. See https://developers.google.com/maps/documentation/javascript/libraries. + */ + export class TransitStop { + /** + * The name of the stop in the requested language. + */ + displayName: string | null; + /** + * The name of the stop in the requested language'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. + */ + displayNameLanguageCode: string | null; + /** + * This field indicates whether there is an accessible path from outside the station to the stop. It does not indicate whether it is possible to board a vehicle from the stop. + */ + hasWheelchairAccessibleEntrance: boolean | null; + /** + * The id of the transit stop that can be used to uniquely identify the stop among other transit stops in the same transit station. This identifier is not guaranteed to be stable across different responses. + */ + id: string | null; + /** + * The stop's location. + */ + location: google.maps.LatLngAltitude | null; + /** + * The platform code represented by this stop. It can be formatted in any way (e.g., "2", "Platform 2", "2-4", or "1x"). + */ + platformCode: string | null; + /** + * The platform code 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. + */ + platformCodeLanguageCode: string | null; + /** + * The verbatim text written on the signboard for this platform (e.g., "Towards Central" or "East side & Brooklyn"). When platformCode is absent, this field is potentially the only identifier for the platform. However, both platformCode and signageText may be set simultaneously. + */ + signageText: string | null; + /** + * The signage 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. + */ + signageTextLanguageCode: string | null; + /** + * Human readable identifier of the stop, used by transit agencies to distinguish stops with the same name. + */ + stopCode: string | null; + /** + * The stop code 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. + */ + stopCodeLanguageCode: string | null; + /** + * Converts to a plain object. + */ + toJSON(key?: string): unknown; + } + /** + * The type of a transit vehicle. + * + * Access by calling `const {TransitVehicleType} = await google.maps.importLibrary("places");`. See https://developers.google.com/maps/documentation/javascript/libraries. + */ + export enum TransitVehicleType { + /** + * Airplane. + */ + AIRPLANE = 'AIRPLANE', + /** + * Bus. + */ + BUS = 'BUS', + /** + * Cable car. + */ + CABLE_CAR = 'CABLE_CAR', + /** + * Coach. + */ + COACH = 'COACH', + /** + * Commuter train. + */ + COMMUTER_TRAIN = 'COMMUTER_TRAIN', + /** + * Ferry. + */ + FERRY = 'FERRY', + /** + * Funicular. + */ + FUNICULAR = 'FUNICULAR', + /** + * Gondola lift. + */ + GONDOLA_LIFT = 'GONDOLA_LIFT', + /** + * Heavy rail. + */ + HEAVY_RAIL = 'HEAVY_RAIL', + /** + * High speed train. + */ + HIGH_SPEED_TRAIN = 'HIGH_SPEED_TRAIN', + /** + * Horse carriage. + */ + HORSE_CARRIAGE = 'HORSE_CARRIAGE', + /** + * Intercity bus. + */ + INTERCITY_BUS = 'INTERCITY_BUS', + /** + * Long distance train. + */ + LONG_DISTANCE_TRAIN = 'LONG_DISTANCE_TRAIN', + /** + * Metro rail. + */ + METRO_RAIL = 'METRO_RAIL', + /** + * Monorail. + */ + MONORAIL = 'MONORAIL', + /** + * Rail. + */ + RAIL = 'RAIL', + /** + * Share taxi. + */ + SHARE_TAXI = 'SHARE_TAXI', + /** + * Special. + */ + SPECIAL = 'SPECIAL', + /** + * Subway. + */ + SUBWAY = 'SUBWAY', + /** + * Tram. + */ + TRAM = 'TRAM', + /** + * Trolleybus. + */ + TROLLEYBUS = 'TROLLEYBUS', + } + export type TransitVehicleTypeString = `${google.maps.places.TransitVehicleType}`; + /** + * ContentBlock describes the content of a summary and where it came from. + * Access by calling `const {ContentBlock} = await google.maps.importLibrary("places");`. See https://developers.google.com/maps/documentation/javascript/libraries. + */ + export class ContentBlock { + /** + * Content related to the topic. + */ + get content(): string | null; + /** + * Language code of the content. + */ + get contentLanguageCode(): string | null; + /** + * A list of {@link google.maps.places.Place}s referenced. When first retrieved, each Place only contains a place ID in the id field. + */ + get referencedPlaces(): google.maps.places.Place[]; + /** + * Converts to a plain object. + */ + toJSON(key?: string): unknown; + } + /** + * AI-generated summary of amenities near the EV charging station. This only applies to places with type electric_vehicle_charging_station. + * Access by calling `const {EVChargeAmenitySummary} = await google.maps.importLibrary("places");`. See https://developers.google.com/maps/documentation/javascript/libraries. + */ + export class EVChargeAmenitySummary { + /** + * A summary of the nearby coffee options. + */ + get coffee(): google.maps.places.ContentBlock | null; + /** + * The text for the disclosure relating to this summary. + */ + get disclosureText(): string | null; + /** + * The language code of the disclosure text. + */ + get disclosureTextLanguageCode(): string | null; + /** + * A URI to report a problem with the summary. + */ + get flagContentURI(): string | null; + /** + * An overview of the available amenities. + */ + get overview(): google.maps.places.ContentBlock | null; + /** + * A summary of the nearby restaurants. + */ + get restaurant(): google.maps.places.ContentBlock | null; + /** + * A summary of nearby stores. + */ + get store(): google.maps.places.ContentBlock | null; + /** + * Converts to a plain object. + */ + toJSON(key?: string): unknown; + } + /** + * Information about the EV charging station hosted in the place. + * Access by calling `const {EVChargeOptions} = await google.maps.importLibrary("places");`. See https://developers.google.com/maps/documentation/javascript/libraries. + */ + export class EVChargeOptions { + /** + * A list of EV charging connector aggregations that contain connectors of the same type and same charge rate. + */ + get connectorAggregations(): google.maps.places.ConnectorAggregation[]; /** - * SP 91. + * Number of connectors at this station. Because some ports can have multiple connectors but only be able to charge one car at a time, the number of connectors may be greater than the total number of cars which can charge simultaneously. */ - SP91 = 'SP91', + get connectorCount(): number; /** - * SP 91 E10. + * Converts to a plain object. */ - SP91_E10 = 'SP91_E10', + toJSON(key?: string): unknown; + } + /** + * EV charging information, aggregated for connectors of the same type and the same charge rate. + * Access by calling `const {ConnectorAggregation} = await google.maps.importLibrary("places");`. See https://developers.google.com/maps/documentation/javascript/libraries. + */ + export class ConnectorAggregation { /** - * SP 92. + * The time when the connector availability information in this aggregation was last updated. */ - SP92 = 'SP92', + get availabilityLastUpdateTime(): Date | null; /** - * SP 95. + * Number of connectors in this aggregation that are currently available. */ - SP95 = 'SP95', + get availableCount(): number | null; /** - * SP95 E10. + * Number of connectors in this aggregation. */ - SP95_E10 = 'SP95_E10', + get count(): number; /** - * SP 98. + * The static max charging rate in kw of each connector of the aggregation. */ - SP98 = 'SP98', + get maxChargeRateKw(): number; /** - * SP 99. + * Number of connectors in this aggregation that are currently out of service. */ - SP99 = 'SP99', + get outOfServiceCount(): number | null; /** - * Truck diesel. + * The connector type of this aggregation. */ - TRUCK_DIESEL = 'TRUCK_DIESEL', + get type(): google.maps.places.EVConnectorTypeString | null; } - export type FuelTypeString = `${google.maps.places.FuelType}`; /** * AI-generated summary of the place. * Access by calling `const {GenerativeSummary} = await google.maps.importLibrary("places");`. See https://developers.google.com/maps/documentation/javascript/libraries. @@ -10020,6 +10478,32 @@ declare namespace google.maps.places { */ toJSON(key?: string): unknown; } + /** + * Represents transit-specific information for a place. + * Access by calling `const {TransitStation} = await google.maps.importLibrary("places");`. See https://developers.google.com/maps/documentation/javascript/libraries. + */ + export class TransitStation { + /** + * The transit agencies that serve this station. + */ + agencies: google.maps.places.TransitAgency[]; + /** + * The name of the station in the local language. + */ + displayName: string | null; + /** + * The local display name 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. + */ + displayNameLanguageCode: string | null; + /** + * The transit stops at this station. + */ + stops: google.maps.places.TransitStop[]; + /** + * Converts to a plain object. + */ + toJSON(key?: string): unknown; + } /** * Options for PlaceMediaElement. */ @@ -10133,24 +10617,6 @@ declare namespace google.maps.places { } export interface PlacePlusCodeElementEventMap extends HTMLElementEventMap { } - /** - * Price level for a Place. - * - * Access by calling `const {PriceLevel} = await google.maps.importLibrary("places");`. See https://developers.google.com/maps/documentation/javascript/libraries. - */ - export enum PriceLevel { - - EXPENSIVE = 'EXPENSIVE', - - FREE = 'FREE', - - INEXPENSIVE = 'INEXPENSIVE', - - MODERATE = 'MODERATE', - - VERY_EXPENSIVE = 'VERY_EXPENSIVE', - } - export type PriceLevelString = `${google.maps.places.PriceLevel}`; /** * Options for PlacePriceElement. */ @@ -10408,110 +10874,6 @@ declare namespace google.maps.places { } export interface PlaceDetailsLocationRequestElementEventMap extends HTMLElementEventMap { } - /** - * Defines the spatial relationship between the target location and the area. - * - * Access by calling `const {Containment} = await google.maps.importLibrary("places");`. See https://developers.google.com/maps/documentation/javascript/libraries. - */ - export enum Containment { - /** - * The target location is outside the area region, but close by. - */ - NEAR = 'NEAR', - /** - * The target location is within the area region, close to the edge. - */ - OUTSKIRTS = 'OUTSKIRTS', - /** - * The target location is within the area region, close to the center. - */ - WITHIN = 'WITHIN', - } - export type ContainmentString = `${google.maps.places.Containment}`; - /** - * EV charging connector types. - * - * Access by calling `const {EVConnectorType} = await google.maps.importLibrary("places");`. See https://developers.google.com/maps/documentation/javascript/libraries. - */ - export enum EVConnectorType { - /** - * Combined Charging System (AC and DC). Based on SAE Type-1 J-1772 connector. - */ - CCS_COMBO_1 = 'CCS_COMBO_1', - /** - * Combined Charging System (AC and DC). Based on Type-2 Mennekes connector. - */ - CCS_COMBO_2 = 'CCS_COMBO_2', - /** - * CHAdeMO type connector. - */ - CHADEMO = 'CHADEMO', - /** - * J1772 type 1 connector. - */ - J1772 = 'J1772', - /** - * The North American Charging System (NACS), standardized as SAE J3400. - */ - NACS = 'NACS', - /** - * Other connector types. - */ - OTHER = 'OTHER', - /** - * 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. - */ - TESLA = 'TESLA', - /** - * IEC 62196 type 2 connector. Often referred to as MENNEKES. - */ - TYPE_2 = 'TYPE_2', - /** - * GB/T type corresponds to the GB/T standard in China. This type covers all GB_T types. - */ - UNSPECIFIED_GB_T = 'UNSPECIFIED_GB_T', - /** - * Unspecified wall outlet. - */ - UNSPECIFIED_WALL_OUTLET = 'UNSPECIFIED_WALL_OUTLET', - } - export type EVConnectorTypeString = `${google.maps.places.EVConnectorType}`; - /** - * Defines the spatial relationship between the target location and the landmark - * - * Access by calling `const {SpatialRelationship} = await google.maps.importLibrary("places");`. See https://developers.google.com/maps/documentation/javascript/libraries. - */ - export enum SpatialRelationship { - /** - * The target is directly opposite the landmark on the other side of the road. - */ - ACROSS_THE_ROAD = 'ACROSS_THE_ROAD', - /** - * Not on the same route as the landmark but a single turn away. - */ - AROUND_THE_CORNER = 'AROUND_THE_CORNER', - /** - * Close to the landmark's structure but further away from its street entrances. - */ - BEHIND = 'BEHIND', - /** - * The target is directly adjacent to the landmark. - */ - BESIDE = 'BESIDE', - /** - * On the same route as the landmark but not besides or across. - */ - DOWN_THE_ROAD = 'DOWN_THE_ROAD', - /** - * The default relationship when nothing more specific below applies. - */ - NEAR = 'NEAR', - /** - * The landmark has a spatial geometry and the target is within its bounds. - */ - WITHIN = 'WITHIN', - } - export type SpatialRelationshipString = `${google.maps.places.SpatialRelationship}`; /** * Options for fetching Place fields. */ @@ -10997,6 +11359,10 @@ declare namespace google.maps.places { * The TimeZone for this place. */ get timeZone(): google.maps.places.TimeZone | null | undefined; + /** + * Information about the transit station. undefined if the transit data has not been loaded from the server. + */ + get transitStation(): google.maps.places.TransitStation | null | undefined; /** * An array of types for this Place (for example, ["political", "locality"] or ["restaurant", "establishment"]). */ @@ -11747,6 +12113,10 @@ declare namespace google.maps.places { * Text that may be used as is or formatted with {@link google.maps.places.FormattableText.matches}. */ get text(): string; + /** + * Returns {@link google.maps.places.FormattableText.text}. + */ + toString(): string; } /** * BasicPlaceAutocompleteElement is an HTMLElement subclass which provides a UI component for the Places Autocomplete API. @@ -11769,7 +12139,7 @@ declare namespace google.maps.places { /** * Whether the input element is disabled. See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#disabled for details. */ - set disabled(value: boolean | null); + set disabled(value: boolean | null | undefined); /** * Whether to include places that are not yet open but are expected to open in the future. */ @@ -11798,10 +12168,22 @@ declare namespace google.maps.places { * The name to be used for the input element. See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#name for details. Follows the same behavior as the name attribute for inputs. Note that this is the name that will be used when a form is submitted. See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form for details. */ name: string | null; + /** + * Whether to hide the clear button. + */ + get noClearButton(): boolean; + /** + * Whether to hide the clear button. + */ + set noClearButton(value: boolean | null | undefined); + /** + * Whether to hide the input icon. + */ + get noInputIcon(): boolean; /** * Whether to hide the input icon. */ - noInputIcon: boolean | null; + set noInputIcon(value: boolean | null | undefined); /** * The origin from which to calculate distance. If not specified, distance is not calculated. The altitude, if given, is not used in the calculation. */ @@ -11825,7 +12207,7 @@ declare namespace google.maps.places { /** * Whether the input element is read-only. See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#readonly for details. */ - set readonly(value: boolean | null); + set readonly(value: boolean | null | undefined); /** * A language identifier for the language in which the results should be returned, if possible. Results in the selected language may be given a higher ranking, but suggestions are not restricted to this language. See the list of supported languages. */ @@ -11874,6 +12256,8 @@ declare namespace google.maps.places { name?: string | null; + noClearButton?: boolean | null; + noInputIcon?: boolean | null; origin?: google.maps.LatLng | google.maps.LatLngLiteral | google.maps.LatLngAltitude | google.maps.LatLngAltitudeLiteral | null; @@ -12020,7 +12404,7 @@ declare namespace google.maps.places { /** * Whether the input element is disabled. See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#disabled for details. */ - set disabled(value: boolean | null); + set disabled(value: boolean | null | undefined); /** * Whether to include places that are not yet open but are expected to open in the future. */ @@ -12049,10 +12433,22 @@ declare namespace google.maps.places { * The name to be used for the input element. See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#name for details. Follows the same behavior as the name attribute for inputs. Note that this is the name that will be used when a form is submitted. See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form for details. */ name: string | null; + /** + * Whether to hide the clear button. + */ + get noClearButton(): boolean; + /** + * Whether to hide the clear button. + */ + set noClearButton(value: boolean | null | undefined); + /** + * Whether to hide the input icon. + */ + get noInputIcon(): boolean; /** * Whether to hide the input icon. */ - noInputIcon: boolean | null; + set noInputIcon(value: boolean | null | undefined); /** * The origin from which to calculate distance. If not specified, distance is not calculated. The altitude, if given, is not used in the calculation. */ @@ -12076,7 +12472,7 @@ declare namespace google.maps.places { /** * Whether the input element is read-only. See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#readonly for details. */ - set readonly(value: boolean | null); + set readonly(value: boolean | null | undefined); /** * A language identifier for the language in which the results should be returned, if possible. Results in the selected language may be given a higher ranking, but suggestions are not restricted to this language. See the list of supported languages. */ @@ -12133,6 +12529,8 @@ declare namespace google.maps.places { name?: string | null; + noClearButton?: boolean | null; + noInputIcon?: boolean | null; origin?: google.maps.LatLng | google.maps.LatLngLiteral | google.maps.LatLngAltitude | google.maps.LatLngAltitudeLiteral | null; @@ -13308,7 +13706,7 @@ declare namespace google.maps.maps3d { title?: string; } /** - * Shows a position on a 3D map. Note that the position must be set for the MarkerElement to display. + * Shows a position on a 3D map. Note that the position must be set for the MarkerElement to display.

MarkerElement supports high customization via custom HTML elements, but has lower interaction performance than Marker3DElement, especially when handling more than 1000 markers on a map. * Access by calling `const {MarkerElement} = await google.maps.importLibrary("maps3d");`. See https://developers.google.com/maps/documentation/javascript/libraries. */ export class MarkerElement extends HTMLElement implements google.maps.maps3d.MarkerElementOptions { @@ -14707,6 +15105,10 @@ declare namespace google.maps.routes { * Collection of fields to be fetched. Specify ["*"] for all fields. */ fields: Iterable; + /** + * Identifiers used to attribute calls to specific packages or OSS libraries. + */ + internalUsageAttributionIds?: Iterable | null; /** * The BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see Unicode Locale Identifier. See Language Support for the list of supported languages. When you don't provide this value, the language is inferred from your Google Maps JavaScript API localization settings. Otherwise, the language is inferred from the location of the first origin. */ @@ -14836,6 +15238,10 @@ declare namespace google.maps.routes { * A set of waypoints along the route (excluding terminal points), for either stopping at or passing by. Up to 25 intermediate waypoints are supported. */ intermediates?: Iterable; + /** + * Identifiers used to attribute calls to specific packages or OSS libraries. + */ + internalUsageAttributionIds?: Iterable | null; /** * The BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see Unicode Locale Identifier. See Language Support for the list of supported languages. When you don't provide this value, the language is inferred from your Google Maps JavaScript API localization settings. Otherwise, the language is inferred from the location of the origin. */ @@ -15728,6 +16134,10 @@ declare namespace google.maps.routes { * See {@link google.maps.routes.Route3DElement.destination}. */ destination: string | google.maps.LatLng | google.maps.LatLngLiteral | google.maps.LatLngAltitude | google.maps.LatLngAltitudeLiteral | google.maps.places.Place | null; + /** + * Identifiers used to attribute calls to specific packages or OSS libraries. + */ + internalUsageAttributionIds?: Iterable | null; /** * See {@link google.maps.routes.Route3DElement.origin}. */ @@ -15765,6 +16175,14 @@ declare namespace google.maps.routes { * The destination of the route. */ destination: string | google.maps.LatLng | google.maps.LatLngLiteral | google.maps.LatLngAltitude | google.maps.LatLngAltitudeLiteral | google.maps.places.Place | null; + /** + * Identifiers used to attribute calls to specific packages or OSS libraries. + */ + get internalUsageAttributionIds(): string[] | null; + /** + * Identifiers used to attribute calls to specific packages or OSS libraries. + */ + set internalUsageAttributionIds(value: Iterable | null | undefined); /** * The origin of the route. */ @@ -15781,6 +16199,8 @@ declare namespace google.maps.routes { addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; } export interface Route3DElementEventMap extends HTMLElementEventMap { + "gmp-error": Event; + "gmp-load": Event; } /** * The condition of the route being returned. See the web service documentation for more information. @@ -15913,80 +16333,16 @@ declare namespace google.maps.routes { } declare namespace google.maps.visualization { - /** - * This object defines the properties that can be set on a HeatmapLayer object. - */ - export interface HeatmapLayerOptions { - /** - * The data points to display. Required. - */ - data?: google.maps.MVCArray | (google.maps.LatLng | google.maps.visualization.WeightedLocation)[] | null; - /** - * Specifies whether heatmaps dissipate on zoom. By default, the radius of influence of a data point is specified by the radius option only. When dissipating is disabled, the radius option is interpreted as a radius at zoom level 0. - */ - dissipating?: boolean | null; - /** - * The color gradient of the heatmap, specified as an array of CSS color strings. All CSS3 colors are supported except for extended named colors. - */ - gradient?: string[] | null; - /** - * The map on which to display the layer. - */ - map?: google.maps.Map | null; - /** - * The maximum intensity of the heatmap. By default, heatmap colors are dynamically scaled according to the greatest concentration of points at any particular pixel on the map. This property allows you to specify a fixed maximum. - */ - maxIntensity?: number | null; - /** - * The opacity of the heatmap, expressed as a number between 0 and 1. - * @defaultValue 0.6 - */ - opacity?: number | null; - /** - * The radius of influence for each data point, in pixels. - */ - radius?: number | null; - } - /** - * A data point entry for a heatmap. This is a geographical data point with a weight attribute. - */ - export interface WeightedLocation { - /** - * The location of the data point. - */ - location: google.maps.LatLng; - /** - * The weighting value of the data point. - */ - weight: number; - } /** * A layer that provides a client-side rendered heatmap, depicting the intensity of data at geographical points. * Access by calling `const {HeatmapLayer} = await google.maps.importLibrary("visualization");`. See https://developers.google.com/maps/documentation/javascript/libraries. - * @deprecated The Heatmap Layer functionality in the Maps JavaScript API is no longer supported. This API was deprecated in May 2025 and will be made unavailable in a later version of the Maps JavaScript API, releasing in May 2026. For more info, see https://developers.google.com/maps/deprecations). + * @deprecated The Heatmap Layer functionality in the Maps JavaScript API is no longer available in the Maps JavaScript API as of version 3.65. For more info, see https://developers.google.com/maps/deprecations. */ - export class HeatmapLayer extends google.maps.MVCObject { - /** - * Creates a new instance of HeatmapLayer. - * @param opts - */ - constructor(opts?: google.maps.visualization.HeatmapLayerOptions | null); + export class HeatmapLayer { /** - * Returns the data points currently displayed by this heatmap. + * Creates a new instance of HeatmapLayer. the layer. */ - getData(): google.maps.MVCArray; - - getMap(): google.maps.Map | undefined; - /** - * Sets the data points to be displayed by this heatmap. - */ - setData(data: google.maps.MVCArray | (google.maps.LatLng | google.maps.visualization.WeightedLocation)[]): void; - /** - * Renders the heatmap on the specified map. If map is set to null, the heatmap will be removed. - */ - setMap(map: google.maps.Map | null): void; - - setOptions(options: google.maps.visualization.HeatmapLayerOptions | null): void; + constructor(); } } diff --git a/types/google.maps/package.json b/types/google.maps/package.json index 9561d66a906fba..61e14a8b5c3d90 100644 --- a/types/google.maps/package.json +++ b/types/google.maps/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "@types/google.maps", - "version": "3.64.9999", + "version": "3.65.9999", "nonNpm": true, "nonNpmDescription": "Google Maps JavaScript API", "projects": [