Community of VE/MapPoint Users and Developers
This is a discussion on Mappoint, postcode to longitude and latitude within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi, I have been using mappoint to manage my delivery vans for quite a while. However, I want to have ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Mappoint, postcode to longitude and latitude I have been using mappoint to manage my delivery vans for quite a while. However, I want to have a process before using mappoint which can tell whether the customer is in the delivery area or not. I want to do this on the web using longitude and latitude. I know my depot postition and so just need the customers position. I am based in the UK and the UK postcode data is very hard to come by. Can mapoint export the longitude and latitude for postcodes? Or can someone tell me where to find this information? Thanks, James. p.s. I don't have a large amount to spend on databases at the moment to a cheap option would be appreciated. |
| |||
|
Hi, Yes, you can use FindAddressResults(street, city, othercity, region, zip, country); forit. It returns Location object. Some (and many) of the arguments may be empty.
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
|
Hi, It seems FindAddressResults(street, city, othercity, region, zip, country) just matches the address it doesn't give the coordinates. There is a Location Sensor tool in Mappoint. Is there a way of obtaining the location sensor information? James |
| |||
|
Hi, Dont know about using the location sensor, but you can easy calc lat/lon from out of Location objects. This is an article for it with code: http://www.mp2kmag.com/articles.asp?...xtract.lat.lon. Also there is somewhere a conversion to C# on this forum. Basicly you have to do something like this: Code: Results = MP.ActiveMap.FindAddressResults(street, city, othercity, region, zip, country);
foreach (object o in Results) {
Location Loc = o as Location;
if (Loc != null) {
double Lat;
double Lon;
pos.CalcPos(Loc, out Lat, out Lon);
Console.WriteLine(Loc.Name + " " + Lat.ToString() + " " + Lon.ToString());
}
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
![]() |
| Tags |
| latitude, longitude, mappoint, postcode |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to get latitude and longitude | ma2005pp | MapPoint 2006/2009 Discussion | 3 | 09-28-2005 02:57 AM |
| Latitude and Longitude | virgilar | MapPoint 2006/2009 Discussion | 1 | 03-21-2005 02:01 PM |
| GPS Longitude and Latitude does not agree with MapPoint | westbrooks | MapPoint 2006/2009 Discussion | 1 | 02-29-2004 06:20 PM |
| Can Mappoint 3.0 SDK return Latitude Longitude coordinates? | Anonymous | MapPoint 2006/2009 Discussion | 1 | 01-27-2004 06:56 PM |
| NMEA latitude/longitude and mappoint latitude/longitude | muurman | MapPoint 2006/2009 Discussion | 3 | 11-22-2003 05:42 AM |