Skip to content
supercarto
Esc
↑↓navigate↵open⌘Jpreview
On this page

search_places and expand_feature

Query a maplet by name or type, then expand one feature's exact geometry on demand.

always advertised

search_places

search_places(lat, lon, radius, query, limit) — find places by name or type within the maplet’s catchment. This is the “where do I meet them” query: give it names of things (“pharmacy”, “Blue Bottle”) and ranked matches come back as node ids.

expand_feature

expand_feature(id) — exact geometry for one feature in this maplet. The budget cut keeps landmarks but simplifies their geometry; when an agent actually needs the full shape of one building, park, or floor, it expands just that feature instead of re-paying for the whole area.

The two tools work as a pair: budget keeps context cheap, expansion keeps detail reachable. The tools: block at the foot of every maplet advertises which of these its own catchment can answer.

Last updated on

Was this page helpful?