Compare a Boat With Similar Boats
compare_boatOne boat against up to 10 closest published boats of the same type in the same country: specs and the all-in weekly price (in currency, EUR when omitted, at max guests, the figure search compares) for each of the next 52 weeks. Pass id (a boat), or boat_type and country (optionally region, city) to describe one. The specs take search_boats' names: without id they describe the boat to compare; with id they filter its peers as search_boats would. Only boats open at least one week are compared. similar_pct is how alike a peer is: the share of the specs it shares. With id, overlap_pct is the share of the boat's open weeks the peer is open too. With id, anchor.price is the boat's weekly figures, a peer's price is its figure minus the boat's (its own in the weeks listed in absolute_weeks), and a peer carries its region, city, same (the fields it shares with the boat) and only the specs that differ, as signed deltas; without id every peer carries its own specs and figures. null = not sellable that week; weeks gives each check-in date. Use when someone asks how a boat compares with others nearby on price, size or age — an operator benchmarking their own boat included. For what is better or worse about one boat, use get_boat_standouts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Boat id from search_boats or get_boat_details — copy it verbatim. Omit to describe a boat by its specs. | |
| city | No | Without id, optional: city or town, e.g. Split. | |
| lock | No | With id: keep only peers the same as the boat in these fields — the fields a peer's `same` lists. | |
| berths | No | Berths: without id the number to match, with id the minimum. | |
| cabins | No | Cabins: without id the number to match; with id the minimum guest cabins, crew cabins not counted (as search_boats). | |
| guests | No | Guests: without id the number to match, with id the minimum. | |
| region | No | Without id, optional: sailing region, e.g. Dalmatia. | |
| country | No | Without id: ISO country code, e.g. HR (required with boat_type). | |
| toilets | No | Toilets: without id the number to match, with id the minimum. | |
| currency | No | Optional: the currency every amount in the answer is written in, and any price you send is read in. EUR when omitted. | |
| year_max | No | Maximum build year. | |
| year_min | No | Minimum build year. | |
| boat_type | No | Without id: the boat type (required with country). | |
| makemodel | No | Make and/or model as the guest said it, e.g. "Lagoon 42", "Bali". | |
| length_max | No | Maximum length in feet. | |
| length_min | No | Minimum length in feet. |