Skip to content

Commit 73f9dff

Browse files
committed
minor fix to census website
1 parent 473a9db commit 73f9dff

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

episodes/census.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ The ANSI include both the Federal Information Processing Series (FIPS) codes and
4141
The fields in the shapefiles include these information. For example, “STATEFP” filed means state FIPS code, and “STATENS” field means state GNIS code.
4242
County level FIPS codes usually have five digits. The first two are the FIPS code of the state to which the county belongs and the rest three are county codes.
4343

44-
![Census USA Map] <img src="/census_map.jpg" alt="Census Map"> ("A map showing U.S. Census Bureau TIGER/Line shapefile boundaries for states and counties.")
44+
![Census USA Map](census_map.jpg "A map showing U.S. Census Bureau TIGER/Line shapefile boundaries for states and counties.")
4545

4646
### Decennial Census of Population and Housing
4747

@@ -125,7 +125,8 @@ The ACS API provides different base links for:
125125
For tract-level data, use the “state > county > tract” pattern.
126126

127127
Example base link for California (state code `06`):
128-
https://api.census.gov/data/2023/acs/acs5/profile?get=NAME&for=tract:*&in=state:06&in=county:*&key=YOUR_KEY_GOES_HERE
128+
129+
`https://api.census.gov/data/2023/acs/acs5/profile?get=NAME&for=tract:*&in=state:06&in=county:*&key=YOUR_KEY_GOES_HERE`
129130

130131

131132
**Key points:**
@@ -143,10 +144,12 @@ https://api.census.gov/data/2023/acs/acs5/profile?get=NAME&for=tract:*&in=state:
143144
2. Add the variable to your API link after `NAME`, separated by a comma:
144145

145146
**Before**
146-
https://api.census.gov/data/2023/acs/acs5/profile?get=NAME&for=tract:*&in=state:18&in=county:*
147+
148+
`https://api.census.gov/data/2023/acs/acs5/profile?get=NAME&for=tract:*&in=state:18&in=county:*`
147149

148150
**After**
149-
https://api.census.gov/data/2023/acs/acs5/profile?get=NAME,DP04_0058E&for=tract:*&in=state:18&in=county:*
151+
152+
`https://api.census.gov/data/2023/acs/acs5/profile?get=NAME,DP04_0058E&for=tract:*&in=state:18&in=county:*`
150153

151154
3. Add more variables by separating with commas:
152155

@@ -170,7 +173,7 @@ Add `&outputFormat=csv` to get a spreadsheet-friendly file.
170173

171174
#### Example Final API Call
172175

173-
https://api.census.gov/data/2023/acs/acs5/profile?get=NAME,DP04_0058E&for=tract:*&in=state:18&in=county:*&descriptive=true&outputFormat=csv
176+
`https://api.census.gov/data/2023/acs/acs5/profile?get=NAME,DP04_0058E&for=tract:*&in=state:18&in=county:*&descriptive=true&outputFormat=csv`
174177

175178

176179
This returns the number of occupied households without a vehicle for every tract in Indiana.

0 commit comments

Comments
 (0)