From 9fb0c08054efdfc668f50d980c8f99f128730de8 Mon Sep 17 00:00:00 2001 From: Alex Muramoto Date: Thu, 15 Jun 2023 15:30:43 -0700 Subject: [PATCH] fix: adds editorial_summary and PlaceEditorialSummary (#995) --- src/common.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/common.ts b/src/common.ts index 5ef32962a1..787254b0e1 100644 --- a/src/common.ts +++ b/src/common.ts @@ -435,6 +435,11 @@ export interface PlaceData { formatted_phone_number: string; /** is a representation of the place's address in the [adr microformat](http://microformats.org/wiki/adr). */ adr_address: string; + /** + * Contains a summary of the place. A summary is comprised of a textual overview, and also includes the language code + * for these if applicable. Summary text must be presented as-is and can not be modified or altered. + */ + editorial_summary: PlaceEditorialSummary; /** * contains the following information: * - `location`: contains the geocoded latitude,longitude value for this place. @@ -1514,6 +1519,13 @@ export enum LocationType { APPROXIMATE = "APPROXIMATE", } +export interface PlaceEditorialSummary { + /** The language of the previous fields. May not always be present. */ + language?: string; + /** A medium-length textual summary of the place. */ + overview?: string; +} + export interface PlusCode { /** is a 4 character area code and 6 character or longer local code (849VCWC8+R9). */ global_code: string;