MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




How to programatically tell if an address is located?

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


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

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-27-2004
Junior Member
White Belt
 
Join Date: Apr 2004
Posts: 4
How to programatically tell if an address is located?

I have a Microsoft Access program that moves through a pushpin dataset to determine the matching method of each pushpin and print out a report of those pushpins that could not be matched to a specific street address. I believed that checking the MatchingMethod property would let me know if an exact street address match had been made by MapPoint. However, I have found two pushpins located in the same place on my map but in reality, the businesses are about 1/2 mile apart. Both pushpin dataset records show that the MatchingMethod was geoByStreetAddress but MapPoint 2004 does not apparently have the addresses in its database so it picked a location along the street and mapped both addresses at that point.

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
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 12-28-2004
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,105
Hi,

I'm not sure if I understean the question very well, but:

Quote:
two pushpins located in the same place on my map but in reality, the businesses are about 1/2 mile apar
How many decimals do you have ? If not enough you can easy get a resolution of 1/2 mile. 1 minute is exact 1 sea mile on latitude and on longitude on equator.

Quote:
numerical street address and not just by the name of the street
If the street contains no number (which is sometimes), then the only method to check this (as far as I know), is to parse the returned streetaddress and check if there is a number in it.
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 12-28-2004
Junior Member
White Belt
 
Join Date: Apr 2004
Posts: 4
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
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 12-28-2004
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,105
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:
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.
So you make pushpins at different location, and Mappoint display them at same place ?
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-06-2005
Winwaed's Avatar
Mapping-Tools.com
Red Belt
 
Join Date: Feb 2004
Posts: 850
Blog Entries: 7
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
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
  #6 (permalink)  
Old 01-06-2005
Winwaed's Avatar
Mapping-Tools.com
Red Belt
 
Join Date: Feb 2004
Posts: 850
Blog Entries: 7
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
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

Tags
address, located, programatically


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


All times are GMT -5. The time now is 09:22 AM.


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

Heathrow Flights
Find information for Heathrow flights online at Holiday Hypermarket. We have information about a range of airports. No holiday detail is too small to overlook!

Portugal Weather
Check out Portugal Weather - Travel Counsellors details information on Portugal including, weather, flights and accommodation.

Holidays Cuba
When you book holidays in Cuba you will find a fascinating country with a heady combination of Spanish, African and Caribbean influences. Check our great deals.

Holidays to Cuba
For the best offers on holidays to Cuba, visit The Holiday Place today. Find a deal to suit you and your budget online!

Canaries
Find out all about the Canaries when you check out the ulookubook.com travel guides. Not only can you get a great holiday deal but you can find out useful information about potential holiday destinations.

Cheap Travel
Travel.co.uk is a travel comparison service which makes it easy to search and find your cheap travel options.

Cheap Holidays in Fuerteventura
Save your money! Live like royalty! Visit the Canary Islands! Get info on cheap holidays in Fuerteventura, only 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 52