Observed since 20 Oct, 19:09 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Interactive epidemiological spot maps for India
Interactive epidemiological spot maps for India — no GIS software, no shapefiles, no setup.
AdarvMaps turns a spreadsheet of latitude and longitude from the field into a polished, interactive HTML map. You can open the map in any browser, personalise it, and download it as a PNG image or a PDF. AdarvMaps already has India's state and district boundaries built in, so you don't have to search for shapefiles.
Please ensure each row in your spreadsheet is one person or event, and that each row carries its location (latitude and longitude) in separate columns. You may also include an extra column that splits the data into case and control (a grouping variable), if you want to show both on the same map.
AdarvMaps turns your spreadsheet into an interactive map. It automatically places every row as a dot at its location, draws the correct state and district boundaries for you, and colours the two groups differently. It then generates a single, self-contained HTML file you can open in any browser to personalise your map, download as a PNG or PDF, or email to a colleague. You can also aggregate the dots to switch from a spot map to a dot-density map.
With AdarvMaps you can make:
| If this sounds like you… | Go to |
|---|---|
| 🙋 "I just want a map — I don't write code." | → Guide for non-coders |
| 👩💻 "I write Python and want the API / command line." | → Guide for developers |
This guide is for anyone who wants to create a map but has never written any code. You don't need to install anything on your computer, and you don't need to understand any programming. We'll give you the template code to copy and paste, and then AdarvMaps guides you through the rest with a few simple, plain-English questions.
Go to colab.research.google.com and click New notebook. Google Colab is a free service that runs code in your web browser, so there's nothing to install. You'll see an empty box called a cell.
Click inside the cell, paste the two lines below, and press the ▶ (play) button on the left:
!pip install adarvmaps
import adarvmaps; adarvmaps.run()
The first line installs AdarvMaps; the second starts the guided wizard. Depending on your internet speed, this may take a little while.
AdarvMaps asks five questions. For each one it shows its own best guess — if the guess is right, just press Enter to accept it; otherwise, type the number of the correct choice.
1. Upload your data file
.xlsx / .xls, or TSV) from your computer.2. Which column has the latitude?
28.61 for Delhi).3. Which column has the longitude?
77.20 for Delhi).4. Which column is your grouping variable?
5. Which value is the main group?
1 = Case, 0 = Control or Yes = Case, No = Control, choose 1 or Yes.Once you've answered all five, AdarvMaps builds the map as an HTML file.
adarvmaps_200926.html).pip install adarvmaps
Python 3.9+.
from adarvmaps import AdarvMaps
# `data` accepts a CSV path or a pandas DataFrame
AdarvMaps("my_data.csv").build().save("map.html")
Or from the command line (run adarvmaps with no arguments for the guided wizard):
adarvmaps my_data.csv -o map.html
AdarvMaps(
data, # required: a CSV path or a pandas DataFrame
state_shp=None, # custom state boundary (shapefile / GeoPackage)
district_shp=None, # custom district boundary
lat_col=None, # override column auto-detection
long_col=None,
outcome_col=None, # the grouping column
case_value=None, # which value in outcome_col is the main group
case_label=None, # name for the main group (default: the data's own value)
control_label=None, # name for the other group (default: the data's own value)
all_cases=False, # treat every row as a case (no second group)
count_cutoff=2, # districts ≤ cutoff → district-level zoom
margin_deg=1.0, # boundary crop padding
cluster_color="#E85252", # dot-density bubble colour
case_color="#D55757", # main-group pin colour
control_color="#7676E7", # other-group pin colour
)
AdarvMaps(data, ...) — all options below are keyword arguments:
| Option | Default | Description |
|---|---|---|
lat_col, long_col, outcome_col | auto | Override column auto-detection |
case_value | auto | Value in outcome_col that is the main group |
case_label, control_label | data values | Names shown for the two groups on the map |
all_cases | False | Treat every row as a case (no second group) |
case_color, control_color, cluster_color | ADARV palette | Marker colours (hex) |
state_shp, district_shp | bundled | Use your own boundary files |
Full API and CLI reference → DOCUMENTATION.md
AdarvMaps reads a CSV and auto-detects the columns — you don't have to rename anything. At a minimum it needs location, and optionally a grouping column:
| What AdarvMaps needs | Possible column names | How to provide it |
|---|---|---|
| Coordinates | lat, lon (or latitude, longitude) | Separate lat / lon columns, or one combined "lat,lon" column |
| Grouping (optional) | outcome, status, case_control, case | A column with two values, e.g. case / control |
Example:
latitude,longitude,outcome
28.6,77.2,case
19.0,72.8,control
13.0,80.2,case
A single, self-contained HTML file you can open in any browser or share. Its sidebar lets anyone switch between Dot Density and Spot Pins, show one group or both, recolour and resize markers, toggle place-name labels, and export to PNG / PDF.
AdarvMaps is developed by the ADARV team:
MIT © ADARV
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.1.42 | 3 Oct 2026 | 7 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 19:09 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:bfcf56c0e0bafae2cd0233bd9d093e8c0722c4881ab164cf0c2ed15d0c6a34d4