Census Block Lookup | mpohorilak | Observable
ojs
ojs
ojs
ojs
ojs
ojs
ojs
Author
mpohorilak
@mpohorilak
Comments (6)
mpohorilak
Jun 23, 2020
1) download census block shapefile-
https://www.census.gov/cgi-bin/geo/shapefiles/index.php
2) import shapefile into mapshaper-
https://mapshaper.org/
3) export file as topojson (which is a condensed geojson file format) 4) upload topojson to github gist-
https://gist.github.com/
Reply
mpohorilak
Jun 23, 2020
shapefile saved here
Reply
mpohorilak
Jun 23, 2020
put test point on the map
Reply
mpohorilak
Jun 23, 2020
these are my census blocks in an array
Reply
mpohorilak
Jun 23, 2020
loop through all blocks to find where the points are using the d3 geoContains function (
https://github.com/d3/d3-geo
) when finds it returns the census block
Reply
mpohorilak
Jun 23, 2020
test returning name
Reply
Add comment
Subscribe to notifications
© 2026 Observable, Inc.
Terms of service
Privacy policy
Product
About
Pricing
Documentation
Release notes
Contact us
Open source
Notebook Kit
Plot
D3
Community
Explore
Forum
Bluesky
YouTube
X
0
Follow
Follow
Census Block Lookup | mpohorilak | Observable