Us Maps

GeoJSON and TopoJSON map files
Alternatives To Us Maps
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Countries5,7093997722 days ago21April 04, 202037odbl-1.0PHP
World countries in JSON, CSV, XML and Yaml. Any help is welcome!
Mapshaper3,308371823 days ago379August 15, 2022112otherJavaScript
Tools for editing Shapefile, GeoJSON, TopoJSON and CSV files
14 years agoNovember 02, 2014106bsd-3-clauseJavaScript
A framework for 3D geospatial visualization in the browser
Awesome Geojson1,983
a month ago2cc0-1.0
GeoJSON utilities that will make your life easier.
Leaflet Omnivore5565542 years ago11November 17, 201623otherJavaScript
universal format parser for Leaflet & Mapbox.js
Vector Datasource481
23 days ago249otherPython
Tilezen vector tile service - OpenStreetMap data in several formats
Leaflet.vectorgrid47843182 years ago8August 28, 2017102JavaScript
Display gridded vector data (sliced GeoJSON or protobuf vector tiles) in Leaflet 1.0.0
19 days ago2
대한민국 행정동 경계 파일
Southkorea Maps323
4 years ago6Python
South Korea administrative divisions in ESRI Shapefile, GeoJSON and TopoJSON formats.
Us Maps305
6 years ago2
GeoJSON and TopoJSON map files
Alternatives To Us Maps
Select To Compare

Alternative Project Comparisons

Creation process

The maps here were created using the following steps.

Get raw shape files


Census files have to be downloaded from a browser. This assumes they are downloaded to ~/Downloads. us-state/zip/county Available:


Then unzip the files:

mkdir -p raw/state && cd raw/state && unzip ~/Downloads/ && cd ../..


Then unzip the files:

mkdir -p raw/county && cd raw/county && unzip ~/Downloads/ && cd ../..

Zip codes

Then unzip the files:

mkdir -p raw/zcta5 && cd raw/zcta5 && unzip ~/Downloads/ && cd ../..

Zip Code Tabulated Areas (ZCTA)

  • Open a browser to:
  • Click the link named ZIP Code to ZCTA Crosswalk to download the 2016 mappings of zip codes to ZCTA's.
  • That file is an Excel Spreadsheet, which can be exported to a CSV format, as done in this repo.


Medicare files can be downloaded directly from Dartmouth Atlas hrr/hsa Available:

Hospital Referral Regions

curl -O
mkdir -p raw/hrr && cd raw/hrr && unzip ../../ && cd ../..

Hospital Service Area

curl -O
mkdir -p raw/hsa && cd raw/hsa && unzip ../../ && cd ../..

Clean up .zip files as needed.

Convert to GeoJSON

Convert using gdal. On a Mac, you can install gdal with homebrew: brew install gdal.

ogr2ogr -f "GeoJSON" hsa.geo.json ./raw/hsa/HSA_Bdry.SHP HSA_Bdry
ogr2ogr -f "GeoJSON" hrr.geo.json ./raw/hrr/HRR_Bdry.SHP HRR_Bdry
ogr2ogr -f "GeoJSON" state.geo.json ./raw/state/tl_2010_us_state10.shp tl_2010_us_state10
ogr2ogr -f "GeoJSON" county.geo.json ./raw/county/tl_2010_us_county10.shp tl_2010_us_county10
ogr2ogr -f "GeoJSON" zcta5.geo.json ./raw/zcta5/tl_2010_us_zcta510.shp tl_2010_us_zcta510

Move the GeoJSON files into the geojson directory

mkdir -p geojson && mv *.geo.json geojson

Convert to TopoJSON

TopoJSON is an extension to GeoJSON that encodes toplogy, resulting in much smaller files. Nodejs is required to run the script. Install topojson using npm install topojson -g. No simplification is done on these files. None of the files are combined either, although that is possible. ZCTA file fails when trying to use topojson to convert.

mkdir -p topojson
topojson --properties HRRCITY --id-property HRRNUM --out ./topojson/hrr.topo.json ./geojson/hrr.geo.json
topojson --properties HSANAME --id-property HSA93 --out ./topojson/hsa.topo.json ./geojson/hsa.geo.json
topojson --properties NAME10 --properties STUSPS10 --id-property GEOID10 --out ./topojson/state.topo.json ./geojson/state.geo.json
topojson --properties NAME10 --properties NAMELSAD10 --id-property GEOID10 --out ./topojson/county.topo.json ./geojson/county.geo.json
topojson --id-property GEOID10 --out ./topojson/zcta5.topo.json ./geojson/zcta5.geo.json

Unify and simplify

I wanted some of these files combined into a single TopoJSON, and simplified somewhat to make the size of the map smaller. To do so, the following command was used:

topojson --out ./topojson-simplified/us.topo.json ./topojson/state.topo.json ./topojson/hrr.topo.json ./topojson/county.topo.json
topojson -s 1 --out ./topojson-simplified/us-s1.topo.json ./topojson/state.topo.json ./topojson/hrr.topo.json ./topojson/county.topo.json
topojson -s 3 --out ./topojson-simplified/us-s3.topo.json ./topojson/state.topo.json ./topojson/hrr.topo.json ./topojson/county.topo.json

A simplification threshold of 3 retained 150581 / 549117 points (27%), while a level of 1 retained 231768 / 549117 points (42%).

Reference files

The reference directory has lookup files to get names for each of the IDs, as well as getting parent information (e.g. which state is a HRR in).

Popular Topojson Projects
Popular Geojson Projects
Popular Mapping Categories

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.