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_idstringrequiredtitlestringrequiredsubtitlestringplacesobject[]requiredShow child attributes
titlestringrequiredareastringpricestringprice_notestringratingnumberreviewsintegermetastringdescriptionstringimagestringurlstringlink_labelstringlatnumberlngnumberpickbooleanwhystringread_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_idstringrequiredupdate_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_idstringrequiredtitlestringsubtitlestringaddobject[]Show child attributes
titlestringrequiredareastringpricestringprice_notestringratingnumberreviewsintegermetastringdescriptionstringimagestringurlstringlink_labelstringlatnumberlngnumberpickbooleanwhystringchangeobject[]Show child attributes
idstringrequiredtitlestringareastringpricestringprice_notestringratingnumberreviewsintegermetastringdescriptionstringimagestringurlstringlink_labelstringlatnumberlngnumberpickbooleanwhystringremovestring[]orderstring[]replaceobject[]Show child attributes
titlestringrequiredareastringpricestringprice_notestringratingnumberreviewsintegermetastringdescriptionstringimagestringurlstringlink_labelstringlatnumberlngnumberpickbooleanwhystring