View Full Version : "FindNearby" in MapPoint 2010 Object
thowle
01-11-2011, 10:29 PM
... it was in 2006, is it not in 2010??
How do I find POI near current location (based on GPS)...
FindNearby method (http://msdn.microsoft.com/en-us/library/aa562369.aspx)
But I will be damned if I can find that method in the 2010 object.
Mattys Consulting
01-12-2011, 09:15 PM
thowle, yes it is in 2010.
There doesn't appear to be any Microsoft website pages for it, but it works the same as what you're used to.
thowle
01-12-2011, 09:57 PM
Found it,
It's under the location object of the active map.
So... ActiveMap.Location.FindNearby(integer).
Returns results as Locations, where name is result(Location).Name, and .StreetAddress.
Wilfried
01-18-2011, 02:47 AM
Hi,
ActiveMap.Location gives you the location of the center of the map currently visible. If you need it from a given GPS position you first have to calculate the Location of that point. Something like this:
Location loc = MP.ActiveMap.GetLocation(lat, lon, alt);
loc.FindNearby(radius);
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.
Search Engine Friendly URLs by
vBSEO 3.6.1