codeforamerica / naics-api

Basic API to return NAICS codes and information
BSD 3-Clause "New" or "Revised" License
96 stars 55 forks source link

Allow for queries or searches to be performed on a digit limit range. #14

Open louh opened 11 years ago

louh commented 11 years ago

e.g. only 3-digit codes, or min of 4 digits / max of 5.

louh commented 11 years ago

Proposal - use &level=X

where X is the level but also number of digits. This uses the terminology that NAICS itself uses to describe each level. (http://www.bls.gov/sae/saewhatis.htm)

minimum of X is 2. Max of 2 is 6. The user can individually specify level by saying &level=2 or &level=5, etc.

User can also specify a level range, e.g. &level=3-5.