Community of MapPoint and Virtual Earth Users and Developers
This is a discussion on How to programatically tell if an address is located? within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I have a Microsoft Access program that moves through a pushpin dataset to determine the matching method of each pushpin ...
| |||||||
| Today's Posts | Twitter Feed | Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| How to programatically tell if an address is located? Is there a way to tell if a match was made by the numerical street address and not just by the name of the street. We want to give customers directions to businesses but we can't if we can not rely on the pushpins being mapped to an actual street address. Any assistance you can provide would be greatly appreciated. Thanks. Jim Harbaugh T.E.A.M. Troy, MI |
| |||
|
Hi, I'm not sure if I understean the question very well, but: Quote:
Quote:
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
|
I didn't think I had described my problem very well either so I'll try again: I have a map that is linked to an Access database. In the Access database are a list of businesses that we work with. For most of the businesses, a pushpin is placed at the exact location of the business. However, I have found at least two businesses that have different addresses (they are approximately 1/2 mile apart; neither are located where MapPoint placed the pushpins) but MapPoint has their corresponding pushpins overlaying each other. Upon closer examination, I found that the section of road that both businesses are located at does not have numerical addresses assigned to it by MapPoint. It appears that since MapPoint didn't know the numerical addresses, it placed the pushpins in the center of the unaddressed section of the road. My question is this: I want to be able to write VBA code to read through the link dataset and based on the matching method used to place the pushpin, print a report of pushpins that are not in the correct location. However, the MatchingMethod property is 7 (geoByStreetAddress) for both correctly matched records and for records where the address couldn't be correctly located. Is there a different property I should be using to determine if the pushpin for the record was placed in the correct location or if MapPoint just placed the pushpin in the center of the unaddressed section of the road? If there isn't a property that will provide me with the information I want, is there another method that will tell me which pushpins were not mapped based on the numerical address? I hope this clears up my question. Thanks for any assistance that anyone can provide. Jim Harbaugh |
| |||
|
Hi, I'm still not sure I understeand fully but I like it to take step by step. If I sound silly please dont border me, Englisch is not my mothers tongue Quote:
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| ||||
|
I think I understand and I'm having a similar problem - or I think I am. I have a client test dataset with 1000+ pushpins. I think these have been imported and a handful haven't been matched. Perhaps MapPoint couldn't find the addresses. When I try to measure a distance to them (eg. via Gilles' location finding code) I get an assertion. This is because the pushpin in question doesn't have a valid location. (cf. MapPoint help). So is there a way that I can detect if a pushpin has been matched without a dummy call to DistanceTo (or Gilles location code) and trapping an assertion. Trapping an assertion is very ugly and slow - but might be the best way. The help says there's a geoByNone value for the MatchingMethod properties. Jim, you're saying this isn't being set!? Typical, isn't it? Richard
__________________ Winwaed Software Technology LLC http://www.winwaed.com See http://www.mapping-tools.com for MapPoint Tools See the Geoweb Guru for online mapping |
| ||||
|
For my own specific problem I have found the Recordset.IsMatched flag that looks to be working (I have a test running in the background). I don't think this will work for two pushpins located at the same place, though. Has the user 'helped' with the locating? You know when MapPoint can't find an exact address, but does find some possibles and asks the user? Richard
__________________ Winwaed Software Technology LLC http://www.winwaed.com See http://www.mapping-tools.com for MapPoint Tools See the Geoweb Guru for online mapping |
![]() |
| Tags |
| address, located, programatically |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How can I get the territory code that a pushipin is located | paf33 | MapPoint 2006/2009 Discussion | 7 | 06-08-2006 04:45 AM |
| Which Territory is a Pushpin located? | johnweidauer | MapPoint 2006/2009 Discussion | 1 | 07-31-2005 10:46 AM |
| Exporting "located" data points to excel | Jonboy | MapPoint 2006/2009 Discussion | 2 | 04-06-2005 08:25 AM |
| MapPoint to Gif Programatically | Anonymous | MapPoint 2006/2009 Discussion | 5 | 03-17-2004 08:32 AM |
| With MP2K does anyone know how to programatically .... | Anonymous | MapPoint 2006/2009 Discussion | 1 | 07-29-2002 06:19 AM |
Corfu Holiday
Why not enjoy the option of a Corfu holiday through UlookUbook? Check out the online offers...