Title
Page icon
Create new category
Edit page index title
Edit category
Edit link
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 Name | Format | Required | Description |
|---|---|---|---|
| string | Yes | Location's unique identifier |
| enum(string) | Yes | One of |
| string | Yes | Valid street address for the Supplier, e.g. |
| string | Yes | The locality in which the street address is, and which is in the region, e.g. |
| string(ISO3166-1) | Yes | Country of Supplier or Product, e.g. "USA" |
| string | No | Region where the city is, and which is in the country, e.g. |
| string | Yes | Valid mailing code of Supplier or Product, e.g. |
| float | No | Geographic coordinate (East/West), e.g. |
| float | No | Geographic coordinate (North/South), e.g. |
| string | No | Google'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.
GET /suppliers/:supplierId/products
Product Changes
This capability adds a locations array to the Supplier, containing a list of Location objects.
Questions? We'd love to hear them. Contact Travel Curious Support.