MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Find full post code

This is a discussion on Find full post code within the MapPoint 2006/2009 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 ...


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

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-21-2004
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
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-11-2005
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
mapoint

i want all usa zip code
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-12-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,047
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;
                }
            }
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-12-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,047
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5 (permalink)  
Old 01-13-2005
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6 (permalink)  
Old 01-13-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,047
Hi,

I dont know what you mean by 'postcode sector'. Can you please clarify?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7 (permalink)  
Old 01-13-2005
Winwaed's Avatar
Mapping-Tools.com
Red Belt
 
Join Date: Feb 2004
Posts: 769
Blog Entries: 4
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
Pre-Order MapPoint 2009 today: http://www.mapping-tools.com/mappoint2009
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


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
Find fails with full install but not partial Tony Kobine MapPoint 2006/2009 Discussion 0 08-19-2005 03:50 AM
BA post codes UK Anonymous MapPoint 2006/2009 Discussion 2 01-30-2004 12:12 PM
MapPoint 2004-Create Territories Using Full Cdn Postal Code wkcarreg MapPoint 2006/2009 Discussion 1 01-30-2004 11:46 AM
Post Code Update Anonymous MapPoint 2006/2009 Discussion 4 12-11-2003 08:40 AM
I have used the code supplied for the find postcod.... Anonymous MapPoint 2006/2009 Discussion 1 01-11-2002 05:47 AM


All times are GMT -5. The time now is 04:07 PM.


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

Flight Deals
Book a holiday bargain online. Check out the latest fantastic flight deals. Holiday Hypermarket works with the leading Tour Operators to find the best flight deals available.

Italy Weather
Check Italy Weather before you travel. We provide information on Italy including weather, flights and accommodation.

Holidays to Cuba
Situated between Jamaica and the Bahamas, Cuba has a delightful tropical climate and warm, clear waters with beaches of white sand. Check for cheap holidays to Cuba.

Holidays to Jamaica
Holidays to Jamaica are about taking things easy. Forget your watch and chill out beneath the clear Jamaican sky.

Greece
Greece covers a large area and as a result there is an abundance of things to do, see and taste. You can relax on a beach, visit ancient sites or make a trip to one of the islands like Corfu, Crete or Rhodes.

Inclusive Holidays
At Travel.co.uk travel comparison will help you plan the perfect inclusive holidays.

Cyprus Holidays
Fancy a Mediterranean holiday? Get information on Cyprus holidays at On The Beach.


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