将邮政编码转换为 Google Metro 代码?
我知道 Google 发布了 AdWords 的“都市区”。是否有从邮政编码到都市区代码的转换器?我所指的地铁列表位于:http://code. google.com/apis/adwords/docs/developer/adwords_api_us_metros.html
I know that Google publishes its "metro areas" for adwords. Is there a converter from ZIP code to metro area code available? The metro list I'm referring to is at: http://code.google.com/apis/adwords/docs/developer/adwords_api_us_metros.html
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Google 的都市名称似乎仅限于 USPS 邮局名称,因此您可以使用 2 个表格进行转换:
USPS 城邦文件,其中列出了所有邮政编码以及附加到该城市的相应地名和邮局名称拉链。请注意,此文件每月更新一次,并且从购买的 USPS 文件中复制的“免费”版本通常已过时。
Google 的地铁列表已标准化,因此“Huntsville-Decatur (Florence) AL 691”等条目将变为“Huntsville AL: 691/Decatur AL: 691/Florence AL: 691”。
在城邦文件中查找 ZIP,获取相应的邮局名称,在标准化地铁列表中查找邮局名称,获取相应的地铁代码。
Google's metro names appear to be restricted to USPS post office names, so you can do the conversion with 2 tables:
The USPS city-state file, which lists all ZIP codes and the corresponding place names and post office names attached to the ZIP. Beware, this file is updated monthly, and the "free" versions floating around and copied from purchased USPS files are often out of date.
Google's metro list, normalized so entries like "Huntsville-Decatur (Florence) AL 691" become "Huntsville AL: 691/Decatur AL: 691/Florence AL: 691".
Find the ZIP in the city-state file, fetch the corresponding post office name, find the post office name in the normalized metro list, fetch the corresponding metro code.
有几个类似的问题针对 AdWords API 团队。在这两种情况下,答案都是“不,没有简单的方法可以做到这一点”。不过,adwords 团队的 Jeff Posnick 确实提出了一个有趣的想法:
http://groups.google.com /group/adwords-api/browse_thread/thread/e514fa91403397ab
https://groups.google.com/group/adwords-api/ browser_thread/thread/1af97ae9938d76ee
There's been a couple of similar questions directed towards the adwords API team. In both cases, there answers have been "no, there's no easy way to do that." Jeff Posnick of the adwords team does offer an interesting idea though:
http://groups.google.com/group/adwords-api/browse_thread/thread/e514fa91403397ab
https://groups.google.com/group/adwords-api/browse_thread/thread/1af97ae9938d76ee