Skip to content

Commit b773443

Browse files
chore: sync updates to google.maps
1 parent 3622ca5 commit b773443

2 files changed

Lines changed: 232 additions & 7 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
// No tests required for generated types
2-
// Synced from: https://github.com/googlemaps/js-types/commit/459d2ae96ebbbe03423008158d5c2df6c50ba6f4
2+
// Synced from: https://github.com/googlemaps/js-types/commit/b9371da31d06cfd28ffcc926bd81c1e0607432f5
33
google.maps.Map;

types/google.maps/index.d.ts

Lines changed: 231 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,24 @@
1313
// Generated by an automated process. DO NOT EDIT!
1414

1515
declare namespace google.maps {
16+
/**
17+
* Available only in the v=beta channel: https://goo.gle/3oAthT3.
18+
*
19+
* A relational description of a location. Includes a ranked set of nearby
20+
* landmarks and the areas containing the target location.
21+
*/
22+
export interface AddressDescriptor {
23+
/**
24+
* A ranked list of containing or adjacent areas. The most useful
25+
* (recognizable and precise) areas are ranked first.
26+
*/
27+
areas: google.maps.Area[];
28+
/**
29+
* A ranked list of nearby landmarks. The most useful (recognizable and
30+
* nearby) landmarks are ranked first.
31+
*/
32+
landmarks: google.maps.Landmark[];
33+
}
1634
/**
1735
* Animations that can be played on a marker. Use the {@link
1836
* google.maps.Marker.setAnimation} method on Marker or the {@link
@@ -36,6 +54,32 @@ declare namespace google.maps {
3654
*/
3755
DROP = 1.0,
3856
}
57+
/**
58+
* Available only in the v=beta channel: https://goo.gle/3oAthT3.
59+
*
60+
* A place that is a small region, such as a neighborhood, sublocality, or
61+
* large complex that contains the target location.
62+
*/
63+
export interface Area {
64+
/**
65+
* Defines the spatial relationship between the target location and the
66+
* area.
67+
*/
68+
containment: google.maps.Containment;
69+
/**
70+
* The name for the area.
71+
*/
72+
display_name: string;
73+
/**
74+
* The language of the name for the area.
75+
*/
76+
display_name_language_code: string;
77+
/**
78+
* The Place ID of the underlying area. Can be used to resolve more
79+
* information about the area through Place Details or Place ID Lookup.
80+
*/
81+
place_id: string;
82+
}
3983
/**
4084
* A layer showing bike lanes and paths.
4185
*
@@ -267,6 +311,30 @@ declare namespace google.maps {
267311
*/
268312
REQUIRED_AND_HIDES_OPTIONAL = 'REQUIRED_AND_HIDES_OPTIONAL',
269313
}
314+
/**
315+
* Available only in the v=beta channel: https://goo.gle/3oAthT3.
316+
*
317+
* An enum representing the spatial relationship between the area and the
318+
* target location.
319+
*
320+
* Access by calling `const {Containment} = await
321+
* google.maps.importLibrary("geocoding")`. See
322+
* https://developers.google.com/maps/documentation/javascript/libraries.
323+
*/
324+
export enum Containment {
325+
/**
326+
* The target location is outside the area region, but close by.
327+
*/
328+
NEAR = 'NEAR',
329+
/**
330+
* The target location is within the area region, close to the edge.
331+
*/
332+
OUTSKIRTS = 'OUTSKIRTS',
333+
/**
334+
* The target location is within the area region, close to the center.
335+
*/
336+
WITHIN = 'WITHIN',
337+
}
270338
/**
271339
* Identifiers used to specify the placement of controls on the map. Controls
272340
* are positioned relative to other controls in the same layout position.
@@ -1710,6 +1778,21 @@ declare namespace google.maps {
17101778
*/
17111779
error: Error;
17121780
}
1781+
/**
1782+
* Available only in the v=beta channel: https://goo.gle/3oAthT3.
1783+
*
1784+
* Extra computations to perform while completing a geocoding request.
1785+
*
1786+
* Access by calling `const {ExtraGeocodeComputation} = await
1787+
* google.maps.importLibrary("geocoding")`. See
1788+
* https://developers.google.com/maps/documentation/javascript/libraries.
1789+
*/
1790+
export enum ExtraGeocodeComputation {
1791+
/**
1792+
* Generate an address descriptor.
1793+
*/
1794+
ADDRESS_DESCRIPTORS = 'ADDRESS_DESCRIPTORS',
1795+
}
17131796
/**
17141797
* An interface representing a vector map tile feature. These are inputs to
17151798
* the <code>FeatureStyleFunction</code>. Do not save a reference to a
@@ -2022,6 +2105,18 @@ declare namespace google.maps {
20222105
* and partial matching as other geocoding requests. Optional.
20232106
*/
20242107
componentRestrictions?: google.maps.GeocoderComponentRestrictions | null;
2108+
/**
2109+
* Available only in the v=beta channel: https://goo.gle/3oAthT3.
2110+
* A list of extra computations which may be used to complete the request.
2111+
* Note: These extra computations may return extra fields on the response.
2112+
*/
2113+
extraComputations?: google.maps.ExtraGeocodeComputation[];
2114+
/**
2115+
* Fulfill the promise on a ZERO_RESULT status in the response. This may be
2116+
* desired because even with zero geocoding results there may still be
2117+
* additional response level fields returned.
2118+
*/
2119+
fulfillOnZeroResults?: boolean | null;
20252120
/**
20262121
* A language identifier for the language in which results should be
20272122
* returned, when possible. See the <a
@@ -2064,6 +2159,18 @@ declare namespace google.maps {
20642159
* the list of {@link google.maps.GeocoderResult}s.
20652160
*/
20662161
export interface GeocoderResponse {
2162+
/**
2163+
* Available only in the v=beta channel: https://goo.gle/3oAthT3.
2164+
* A relational description of a location. Includes a ranked set of nearby
2165+
* landmarks and the areas containing the target location. It is only
2166+
* populated for reverse geocoding requests and only when {@link
2167+
* google.maps.ExtraGeocodeComputation.ADDRESS_DESCRIPTORS} is enabled.
2168+
*/
2169+
address_descriptor?: google.maps.AddressDescriptor;
2170+
/**
2171+
* The plus code associated with the location.
2172+
*/
2173+
plus_code?: google.maps.places.PlacePlusCode;
20672174
/**
20682175
* The list of {@link google.maps.GeocoderResult}s.
20692176
*/
@@ -2080,6 +2187,16 @@ declare namespace google.maps {
20802187
* An array of <code>GeocoderAddressComponent</code>s
20812188
*/
20822189
address_components: google.maps.GeocoderAddressComponent[];
2190+
/**
2191+
* Available only in the v=beta channel: https://goo.gle/3oAthT3.
2192+
* A relational description of the location associated with this geocode.
2193+
* Includes a ranked set of nearby landmarks and the areas containing the
2194+
* target location. This will only be populated for forward geocoding and
2195+
* place ID lookup requests, only when {@link
2196+
* google.maps.ExtraGeocodeComputation.ADDRESS_DESCRIPTORS} is enabled, and
2197+
* only for certain localized places.
2198+
*/
2199+
address_descriptor?: google.maps.AddressDescriptor;
20832200
/**
20842201
* A string containing the human-readable address of this location.
20852202
*/
@@ -2163,9 +2280,12 @@ declare namespace google.maps {
21632280
ZERO_RESULTS = 'ZERO_RESULTS',
21642281
}
21652282
export interface GeocodingLibrary {
2283+
Containment: typeof google.maps.Containment;
2284+
ExtraGeocodeComputation: typeof google.maps.ExtraGeocodeComputation;
21662285
Geocoder: typeof google.maps.Geocoder;
21672286
GeocoderLocationType: typeof google.maps.GeocoderLocationType;
21682287
GeocoderStatus: typeof google.maps.GeocoderStatus;
2288+
SpatialRelationship: typeof google.maps.SpatialRelationship;
21692289
}
21702290
export interface GeometryLibrary {
21712291
encoding: typeof google.maps.geometry.encoding;
@@ -2451,8 +2571,14 @@ declare namespace google.maps {
24512571
*/
24522572
focus(): void;
24532573
getContent(): string | Element | null | Text | undefined;
2574+
getHeaderContent(): string | Element | null | Text | undefined;
2575+
getHeaderDisabled(): boolean | undefined;
24542576
getPosition(): google.maps.LatLng | null | undefined;
24552577
getZIndex(): number;
2578+
/**
2579+
* Checks if the InfoWindow is open.
2580+
*/
2581+
isOpen: boolean;
24562582
/**
24572583
* Opens this InfoWindow on the given map. Optionally, an InfoWindow can be
24582584
* associated with an anchor. In the core API, the only anchor is the Marker
@@ -2487,6 +2613,16 @@ declare namespace google.maps {
24872613
* @param content The content to be displayed by this InfoWindow.
24882614
*/
24892615
setContent(content?: string | Element | null | Text): void;
2616+
/**
2617+
* @param headerContent The header content to be displayed by this
2618+
* InfoWindow. See {@link google.maps.InfoWindowOptions.headerContent}.
2619+
*/
2620+
setHeaderContent(headerContent?: string | Element | null | Text): void;
2621+
/**
2622+
* @param headerDisabled Specifies whether to disable the whole header row.
2623+
* See {@link google.maps.InfoWindowOptions.headerDisabled}.
2624+
*/
2625+
setHeaderDisabled(headerDisabled?: boolean | null): void;
24902626
setOptions(options?: google.maps.InfoWindowOptions | null): void;
24912627
/**
24922628
* @param position The LatLng position at which to display this InfoWindow.
@@ -2552,15 +2688,13 @@ declare namespace google.maps {
25522688
*/
25532689
disableAutoPan?: boolean | null;
25542690
/**
2555-
* Available only in the v=beta channel: https://goo.gle/3oAthT3.
25562691
* The content to display in the InfoWindow header row. This can be an HTML
2557-
* element, or a string containing HTML. The InfoWindow will be sized
2692+
* element, or a string of plain text. The InfoWindow will be sized
25582693
* according to the content. To set an explicit size for the header content,
25592694
* set headerContent to be a HTML element with that size.
25602695
*/
25612696
headerContent?: string | Element | Text | null;
25622697
/**
2563-
* Available only in the v=beta channel: https://goo.gle/3oAthT3.
25642698
* Disables the whole header row in the InfoWindow. When set to true, the
25652699
* header will be removed so that the header content and the close button
25662700
* will be hidden.
@@ -2873,6 +3007,50 @@ declare namespace google.maps {
28733007
*/
28743008
pixelOffset: google.maps.Size | null;
28753009
}
3010+
/**
3011+
* Available only in the v=beta channel: https://goo.gle/3oAthT3.
3012+
*
3013+
* A place that represents a point of reference for the address.
3014+
*/
3015+
export interface Landmark {
3016+
/**
3017+
* The name for the landmark.
3018+
*/
3019+
display_name: string;
3020+
/**
3021+
* The language of the name for the landmark.
3022+
*/
3023+
display_name_language_code: string;
3024+
/**
3025+
* The Place ID of the underlying establishment serving as the landmark. Can
3026+
* be used to resolve more information about the landmark through Place
3027+
* Details or Place Id Lookup.
3028+
*/
3029+
place_id: string;
3030+
/**
3031+
* Defines the spatial relationship between the target location and the
3032+
* landmark.
3033+
*/
3034+
spatial_relationship: google.maps.SpatialRelationship;
3035+
/**
3036+
* The straight line distance between the target location and the landmark.
3037+
*/
3038+
straight_line_distance_meters: number;
3039+
/**
3040+
* The travel distance along the road network between the target location
3041+
* and the landmark. This can be unpopulated if the landmark is disconnected
3042+
* from the part of the road network the target is closest to OR if the
3043+
* target location was not actually considered to be on the road network.
3044+
*/
3045+
travel_distance_meters?: number;
3046+
/**
3047+
* One or more values indicating the type of the returned result. Please see
3048+
* <a
3049+
* href="https://developers.google.com/maps/documentation/places/web-service/supported_types">Types
3050+
* </a> for more detail.
3051+
*/
3052+
types: string[];
3053+
}
28763054
/**
28773055
* A <code>LatLng</code> is a point in geographical coordinates: latitude and
28783056
* longitude.<br> <ul> <li>Latitude ranges between -90 and 90 degrees,
@@ -5951,6 +6129,49 @@ declare namespace google.maps {
59516129
*/
59526130
width: number;
59536131
}
6132+
/**
6133+
* Available only in the v=beta channel: https://goo.gle/3oAthT3.
6134+
*
6135+
* An enum representing the relationship in space between the landmark and the
6136+
* target.
6137+
*
6138+
* Access by calling `const {SpatialRelationship} = await
6139+
* google.maps.importLibrary("geocoding")`. See
6140+
* https://developers.google.com/maps/documentation/javascript/libraries.
6141+
*/
6142+
export enum SpatialRelationship {
6143+
/**
6144+
* The target is directly opposite the landmark on the other side of the
6145+
* road.
6146+
*/
6147+
ACROSS_THE_ROAD = 'ACROSS_THE_ROAD',
6148+
/**
6149+
* Not on the same route as the landmark but a single turn away.
6150+
*/
6151+
AROUND_THE_CORNER = 'AROUND_THE_CORNER',
6152+
/**
6153+
* Close to the landmark&#39;s structure but further away from its access
6154+
* point.
6155+
*/
6156+
BEHIND = 'BEHIND',
6157+
/**
6158+
* The target is directly adjacent to the landmark.
6159+
*/
6160+
BESIDE = 'BESIDE',
6161+
/**
6162+
* On the same route as the landmark but not besides or across.
6163+
*/
6164+
DOWN_THE_ROAD = 'DOWN_THE_ROAD',
6165+
/**
6166+
* This is the default relationship when nothing more specific below
6167+
* applies.
6168+
*/
6169+
NEAR = 'NEAR',
6170+
/**
6171+
* The landmark has a spatial geometry and the target is within its bounds.
6172+
*/
6173+
WITHIN = 'WITHIN',
6174+
}
59546175
/**
59556176
* Options for the rendering of the Street View address control.
59566177
*/
@@ -14661,8 +14882,7 @@ declare namespace google.maps.places {
1466114882
*/
1466214883
distanceMeters: number | null;
1466314884
/**
14664-
* Represents additional disambiguating features (such as a city or region)
14665-
* to further identify the Place or refine the query.
14885+
* Represents the name of the Place.
1466614886
*/
1466714887
mainText: google.maps.places.FormattableText | null;
1466814888
/**
@@ -14672,12 +14892,17 @@ declare namespace google.maps.places {
1467214892
placeId: string;
1467314893
/**
1467414894
* Represents additional disambiguating features (such as a city or region)
14675-
* to further identify the Place or refine the query.
14895+
* to further identify the Place.
1467614896
*/
1467714897
secondaryText: google.maps.places.FormattableText | null;
1467814898
/**
1467914899
* Contains the human-readable name for the returned result. For
1468014900
* establishment results, this is usually the business name and address.
14901+
* <br/><br/> <code>text</code> is recommended for developers who wish to
14902+
* show a single UI element. Developers who wish to show two separate, but
14903+
* related, UI elements may want to use {@link
14904+
* google.maps.places.PlacePrediction.mainText} and {@link
14905+
* google.maps.places.PlacePrediction.secondaryText} instead.
1468114906
*/
1468214907
text: google.maps.places.FormattableText;
1468314908
/**

0 commit comments

Comments
 (0)