Ultimaps
v0.2.1Create choropleth, category and pin maps of countries, states, counties and ZIP codes as images.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_maps List maps
List the maps Ultimaps can render: the world, continents, countries subdivided into states, provinces, counties or departments, and US ZIP code areas. Each row is {id, title, regionType, layers, regionCount, labels}. `id` is the mapId for render_map and get_map_regions; it is the map's slug on ultimaps.com (the last path segment, not the whole URL) and always means the current edition. `regionCount` is how many region keys a complete dataset needs. `labels: false` means the map has no region labels, so `style.labels` does nothing there. `layers` are the ids render_map's `layers` can turn on. P…
| Parameter | Type | Description |
|---|---|---|
query | string | Search map ids, titles, region types and categories, e.g. "counties", "germany", "africa". Omit to list every map. |
get_map_regions Get map regions
Look up one map: title, regionType, regionCount, labels, layers, and its regions as {key, title}, 200 per page. You rarely need this before rendering. render_map accepts region names, codes and common aliases and auto-corrects typos, reporting what it matched. Use it to build a dataset covering every region of a map, to see how a map names its regions, or to resolve a key render_map could not match. `query` searches keys, titles and aliases, so no hits means the map really has no such region. Use `offset` for further pages.
| Parameter | Type | Description |
|---|---|---|
mapId * | string | Map id from list_maps, e.g. "united-states", "europe", "united-states-california". |
offset | integer | Skip this many regions. Pages hold 200 regions; use the offset the previous result names. |
query | string | Search region keys, titles and aliases, e.g. "saint" or "US-TX". Omit to page through every region. |
render_map Render map
Draws a map of real places as an image: countries, states, counties or ZIP codes colored by data (a choropleth or heat map) or by category, with a legend, a title and pins. Borders come from real geographic data, not from an image model, and region names are matched for you. It draws only real places, never fictional or invented ones. The map is returned as an image in the conversation. Maps cover the world, continents, countries, their states, provinces and counties, and US ZIP code areas. Color regions with ONE of these (choropleth and categories are mutually exclusive): - `choropleth`: a nu…