问题描述
我想在用户定义的区域内找到邮政编码。假设用户在地图上定义了以下形状
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?
谢谢!
推荐答案
只需使用此代码示例: 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%20lineand 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.
这篇关于在用户定义的区域内查找邮政编码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!