Get Map Data
get_map_dataFetch administrative boundary data for a country to draw interactive maps, returning region names and a GeoJSON URL for map libraries. Choose ADM0, ADM1, or ADM2.
Instructions
Get administrative boundary data for a country, for drawing an interactive map. Returns the names of each sub-national region plus a URL to simplified GeoJSON that a map library (Leaflet, D3, Mapbox) can load directly in the browser. Use level 'ADM0' for the country outline, 'ADM1' for states/provinces/regions (e.g. Slovak kraje, German Bundeslander), or 'ADM2' for counties/districts. Not every country has ADM2 data.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| level | No | ADM1 | |
| country | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||