Generate map (GeoJSON)
generate_mapCreate a GeoJSON FeatureCollection of country centroid points sized by a displacement metric, so you can visualize asylum or origin data in any GeoJSON viewer.
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) | |
| locale | No | Language of the human-readable text output: "en" (default) or "ar" (Modern Standard Arabic, right-to-left). Structured JSON fields, ISO3 codes and dataset ids stay in English either way. | |
| 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 |