Maps

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_idstringrequired
titlestringrequired
subtitlestring
One line under the title: what these are and why.
placesobject[]required
Show child attributes
titlestringrequired
Its name.
areastring
Neighbourhood or town: "Mission District".
pricestring
What it costs, shown on its pin: "$150".
price_notestring
What the price is for: "per night", "for two".
ratingnumber
reviewsinteger
How many reviews the rating is from.
metastring
A short line: "Bakery · 740 South St".
descriptionstring
imagestring
A picture of it: an http(s) address from its result.
urlstring
Its page: website, booking or maps link.
link_labelstring
The button for url: "Book", "Their website".
latnumber
Only from its result.
lngnumber
Only from its result.
pickboolean
The one you recommend; give why.
whystring
Why it is the pick, from its results.

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_idstringrequired

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_idstringrequired
titlestring
subtitlestring
addobject[]
Show child attributes
titlestringrequired
Its name.
areastring
Neighbourhood or town: "Mission District".
pricestring
What it costs, shown on its pin: "$150".
price_notestring
What the price is for: "per night", "for two".
ratingnumber
reviewsinteger
How many reviews the rating is from.
metastring
A short line: "Bakery · 740 South St".
descriptionstring
imagestring
A picture of it: an http(s) address from its result.
urlstring
Its page: website, booking or maps link.
link_labelstring
The button for url: "Book", "Their website".
latnumber
Only from its result.
lngnumber
Only from its result.
pickboolean
The one you recommend; give why.
whystring
Why it is the pick, from its results.
changeobject[]
Show child attributes
idstringrequired
The place, by the id read_map gives.
titlestring
areastring
Neighbourhood or town: "Mission District".
pricestring
What it costs, shown on its pin: "$150".
price_notestring
What the price is for: "per night", "for two".
ratingnumber
reviewsinteger
How many reviews the rating is from.
metastring
A short line: "Bakery · 740 South St".
descriptionstring
imagestring
A picture of it: an http(s) address from its result.
urlstring
Its page: website, booking or maps link.
link_labelstring
The button for url: "Book", "Their website".
latnumber
Only from its result.
lngnumber
Only from its result.
pickboolean
The one you recommend; give why.
whystring
Why it is the pick, from its results.
removestring[]
orderstring[]
replaceobject[]
Show child attributes
titlestringrequired
Its name.
areastring
Neighbourhood or town: "Mission District".
pricestring
What it costs, shown on its pin: "$150".
price_notestring
What the price is for: "per night", "for two".
ratingnumber
reviewsinteger
How many reviews the rating is from.
metastring
A short line: "Bakery · 740 South St".
descriptionstring
imagestring
A picture of it: an http(s) address from its result.
urlstring
Its page: website, booking or maps link.
link_labelstring
The button for url: "Book", "Their website".
latnumber
Only from its result.
lngnumber
Only from its result.
pickboolean
The one you recommend; give why.
whystring
Why it is the pick, from its results.