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:
Vinh Tran
2015-12-03 14:35:42 -05:00
parent 78d36dd49b
commit 4f0c326e45
+16 -16
View File
@@ -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[];
}
}