Community of VE/MapPoint Users and Developers
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 ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Find full post code I'm sure this value must be retrivable because you can search in Mappoint for the full postcode. Has anyone any ideas |
| |||
|
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;
}
}
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
| Re: mapoint
Hi, Quote:
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.
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
|
Hi, I dont know what you mean by 'postcode sector'. Can you please clarify?
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| ||||
|
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 |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| 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 |
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.