在用户定义的区域内查找邮政编码 [英] Find zip codes Inside a user defined area

查看:112
本文介绍了在用户定义的区域内查找邮政编码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在用户定义的区域内找到邮政编码。假设用户在地图上定义了以下形状

I want to find zip codes inside a user defined area. Suppose user has defined below shape on map

点击按钮,它应该显示该形状的邮政编码边界,​​如下所示

On button click it should show the zip code boundaries of that shape like below 





Bing地图是否提供任何API或任何我可以实现此目的的文件或内容?

Does Bing maps provides any API or any file or something by which I can achieve this?

如果是,我可以获取州,国家,邮政编码区域,国家边界以及所有国家/地区的邮政编码吗?

If yes, Can I get state, country, postal code area,country boundaries along with the zip codes for all country?

谢谢!

推荐答案

Bing Maps在美国人口普查2010数据源中提供了一些邮政编码列表区域您可以使用Bing空间数据服务来完成此操作。 

Bing Maps provides some Zip code tabulation areas in the US Census 2010 data source in the Bing Spatial Data Services which you can use to do exactly this. 

只需使用此代码示例:  https://bingmapsv8samples.azurewebsite s.net/#Find%20all%20counties%20that%20intersect%20a%20line
并使用  https://spatial.virtualearth更新sds数据源网址。 net / REST / v1 / data / f42cab32d0ee41738d90856badd638d3 / USCensus2010_ZCTA5 / ZCTA5 然后将多边形而不是一行传入查询。

Simply take this code sample: https://bingmapsv8samples.azurewebsites.net/#Find%20all%20counties%20that%20intersect%20a%20line and update the sds Data source URL with https://spatial.virtualearth.net/REST/v1/data/f42cab32d0ee41738d90856badd638d3/USCensus2010_ZCTA5/ZCTA5 and then pass in a polygon instead of a line into the query.


这篇关于在用户定义的区域内查找邮政编码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆