MCPcopy Create free account
hub / github.com/MacHu-GWU/uszipcode-project / by_population_density

Method by_population_density

uszipcode/search.py:731–748  ·  view source on GitHub ↗

Search zipcode information by population density range. `population density` is `population per square miles on land`

(self,
                              lower=-1,
                              upper=2 ** 31,
                              zipcode_type=ZipcodeType.Standard,
                              sort_by=SimpleZipcode.population_density.name,
                              ascending=False,
                              returns=DEFAULT_LIMIT)

Source from the content-addressed store, hash-verified

729 )
730
731 def by_population_density(self,
732 lower=-1,
733 upper=2 ** 31,
734 zipcode_type=ZipcodeType.Standard,
735 sort_by=SimpleZipcode.population_density.name,
736 ascending=False,
737 returns=DEFAULT_LIMIT):
738 """
739 Search zipcode information by population density range.
740
741 `population density` is `population per square miles on land`
742 """
743 return self.query(
744 population_density_lower=lower,
745 population_density_upper=upper,
746 sort_by=sort_by, zipcode_type=zipcode_type,
747 ascending=ascending, returns=returns,
748 )
749
750 def by_land_area_in_sqmi(self,
751 lower=-1,

Callers

nothing calls this directly

Calls 1

queryMethod · 0.95

Tested by

no test coverage detected