# Maps

The 3 tools for maps. Before an agent first makes one, it reads guide topic maps.

## create_map

Make a map in a space: places — stays, restaurants, venues, shops, things to do — when where they are matters. People see a pin for each (its price, or its number), cards to swipe under the map, and a list; they comment on a place. Give each place what its result gave: title, area, price and price_note, rating and reviews, meta, description, image, url and link_label, and lat and lng only as a search result or a geocoder gave them (a maps search, a hotel or restaurant result, OpenStreetMap) — never typed from memory or guessed; a place without them has no pin, and a map with none shows its cards only. Put them in the order to show them; mark at most one pick, with why. Read guide topic "maps" first.

Parameters:
- `space_id` (string, required)
- `title` (string, required)
- `subtitle` (string): One line under the title: what these are and why.
- `places` (object[], required)

## read_map

A map's title, subtitle and places in their order, each with its id (what update_map and comment take) and every field it has.

Parameters:
- `item_id` (string, required)

## update_map

Change a map. Any of: title, subtitle; add (new places, after the others); change (by id: the fields you give replace those fields, "" clears one); remove (ids); order (every id, in the new order); replace (all places at once). The same rules as create_map: lat and lng only as a search result or a geocoder gave them (a maps search, a hotel or restaurant result, OpenStreetMap) — never typed from memory or guessed; a place without them has no pin, and a map with none shows its cards only. Applied in that order; read_map first to get the ids.

Parameters:
- `item_id` (string, required)
- `title` (string)
- `subtitle` (string)
- `add` (object[])
- `change` (object[])
- `remove` (string[])
- `order` (string[])
- `replace` (object[])
