Community of VE/MapPoint Users and Developers
This is a discussion on Need C# example - address to lat/long within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Does anyone have any C# code snippet that will show me how to convert an address in MapPoint to latitude ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Need C# example - address to lat/long Is this activity even possible? Thanks in advance to all of you smart people... |
| |||
| Re: Need C# example - address to lat/long
Hi, Voila: Code: FindResults results = MP.ActiveMap.FindAddressResults(street, city, othercity, region, zip, country);
if (results.ResultsQuality <= GeoFindResultsQuality.geoAmbiguousResults)
foreach (object o in results) {
Location loc = o as Location;
if (loc != null) {
Console.WriteLine(loc.Latitude + " " + loc.Longitude);
break;
}
}
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
| Re: Need C# example - address to lat/long
Hi, No sorry this property not available in 2004, but no probleem, try a search on CalcPos on this site from Gilles Kohl. I also have posted it in C#.
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
![]() |
| Tags |
| address, lat or long |
| ||||
| Posted By | For | Type | Date | |
| MapPoint Download - MP2K Magazine | This thread | Refback | 04-06-2007 09:42 AM | |
| MapPoint Articles - MP2K Magazine | This thread | Refback | 04-03-2007 02:17 AM | |
| Microsoft MapPoint 2006 - MP2K Magazine | This thread | Refback | 03-31-2007 09:37 PM | |
| Working With Excel and MapPoint - MP2K Magazine | This thread | Refback | 03-29-2007 06:21 AM | |
| The Magazine for MapPoint - MP2K Magazine | This thread | Refback | 03-28-2007 09:21 AM | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Adding pushpins by lat/long or address using MPC in MSAccess | GM | MapPoint 2006/2009 Discussion | 0 | 11-01-2004 01:00 PM |
| Get address of lat/long | Anonymous | MapPoint 2006/2009 Discussion | 1 | 05-13-2004 11:54 AM |
| Getting the lat/long from an address | Anonymous | MapPoint 2006/2009 Discussion | 1 | 03-25-2004 08:22 PM |
| Lat. and Long. | Anonymous | MapPoint 2006/2009 Discussion | 1 | 02-06-2004 03:09 AM |
| get lat./long. | Anonymous | MapPoint 2006/2009 Discussion | 1 | 11-19-2002 06:56 AM |