使用 botframework.location 进行反向地理编码

Reverse geocoding with botframework.location

在数据库中存储place_id。这个place_id在用户保存位置的时候已经存在数据库中了。

是否可以使用 botframework.location ? Something like this 进行反向地理编码。 ?

您应该能够使用 Bing Maps REST Services 和 BotFramework,到 "geocode and reverse-geocode location data"。

编辑: 您可以先回顾一下:Geocoding a Location

按点查找位置的方法如下:https://msdn.microsoft.com/en-us/library/ff701710.aspx

这就像检索 Bing 地图密钥(从 Bing 地图门户:https://www.bingmapsportal.com/ or through the Azure Portal, by adding Bing Maps API via the Marketplace https://azuremarketplace.microsoft.com/en-us/marketplace/apps/bingmaps.mapapis 中)一样简单,并在此 url 中使用该密钥: http://dev.virtualearth.net/REST/v1/Locations/47.64054,-122.12934?o=xml&key=[YourBingMapsKey]

还有关于如何使用 BotFramework 的位置控件的信息文档:https://docs.botframework.com/en-us/bot-intelligence/location-control/