Community of MapPoint and Bing Maps Users and Developers
This is a discussion on Reverse geocoding with c# within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hi Im using a algorithm I found on one of the Mp2k articles with regrds to reverse geocoding, however this ...
| |||||||
| Today's Posts | Twitter Feed | Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Reverse geocoding with c# |
| |||
| reverse geocoding
Hi, I have been trying to find an address from gps coordinates for ages with no success, Do you have some code for doing reverse geocoding in mappoint that can do this ? if so can you possibly mail me with it ? Thanks in advance Warm Regards #Mark Wilding |
| |||
| Re: reverse geocoding
Hi Mark, Quote:
Code: double lat = 51.24987;
double lon = 4.48855;
Map map = MP.ActiveMap;
Location loc = map.GetLocation(lat, lon, 1);
loc.GoTo();
FindResults streetResults = map.ObjectsFromPoint(map.LocationToX(Loc), map.LocationToY(Loc));
foreach (object o in streetResults) {
Location streetLoc = o as Location;
if(streetLoc != null && streetLoc.StreetAddress != null)
Console.WriteLine("value " + streetLoc.StreetAddress.Value);
}
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz www.comfortsoftware.be MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
| Re: Reverse geocoding with c#
Hi, Quote:
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz www.comfortsoftware.be MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
![]() |
| Tags |
| geocoding, reverse |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Reverse Geocoding | Anonymous | News and Announcements | 30 | 07-26-2006 11:21 AM |
| Reverse GeoCoding | Anonymous | MapPoint Desktop Discussion | 1 | 04-16-2004 10:56 AM |
| reverse geocoding | Anonymous | MapPoint Desktop Discussion | 1 | 01-26-2004 10:15 PM |
| Reverse Geocoding | Anonymous | MapPoint Desktop Discussion | 1 | 01-26-2004 12:30 PM |
| Reverse geocoding | Anonymous | Products: Pushpin Tool, Single State Mapper | 0 | 01-26-2004 11:23 AM |