I'm just starting with VB.Net and MapPoint 2004. The code on MSDN doesn't seem to work for me though! I suspect it's differences between VB6/VB.Net and also MapPoint2002/2004.
I'm trying to give a location in Lat/Lon, and return a list of attributes at that location. I can get a map, and place pushpins ok, but the next part is causing an error. The code I have so far (to find 1 location) is:
The error is: 'The requested member of the collection does not exist. Use a valid name or index number.'Code:'Get a location on the map oloc = omap.FindResults("51.577141, 0.291178").Item(1) 'Find nearby places 0.5 miles from that location MsgBox("Closest place: " + oloc.FindNearby(0.5).Item(1).Name)
The above code came straight off MSDN. Can anyone help with this problem, or expand the code to produce a full list of attributes at that location?