MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




ResultsQuality

This is a discussion on ResultsQuality within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I am a programmer wannabe who does not have a good grasp of code basics, so please bear with me. ...


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 05-18-2006
Junior Member
White Belt
 
Join Date: Aug 2005
Posts: 2
ResultsQuality

I am a programmer wannabe who does not have a good grasp of code basics, so please bear with me.

From Excel, I am placing pins on the map with a balloon. Each Excel record may or may not include coordinates. Where coordinates are available, I use them, where they are not I use the address.

Here is relevant parts of the code that I have compiled that locates the address:

Dim oApp As MapPoint.Application

<snip>

'Start MapPoint
Set oApp = CreateObject("MapPoint.Application.NA.11")
oApp.Visible = True
Set objMap = oApp.NewMap
Dim oMap As MapPoint.Map
Dim oLoc As MapPoint.Location
Set oMap = GetObject(, "MapPoint.Application").ActiveMap
oMap.Application.Units = geoMiles
oApp.WindowState = geoWindowStateMaximize
oApp.PaneState = geoPaneNone

'Set location type
If IsEmpty(ActiveCell.Range("P1")) = False Then GoTo FindCoordinates Else GoTo FindAddress

<snip>

FindAddress:
On Error GoTo BadData
Set oLoc = oMap.FindAddressResults( _
ActiveCell.Range("H1"), _
ActiveCell.Range("I1"), , _
ActiveCell.Range("J1"), _
ActiveCell.Range("K1"))(1)
oLoc.Goto
Set oPin = oMap.AddPushpin(oLoc, ActiveCell.Range("B1"))
oPin.Highlight = True
oPin.Symbol = 25
oPin.BalloonState = geoDisplayBalloon
oApp.ActiveMap.Saved = True
GoTo LastLine

My code works great, but I want to be able to tell the user the user how good the address match was.

With the current Dim oLoc As MapPoint.Location, I get an error message if I try to use oLoc.ResultsQuality

If I use Dim oLoc as MapPoint.FindResults, then I get a type mismatch for the Set oLoc = oMap.FindAddressResults

What Dim statement do I need to use? Or what other way is there to accomplish my goal?

Thanks

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


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


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


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

Ski Holidays Austria
Ski holidays in Austria offer ski schools for all types of skiers. They range from beginner classes of all ages to more advanced classes. Learn new techniques and refresh skills.

Italy Holidays
Find great Italy Holidays with Travel Counsellors. A personal Travel Counsellor can help you plan the perfect holiday to Italy.

Holiday to Thailand
Want to go somewhere new? Book a low cost holiday to Thailand at dealchecker.co.uk. See the stunning national parks and uninhabited islands.

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

Balearics
Before booking to the Balearics Islands make sure you check out our travel guide online. The Balearics are renowned for their vibrant nightlife but there are also some stunning Gothic cathedrals, Stone Age ruins and fishing villages.

Cheap family holidays
To plan cheap family holidays, use Travel.co.uk to explore all the delightful possibilities that there are.

Holidays to Lanzarote
Not been to the Canary Islands yet? What are you waiting for! Get information on holidays to Lanzarote 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