Location class

A location.

See the help center article for a detailed description of these fields, or the [category endpoint](/my-business/reference/rest/v4/categories) for a list of valid business categories.

Constructors

Location({AdWordsLocationExtensions? adWordsLocationExtensions, Categories? categories, List<String>? labels, String? languageCode, LatLng? latlng, Metadata? metadata, List<MoreHours>? moreHours, String? name, OpenInfo? openInfo, PhoneNumbers? phoneNumbers, Profile? profile, BusinessHours? regularHours, RelationshipData? relationshipData, ServiceAreaBusiness? serviceArea, List<ServiceItem>? serviceItems, SpecialHours? specialHours, String? storeCode, PostalAddress? storefrontAddress, String? title, String? websiteUri})
Location.fromJson(Map json_)

Properties

adWordsLocationExtensions AdWordsLocationExtensions?
Additional information that is surfaced in AdWords.
getter/setter pair
categories Categories?
The different categories that describe the business.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
labels List<String>?
A collection of free-form strings to allow you to tag your business.
getter/setter pair
languageCode String?
The language of the location.
getter/setter pair
latlng LatLng?
User-provided latitude and longitude.
getter/setter pair
metadata Metadata?
Additional non-user-editable information.
getter/setter pair
moreHours List<MoreHours>?
More hours for a business's different departments or specific customers.
getter/setter pair
name String?
Google identifier for this location in the form: locations/{location_id}.
getter/setter pair
openInfo OpenInfo?
A flag that indicates whether the location is currently open for business.
getter/setter pair
phoneNumbers PhoneNumbers?
The different phone numbers that customers can use to get in touch with the business.
getter/setter pair
profile Profile?
Describes your business in your own voice and shares with users the unique story of your business and offerings.
getter/setter pair
regularHours BusinessHours?
Operating hours for the business.
getter/setter pair
relationshipData RelationshipData?
All locations and chain related to this one.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serviceArea ServiceAreaBusiness?
Service area businesses provide their service at the customer's location.
getter/setter pair
serviceItems List<ServiceItem>?
List of services supported by merchants.
getter/setter pair
specialHours SpecialHours?
Special hours for the business.
getter/setter pair
storeCode String?
External identifier for this location, which must be unique within a given account.
getter/setter pair
storefrontAddress PostalAddress?
A precise, accurate address to describe your business location.
getter/setter pair
title String?
Location name should reflect your business's real-world name, as used consistently on your storefront, website, and stationery, and as known to customers.
getter/setter pair
websiteUri String?
A URL for this business.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited