地理编码 - 将多个地址分组到主要城市

发布于 2024-08-07 15:17:11 字数 302 浏览 2 评论 0原文

一直在寻找以前有关地理编码的问题,虽然许多问题很有帮助,但我没有找到满足我需要的问题。

我需要将多个地址分组到最近的市中心。我唯一的地址信息是城市、国家和州(如果适用)。例如,旧金山及其英里范围内的所有地址都应列为旧金山。我需要知道汇总到旧金山的地址数量。

我愿意接受有关如何解决此问题的建议。如果可能的话,我并不是特别想手动识别主要城市的列表。有没有我可以从这些内容开始的列表?

使用英里内所有地址的平均纬度/经度位置怎么样?当然,在计算平均值时,最终的“中心点”会稍微移动,但这也许是一个近似解。不太确定如何再次执行此操作,感谢您的意见!

Been hunting through previous questions on Geocoding and while many are helpful I'm not finding one to my needs.

I need to group multiple addresses to the nearest city centers. My only address information is city, country, and state (if applicable). For example, all addresses in San Francisco and within miles should be listed as San Francisco. I'll need to know the count of addresses rolled-up to San Francisco.

I'm open to suggestions on how to approach this. I don't particularly want to manually identify a list of major cities if possible. Is there a list of these I can start from?

What about using an average lat/long location of all addresses within miles? Granted the final 'center point' would move around a bit as the average is computed but perhaps that is an approximate solution. Not quite sure how to do this so again, appreciate input!

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

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

发布评论

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

评论(1

澜川若宁 2024-08-14 15:17:11

很好的问题。我认为更普遍的是,您想要的是某种将城市纳入大都市区的标准方法,并且您不想创建或维护自己的列表,这是完全正确的。

雅虎! GeoPlanet 提供了一个具有相当彻底的层次结构的地理本体。如果您对标准行政区划(如县或州)感到满意,那会很容易,但我认为您正在寻找比这更笼统的东西。但 GeoPlanet 还提供区域(通常在美国),包括城镇的大都市统计区

如果您有每个城市的名称,则可以使用 GeoPlanet 查找该城市所属的任何 MSA 区域并汇总到该区域(GeoPlanet 为每个 MSA 提供边界框和质心,以便您可以轻松地将其放置在地图上)。对于不属于美国人口普查局 MSA 的乡村城镇,您可能不需要将其分组到最近的城市(无论如何可能很远)。

Great question. I think more generally what you want is some standard way of rolling up cities into metropolitan areas and you're exactly right that you don't want to create or maintain a list of your own.

Yahoo! GeoPlanet provides a geographic ontology with a pretty thorough hierarchy. If you were happy with standard administrative divisions (like county or state), it would be easy, but I think you're looking for something a little more general than that. But GeoPlanet also provides zones, often -- in the US -- including the town's Metropolitan Statistical Area.

If you have each city name, you could use GeoPlanet to find any MSA zones that the city belongs to and roll up to that (and GeoPlanet provides a bounding box and centroid for each MSA so you can easily place it on a map). For rural towns that aren't a part of a US census bureau MSA you may not need to group it to the nearest city (which may be far away anyway).

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