Search code examples
geolocationlocationbotframework

Reverse geocoding with botframework.location


In the database is stored place_id. This place_id has been stored in database when the user saves location.

Is it possible to make reverse geo coding using botframework.location ? Something like this. ?


Solution

  • You should be able to use Bing Maps REST Services and the BotFramework, to "geocode and reverse-geocode location data".

    Edit: You could start by going over: Geocoding a Location

    Here is how to Find a Location by Point: https://msdn.microsoft.com/en-us/library/ff701710.aspx

    It's as easy as retrieving a Bing Maps Key (either from within the Bing Maps Portal: 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 ), and using the key in this url: http://dev.virtualearth.net/REST/v1/Locations/47.64054,-122.12934?o=xml&key=[YourBingMapsKey]

    There's also this informative documentation about how to use the BotFramework's Location control: https://docs.botframework.com/en-us/bot-intelligence/location-control/