Skip to content

Commit cdf1a60

Browse files
authored
add fields to place details query
Place details query should have a `fields` parameter. Available options for GooglePlacesDetails API: https://developers.google.com/maps/documentation/places/web-service/details#optional-parameters
1 parent 9834fea commit cdf1a60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/google.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ export class GoogleService {
137137

138138
public static async searchDetails(
139139
placeid: string,
140-
query: Query
140+
query: Query & { fields?: string }
141141
): Promise<GoogleLocationDetailResult> {
142142
const url = `${BASE_URL}/details/json?${queryString.stringify({
143143
...normalizeQuery(query),

0 commit comments

Comments
 (0)