Location

The Location capability adds positional data to Supplier and Product objects.

A Location may appear on a Supplier as the operator's location of business, or the location of their main offices. Locations on Product objects may outline specific venues or destinations for a tour or attraction that are distinct from the operator's location.

X-Capabilities: redeam/location

Field NameFormatRequiredDescription
idstringYesLocation's unique identifier
typeenum(string)YesOne of START , END , VISITED , PRIMARY
streetAddressstringYesValid street address for the Supplier, e.g. "2001 Colorado Blvd"
citystringYesThe locality in which the street address is, and which is in the region, e.g. "Denver"
countryCodestring(ISO3166-1)YesCountry of Supplier or Product, e.g. "USA"
regionstringNoRegion where the city is, and which is in the country, e.g. "Colorado"
postalCodestringYesValid mailing code of Supplier or Product, e.g. "80205"
longitudefloatNoGeographic coordinate (East/West), e.g. -104.942946
latitudefloatNoGeographic coordinate (North/South), e.g. 39.747597
googlePlaceIdstringNoGoogle's identifier for this location - required for Google Things To Do compatibility.

Identifiers

A location's identifier may be an arbitrary string (e.g. 'primaryLocation'), but it must be unique within the Supplier. A Supplier and its Product(s) may share a common Location with the same ID, but the details on each Location must remain the same.

Location Types

Multiple Location objects MAY be used on a single Product to define a list of locations a tour may visit. The initial starting or meeting Location MUST have a type of START, and the final destination of the tour MUST have a type of END. A tour MAY have zero or many intermediate Location(s), which MUST have a type of VISITED.

If the Location is associated with a Supplier, or is not defining a tour, type MUST be set to PRIMARY.

GET /suppliers

Supplier Changes

This capability adds a location object to the Supplier.

Supplier
Copy

GET /suppliers/:supplierId/products

Product Changes

This capability adds a locations array to the Supplier, containing a list of Location objects.

Product
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard