确定美国地址的人口普查区

发布于 2024-12-22 13:06:50 字数 495 浏览 8 评论 0原文

我有一份大约 20k 个美国地址的列表,我想确定每个地址的人口普查区。我在此处找到了一个在线工具,但发出 20,000 个请求并屏幕抓取输出似乎就像错误的做法一样。

我的一个想法是使用一些开源库,例如 this 来搜索提供的 shapefile此处。然而,似乎有人应该编写一个实用程序来执行类似

Geocoder.census_tract_of_address("200 N State Chicago IL 60601") 的

操作有人知道这样的事情吗?我应该如何最好地解决这个问题?

I have a list of about 20k addresses in the US, and I would like to determine each one's census tract. I found a tool online that does this here, but making 20,000 requests and screenscraping the output seems like the wrong way to do.

One idea I had was to use some open source library like this to search the shapefiles provided here. However, it seems like someone should have written a utility to do something like

Geocoder.census_tract_of_address("200 N State Chicago IL 60601")

Does anyone know of such a thing? How best should I attack this problem?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

温柔少女心 2024-12-29 13:06:50

您可以对地址进行地理编码,以从众多地理编码服务之一获取纬度和经度(尝试使用 Google、Yahoo 或 OpenStreetMap)。

然后,您可以使用以下方式查找人口普查区:

http://askgeo.com

(全面披露:我运营该网站。)

它是一个商业解决方案,您可以购买 Web API 的访问权限,或购买 Java 库以在您自己的系统上执行查询。

You can geocode your address to get latitude and longitude from one of the many geocoding services out there (try Google, Yahoo, or OpenStreetMap).

Then you can look up the census tract using:

http://askgeo.com

(Full disclosure: I run that site.)

It is a commercial solution where you can purchase access to the Web API, or purchase the Java Library to do your queries on your own system.

丶视觉 2024-12-29 13:06:50

或者,如果您对地址进行地理编码,则可以使用 Data.gov 服务按坐标检索人口普查地理 ID:这将返回所有其他 Data.gov Web 服务使用的 ID。

看看 https://www.temboo.com/library/Library/DataGov/通过坐标获取人口普查 ID/

Alternately, if you geocode your address you can use the Data.gov service to retrieve the census geography ID by coordinates: this will return the ID that is used by all the other Data.gov webservices.

Take a look at https://www.temboo.com/library/Library/DataGov/GetCensusIDByCoordinates/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文