获得城市区域或社区的最佳方式 [英] Best way to get a city area or neighbourhood

查看:101
本文介绍了获得城市区域或社区的最佳方式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿伙计们,


我对Bing地图很陌生,想知道如何获得一个城市地区的Geocode api回报。  例如,如果我想查找 - 城市(地区)或阿伯茨福德(Matsqui Prairie地区) 


google的api将返回区域中心


lat =  49.106961


lng =  -122.295973



我想要做的是使用bing贴图获得此类结果。



任何帮助都将不胜感激。

解决方案

对于地理编码,您可以使用按查询查找位置
https://msdn.microsoft.com/en-us/library/ff701711.aspx
,返回位置的纬度和经度坐标被指定为查询字符串。例如:
$


http://dev.virtualearth.net/REST/v1/Locations?q=Abbotsford,%20Canada&key=<BingMapsKey> ;



由于您是Bing Maps Services的新手,您可以查看Bing Maps API最佳实践:
https://msdn.microsoft.com/library/dn894107.aspx

以下页面将说明如何如果您还没有Bing地图帐户和Bing地图密钥,请创建Bing地图帐户:
https:/ /msdn.microsoft.com/en-us/library/gg650598.aspx

Hey guys,

I'm brand new to Bing maps and Wondering how to get a return on the Geocode api for an area of a city.  For example if I wanted to find -- city(area)  or  Abbotsford (Matsqui Prairie area) 

google's api would return the centre of area

lat = 49.106961

lng = -122.295973

What I'm looking to do is get this type of result using bing maps.

Any help would be appreciated.

解决方案

For geocoding you can use Find a Location by Query: https://msdn.microsoft.com/en-us/library/ff701711.aspx, that returns latitude and longitude coordinates for a location that is specified as query string. For example:

http://dev.virtualearth.net/REST/v1/Locations?q=Abbotsford,%20Canada&key=<BingMapsKey>

Since you’re new to Bing Maps Services you can check Bing Maps API Best Practices: https://msdn.microsoft.com/library/dn894107.aspx.
And following page will show how to create Bing Maps account and Bing Maps key if you don’t have one yet: https://msdn.microsoft.com/en-us/library/gg650598.aspx.


这篇关于获得城市区域或社区的最佳方式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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