Community of VE/MapPoint Users and Developers
This is a discussion on ParseStreetAddress method within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Using the following code from MapPoint2002 Help in VB6 for ParseStreetAddress method. I try to parse "avenida talega,san clemente,CA,92673" and ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| ParseStreetAddress method Sub FindAddressFromString() Dim objApp As New MapPoint.Application Dim objMap As MapPoint.Map Dim strAddress As String Dim objSA As MapPoint.StreetAddress 'Set up the application Set objMap = objApp.ActiveMap objApp.Visible = True objApp.UserControl = True 'Set a string, then parse it strAddress = "1 Microsoft Way, Redmond, WA" Set objSA = objMap.ParseStreetAddress(strAddress) 'Now search on this address and return first result MsgBox "First found address: " + objMap.FindAddressResults(objSA.Street, _ objSA.City, , objSA.Region).Item(1).Name End Sub |
| |||
|
I had a similar problem. Set the results to a location object. Then test the object to find out if the function returned a valid location. Heres a bit code that determines if the full address I provided was found by MP. If not I use on the zipcode to create the Location object. Good Luck! Dim oLoc as MapPoint.Location Set oLoc = objMap.FindAddress(sAddr1, sCity, sState, sZip, geoCountryUnitedStates) If oLoc Is Nothing Then Set oLoc = objMap.FindAddress("", "", "", sZip, geoCountryUnitedStates) End If |
![]() |
| Tags |
| method, parsestreetaddress |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Calculate Method | Anonymous | MapPoint 2006/2009 Discussion | 1 | 05-11-2005 02:20 PM |
| Problem with ParseStreetAddress | pippo | MapPoint 2006/2009 Discussion | 3 | 04-29-2005 03:34 PM |
| DisplayDataMap method c# | fletch | MapPoint 2006/2009 Discussion | 1 | 04-08-2005 07:26 AM |
| UpdateLink method | Maverick | MapPoint 2006/2009 Discussion | 1 | 04-14-2003 02:21 AM |
| Map PrintOut method | blackmap | MapPoint 2006/2009 Discussion | 1 | 01-10-2003 03:04 PM |