Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Results 1 to 4 of 4

Mappoint, postcode to longitude and latitude

This is a discussion on Mappoint, postcode to longitude and latitude within the MapPoint Desktop 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 ...

  1. #1
    jimbob is offline 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.

  2. #2
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433
    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.

  3. #3
    +username is offline 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

  4. #4
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433
    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());
                    }

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How to get latitude and longitude
    By ma2005pp in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 09-28-2005, 02:57 AM
  2. Latitude and Longitude
    By virgilar in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 03-21-2005, 02:01 PM
  3. GPS Longitude and Latitude does not agree with MapPoint
    By westbrooks in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 02-29-2004, 06:20 PM
  4. Can Mappoint 3.0 SDK return Latitude Longitude coordinates?
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 01-27-2004, 06:56 PM
  5. NMEA latitude/longitude and mappoint latitude/longitude
    By muurman in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 11-22-2003, 05:42 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


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