Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Location

import type { Location } from "https://googleapis.deno.dev/v1/mybusinessbusinessinformation:v1.ts";

A location. See the [help center article] (https://support.google.com/business/answer/3038177) for a detailed description of these fields, or the category endpoint for a list of valid business categories.

interface Location {
adWordsLocationExtensions?: AdWordsLocationExtensions;
categories?: Categories;
labels?: string[];
languageCode?: string;
latlng?: LatLng;
readonly metadata?: Metadata;
moreHours?: MoreHours[];
name?: string;
openInfo?: OpenInfo;
phoneNumbers?: PhoneNumbers;
profile?: Profile;
regularHours?: BusinessHours;
relationshipData?: RelationshipData;
serviceArea?: ServiceAreaBusiness;
serviceItems?: ServiceItem[];
specialHours?: SpecialHours;
storeCode?: string;
storefrontAddress?: PostalAddress;
title?: string;
websiteUri?: string;
}

§Properties

§
adWordsLocationExtensions?: AdWordsLocationExtensions
[src]

Optional. Additional information that is surfaced in AdWords.

§
categories?: Categories
[src]

Optional. The different categories that describe the business.

§
labels?: string[]
[src]

Optional. A collection of free-form strings to allow you to tag your business. These labels are NOT user facing; only you can see them. Must be between 1-255 characters per label.

§
languageCode?: string
[src]

Immutable. The language of the location. Set during creation and not updateable.

§
latlng?: LatLng
[src]

Optional. User-provided latitude and longitude. When creating a location, this field is ignored if the provided address geocodes successfully. This field is only returned on get requests if the user-provided latlng value was accepted during create, or the latlng value was updated through the Google Business Profile website. This field can only be updated by approved clients.

§
readonly metadata?: Metadata
[src]

Output only. Additional non-user-editable information.

§
moreHours?: MoreHours[]
[src]

Optional. More hours for a business's different departments or specific customers.

§
name?: string
[src]

Google identifier for this location in the form: locations/{location_id}.

§
openInfo?: OpenInfo
[src]

Optional. A flag that indicates whether the location is currently open for business.

§
phoneNumbers?: PhoneNumbers
[src]

Optional. The different phone numbers that customers can use to get in touch with the business.

§
profile?: Profile
[src]

Optional. Describes your business in your own voice and shares with users the unique story of your business and offerings. This field is required for all categories except lodging categories (e.g. hotels, motels, inns).

§
regularHours?: BusinessHours
[src]

Optional. Operating hours for the business.

§
relationshipData?: RelationshipData
[src]

Optional. All locations and chain related to this one.

§

Optional. Service area businesses provide their service at the customer's location. If this business is a service area business, this field describes the area(s) serviced by the business.

§
serviceItems?: ServiceItem[]
[src]

Optional. List of services supported by merchants. A service can be haircut, install water heater, etc. Duplicated service items will be removed automatically.

§
specialHours?: SpecialHours
[src]

Optional. Special hours for the business. This typically includes holiday hours, and other times outside of regular operating hours. These override regular business hours. This field cannot be set without regular hours.

§
storeCode?: string
[src]

Optional. External identifier for this location, which must be unique within a given account. This is a means of associating the location with your own records.

§
storefrontAddress?: PostalAddress
[src]

Optional. A precise, accurate address to describe your business location. PO boxes or mailboxes located at remote locations are not acceptable. At this time, you can specify a maximum of five address_lines values in the address. This field should only be set for businesses that have a storefront. This field should not be set for locations of type CUSTOMER_LOCATION_ONLY but if set, any value provided will be discarded.

§
title?: string
[src]

Required. Location name should reflect your business's real-world name, as used consistently on your storefront, website, and stationery, and as known to customers. Any additional information, when relevant, can be included in other fields of the resource (for example, Address, Categories). Don't add unnecessary information to your name (for example, prefer "Google" over "Google Inc. - Mountain View Corporate Headquarters"). Don't include marketing taglines, store codes, special characters, hours or closed/open status, phone numbers, website URLs, service/product information, location/address or directions, or containment information (for example, "Chase ATM in Duane Reade").

§
websiteUri?: string
[src]

Optional. A URL for this business. If possible, use a URL that represents this individual business location instead of a generic website/URL that represents all locations, or the brand.