API & MCP

Everything a person can do on Geo Data Visualizer, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Geo Data Visualizer

Upload a CSV/XLSX with latitude/longitude (plus optional value and label) or a country-code column, or a GeoJSON file with points, lines and polygons. Get an SVG map over bundled Natural Earth country outlines in the Equal Earth, Mercator or equirectangular projection – as points, proportional symbols, a hexagonal-bin heatmap or a choropleth – zoomed to your data, with SVG/PNG downloads.

Inputs of Geo Data Visualizer
FieldTypeDefaultDescription
filefile—CSV, Excel or GeoJSON file. Max 20 MB. CSV/XLSX: lat/lon columns or a country column (ISO code or English name). GeoJSON: Point, LineString, Polygon (and Multi-) geometries.
datatextarea—Or paste data. CSV with a header row, or GeoJSON.
modeselect (auto, points, proportional, hexbin, choropleth)"auto"Map type
projectionselect (equal-earth, mercator, equirectangular)"equal-earth"Projection
latColumntext—Latitude column. Empty: a column named lat/latitude.
lonColumntext—Longitude column. Empty: a column named lon/lng/longitude.
valueColumntext—Value column / property. Numbers for circle size, hex sums or choropleth shading. Empty: the first numeric column (or a "value" property in GeoJSON).
labelColumntext—Label column / property
countryColumntext—Country column (choropleth). ISO 3166 alpha-2/alpha-3 codes or English country names.
zoomselect (auto, world)"auto"Extent
hexRadiusinteger14Hexagon size
titletext—Map title
pngbooleantrueAlso create a PNG image

Example request

Offices as proportional circles (staff, example data)

curl -X POST https://geodatavisualizer.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"data":"office,lat,lon,staff\nTokyo,35.68,139.69,42\nDelhi,28.61,77.21,18\nShanghai,31.23,121.47,25\nSão Paulo,-23.55,-46.63,12\nMexico City,19.43,-99.13,9\nCairo,30.04,31.24,6\nMumbai,19.08,72.88,21\nNairobi,-1.29,36.82,7\nNew York,40.71,-74.01,55\nLagos,6.52,3.38,8\nParis,48.86,2.35,31\nLondon,51.51,-0.13,47\nBerlin,52.52,13.40,26\nToronto,43.65,-79.38,14\nSydney,-33.87,151.21,11","mode":"proportional","valueColumn":"staff","labelColumn":"office","zoom":"world","title":"Staff per office (example data)"}'

Every result contains

inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.

MCP (Model Context Protocol)

{
  "mcpServers": {
    "geo-data-visualizer": { "type": "http", "url": "https://geodatavisualizer.usefulweb.site/mcp" }
  }
}