我正在python3中使用uszipcode lib查找基于纬度和经度的邮政编码。我搜索了不显示特定邮政编码的特定值,但是该邮政编码确实存在。我的代码在下面
from uszipcode import Zipcode
from uszipcode import SearchEngine
search = SearchEngine(simple_zipcode=True)
result = search.by_coordinates(39.0300,-77.5000,radius=30,returns=100)
result
结果
[SimpleZipcode(zipcode='20147', zipcode_type='Standard', major_city='Ashburn',
post_office_city='Ashburn, VA', common_city_list=['Ashburn'], county='Loudoun County',
state='VA', lat=39.05, lng=-77.48, timezone='Eastern', radius_in_miles=5.0,
area_code_list=['703'], population=54086, population_density=2721.0,
land_area_in_sqmi=19.87, water_area_in_sqmi=0.32,
housing_units=19719, occupied_housing_units=19046,
median_home_value=444000, median_household_income=122115,
bounds_west=-77.530888, bounds_east=-77.431157,
bounds_north=39.085911, bounds_south=38.993544), ....
它不返回邮政编码20149。我在这里错过了什么吗?请提出建议。.预先感谢
from uszipcode import Zipcode
from uszipcode import SearchEngine
search = SearchEngine(simple_zipcode=True)
result = search.by_coordinates(39.0300,-77.5000,radius=30,returns=100)
result