MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Mappoint, postcode to longitude and latitude

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 ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-15-2005
Junior Member
White Belt
 
Join Date: Mar 2004
Posts: 2
Mappoint, postcode to longitude and latitude

Hi,

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 01-16-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,112
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 01-16-2005
Junior Member
White Belt
 
Join Date: Nov 2004
Posts: 2
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 01-16-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,112
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());
                }
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
latitude, longitude, mappoint, postcode


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -5. The time now is 10:24 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54