microsoft / BingMapsRESTToolkit

This is a portable class library which makes it easy to access the Bing Maps REST services from .NET.

Home Page:https://github.com/Microsoft/BingMapsRESTToolkit/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SnappedPoints member of response.ResourceSets[0].Resources[0] inaccessible??

Reddgum opened this issue · comments

Following the code example on the front page here only results in a null value being assigned to the Location object.

Further, when debugging the Response object, I get 69 returned snapped points that show up in the variable watch window, but there is no way to access the SnappedPoints[] array from code. Only shows up in debug and for some reason, the BoundryBox and Type members are accessible, just not the SnappedPoints.

So the solution is to cast the Response to the desired type. Workable, but strangely not intuitive from the given example, and bizarrely handled by Visual Studio debugging which is clever enough to show the SnappedPoints array, but not quite enough to give the dev a hint of what's needed to get access.