MapPoint Forums

MapForums

Community of MapPoint and Virtual Earth Users and Developers




Validate Address String

This is a discussion on Validate Address String within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Using Mappoint 2002 and VB 6.0 I have created a simple program to provide drivers with a route when they ...


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

Today's Posts Twitter Feed 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 11-06-2002
Junior Member
White Belt
 
Join Date: Nov 2002
Posts: 1
Validate Address String

Using Mappoint 2002 and VB 6.0 I have created a simple program to provide drivers with a route when they select a customer from an Access database. Everything works great as long as the address info is valid. How can I validate the address information in Mappoint and let Mappoint decide if it can route using the address info. :!:
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 11-07-2002
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
you have to validate address before sending it.


you can use FindAddressResults method of map object of Mp2k2

object.FindAddressResults([Street], [City], [OtherCity], [Region], [PostalCode], [Country])

the function will return results. Then you will control if the address exists is. if not exists. then you must say to user to correct the address. MAybe you can give correct address. OR you can return to user the postal code that is missed. Just think abut it.

Hope it helps.

example pasted from microsoft reference:

Sub FindAddressSearch()
Dim objApp As New MapPoint.Application
Dim objFindResults As MapPoint.FindResults

'Set up application
objApp.Visible = True
objApp.UserControl = True

'Output first result of find search
Set objFindResults = objApp.ActiveMap.FindAddressResults("One Microsoft Way", "Redmond", , "WA", , geoCountryUnitedStates)
MsgBox "The first item in the find list is: " _
+ objFindResults.Item(1).Name

End Sub
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, string, validate


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
Remember to validate your geo-locations... Winwaed MapPoint 2006/2009 Discussion 3 01-13-2006 12:41 PM
MappointControl OpenMap filename string length limitation malejo MapPoint 2006/2009 Discussion 1 07-02-2005 02:55 AM
Drawing contour lines from nodes in a string file Anonymous MapPoint 2006/2009 Discussion 1 10-29-2003 09:30 AM
Getting Lat/Lon from a given address Anonymous MapPoint 2006/2009 Discussion 5 09-12-2003 03:01 PM
Create UDL from a connect string with code kdybvik MapPoint 2006/2009 Discussion 1 08-23-2002 12:31 PM


All times are GMT -5. The time now is 07:26 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0 RC2
MP2K Magazine
Visitor Map

Sharm El Sheikh Holiday
Enjoy the hot sun and fantastic beaches on your Sharm El Sheikh holiday! Check out the UlookUbook online offers...



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 53 54 55 56 57 58 59