Generate map (GeoJSON)
generate_mapCreate a GeoJSON FeatureCollection of country centroids sized by displacement metric, filtered by asylum or origin country and year.
Instructions
GeoJSON FeatureCollection of country centroid points sized by a displacement metric — drop it into any GeoJSON viewer (geojson.io, Leaflet, Kepler). by="asylum" maps host countries, by="origin" maps origins.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| by | No | "asylum" = people hosted IN the country; "origin" = people displaced FROM the country | |
| year | No | Year (default: latest) | |
| limit | No | Top-N countries (default 25) | |
| metric | No | Metric for point properties (default refugees) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | Yes | ||
| metric | Yes | ||
| geojson | Yes | ||
| feature_count | Yes | ||
| skipped_countries | Yes |