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

Find full post code

This is a discussion on Find full post code within the MapPoint Desktop Discussion forums, part of the Map Forums category; Im using Mappoint Europe and some reverse geocoding to return a collection of UK StreetAddress values based on Lat and ...

  1. #1
    Dazzer is offline Senior Member Green Belt
    Join Date
    Sep 2003
    Posts
    103

    Find full post code

    Im using Mappoint Europe and some reverse geocoding to return a collection of UK StreetAddress values based on Lat and Long coordinates however it returns the full address but only the postcode sector I would like it to return the full postcode.

    I'm sure this value must be retrivable because you can search in Mappoint for the full postcode.

    Has anyone any ideas

  2. #2
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137

    mapoint

    i want all usa zip code

  3. #3
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433
    Hi,

    I assume you want the full address?

    I assume you use ObjectsFromPoint to get a collection of Location. You do step trought all the objects in the return valud? also be aware that not all objects in this collection are Location objects. If you not consider all this points you will loose addresses.

    If I do something like this it returns full address:

    Code:
                Location Loc = MP.ActiveMap.GetLocation(Lat, Lon, Alt);
                Loc.GoTo();
    
                FindResults StreetResults = M.ObjectsFromPoint(M.LocationToX(Loc), M.LocationToY(Loc));
    
                foreach (object o in StreetResults) {
                    Location StreetLoc = o as Location;
    
                    if(StreetLoc != null && StreetLoc.StreetAddress != null) {
                        Console.WriteLine("value    " + StreetLoc.StreetAddress.Value);
                        Console.WriteLine("street   " + StreetLoc.StreetAddress.Street);
                        Console.WriteLine("postcode " + StreetLoc.StreetAddress.PostalCode);
                        Console.WriteLine("city     " + StreetLoc.StreetAddress.City);
                        Console.WriteLine("---");
                        Found = true;
                    }
                }

  4. #4
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433

    Re: mapoint

    Hi,

    Quote Originally Posted by antony
    i want all usa zip code
    See my other reply. Very simple, just step (scan line by line) trough usa with all lat/lon coordiantes, and increment eg 5 meter. Every next line you take also 5 meter lat diff. Then filter out duplicates.

    You have in your case to check for Zip instead of for StreetAddress !

    On the other hand maybe it already exists and someone wants to share it ? This because I see this kind of question regulary.

  5. #5
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137
    StreetAddress doesn't seem to return the full postcode as was requested in the original post, it only appears to return, as the original poster said, the postcode sector eg. TN38 9

  6. #6
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433
    Hi,

    I dont know what you mean by 'postcode sector'. Can you please clarify?

  7. #7
    Winwaed's Avatar
    Winwaed is offline Mapping-Tools.com Black Belt
    Join Date
    Feb 2004
    Location
    Irving,Texas
    Posts
    1,859
    Blog Entries
    60
    Wilfried,

    UK postcodes are split into a hierarchical system. Sector, area, etc. I'm always forgetting which is which

    Eg. "CB3 0DS".
    "CB" means it is the Cambridge area (that alone makes it more natural for humans than the US zipcode system). The CB area is pretty large, and is split into smaller areas. I think central Cambridge is split into at least three.
    That is then split even further to "sector". Eg. "CB3 0??"
    The last two letters designate the final postcode in the sector. The Post Office claim an average of about 12 addresses per postcode, although many offices and larger locations have a dedicated postcode. Eg. CB3 0DS is Churchill College, Cambridge (and no other addresses).

    I can't really help the original poster - I've also noticed that MapPoint only really works with postcode sectors. Although it sometimes recognises full postcodes correctly, it appears to be for location finding only.


    Richard
    Winwaed Software Technology LLC
    http://www.winwaed.com
    See http://www.mapping-tools.com for MapPoint Tools

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Find fails with full install but not partial
    By Tony Kobine in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 08-19-2005, 04:50 AM
  2. BA post codes UK
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 01-30-2004, 01:12 PM
  3. MapPoint 2004-Create Territories Using Full Cdn Postal Code
    By wkcarreg in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 01-30-2004, 12:46 PM
  4. Post Code Update
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 4
    Last Post: 12-11-2003, 09:40 AM
  5. I have used the code supplied for the find postcod....
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 01-11-2002, 06:47 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 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 55 56 57 58 59 60 61 62 63 64 65 66