MapPoint Forums

MapForums

Community of VE/MapPoint 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

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #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


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 08:05 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

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!

Flights to Turkey
Find cheap flights to Turkey on Travel Counsellors. A personal Travel Counsellor can help you plan flights and find accommodation in Turkey.

Holidays Thailand
Holidays in Thailand are hugely diverse with wonderful luxury resorts and beaches but also some lovely forested mountains with interesting hill tribes. See dealchecker.co.uk.

Holidays in Egypt
A holiday in Egypt will stimulate your mind, captivate your heart and spark your senses. Visit this exceptional country, book today!

Tunisia
Tunisia enjoys excellent weather, golden beaches and a beautiful blue sea. Moving away from the beach you will find a country that has a rich and varied past. Discover the secrets of history yourself by exploring all the ruins.

Package Holidays
With the help of Travel.co.uk you can find the package holidays of your dreams.

Lanzarote Holidays
Visit the easternmost island of the archipelago! Book Lanzarote holidays 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