From cdf1a60fa7921118f39cc2e64fbc395f8c3c1084 Mon Sep 17 00:00:00 2001 From: Bilux Date: Wed, 11 Sep 2024 16:58:54 +0100 Subject: [PATCH] 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 --- src/services/google.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/google.service.ts b/src/services/google.service.ts index c15ea70..8fe10f2 100644 --- a/src/services/google.service.ts +++ b/src/services/google.service.ts @@ -137,7 +137,7 @@ export class GoogleService { public static async searchDetails( placeid: string, - query: Query + query: Query & { fields?: string } ): Promise { const url = `${BASE_URL}/details/json?${queryString.stringify({ ...normalizeQuery(query),