mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-06 16:20:26 +08:00
Update search request optional fields
Update PlaceSearchRequest, RadarSearchRequest, and TextSearchRequest interfaces to better reflect their optional fields. Reference: https://developers.google.com/maps/documentation/javascript/places
This commit is contained in:
Vendored
+16
-16
@@ -1917,16 +1917,16 @@ declare module google.maps {
|
||||
}
|
||||
|
||||
export interface PlaceSearchRequest {
|
||||
bounds: LatLngBounds;
|
||||
keyword: string;
|
||||
location: LatLng|LatLngLiteral;
|
||||
bounds?: LatLngBounds;
|
||||
keyword?: string;
|
||||
location?: LatLng|LatLngLiteral;
|
||||
maxPriceLevel?: number;
|
||||
minPriceLevel?: number;
|
||||
name: string;
|
||||
openNow: boolean;
|
||||
radius: number;
|
||||
rankBy: RankBy;
|
||||
types: string[];
|
||||
name?: string;
|
||||
openNow?: boolean;
|
||||
radius?: number;
|
||||
rankBy?: RankBy;
|
||||
types?: string[];
|
||||
}
|
||||
|
||||
export class PlacesService {
|
||||
@@ -1963,11 +1963,11 @@ declare module google.maps {
|
||||
|
||||
export interface RadarSearchRequest {
|
||||
bounds?: LatLngBounds;
|
||||
keyword: string;
|
||||
location: LatLng|LatLngLiteral;
|
||||
name: string;
|
||||
radius: number;
|
||||
types: string[];
|
||||
keyword?: string;
|
||||
location?: LatLng|LatLngLiteral;
|
||||
name?: string;
|
||||
radius?: number;
|
||||
types?: string[];
|
||||
}
|
||||
|
||||
export enum RankBy {
|
||||
@@ -1988,10 +1988,10 @@ declare module google.maps {
|
||||
|
||||
export interface TextSearchRequest {
|
||||
bounds?: LatLngBounds;
|
||||
location: LatLng|LatLngLiteral;
|
||||
location?: LatLng|LatLngLiteral;
|
||||
query: string;
|
||||
radius: number;
|
||||
types: string[];
|
||||
radius?: number;
|
||||
types?: string[];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user