none
How do I get sessionid to make reverse-geocoding calls in .NET? RRS feed

  • Question

  • Previously, I had an application that has a map, and I was able to call map.GetCredentials to get a sessionId that I could use to make a couple of location calls to get an address from lat/lon. But what if I want to do the same thing in a Windows service (C#) that does not have a map? Is there a way to get a sessionID so that I can pass it here...

    string locationsRequest =
                        String.Format("{0}://dev.virtualearth.net/REST/v1/Locations/{1},{2}?o=json&inclnb=1&key={3}",
                            urlPrefix, lat, lon, bingKey);

    Thanks.

    Wednesday, October 29, 2014 8:28 PM

Answers

  • session keys are for use with interactive maps only. If you are using the services without an interactive map then you can't create a session key and have to use a normal bing maps key.

    http://rbrundritt.wordpress.com

    • Proposed as answer by Ricky_Brundritt Thursday, October 30, 2014 2:12 PM
    • Marked as answer by markdev2 Thursday, October 30, 2014 2:13 PM
    Wednesday, October 29, 2014 8:35 PM