MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Location. StreetAddress is nothing

This is a discussion on Location. StreetAddress is nothing within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I am having trouble getting the StreetAddress from a waypoint.location. I am using the MapPoint control on a windows form ...


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 10-19-2004
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Location. StreetAddress is nothing

I am having trouble getting the StreetAddress from a waypoint.location.
I am using the MapPoint control on a windows form in VB.Net

In the debugger, I put a watch on objWayPoint and it is fine and so is objWayPoint.Location, but objWayPoint.Location.StreetAddress is nothing.

I created the waypoint with
objFindResults = objMap.FindAddressResults(sStreetAddress, sCity, , sState, , GeoCountry.geoCountryUnitedStates)
objLocation = objFindResults.Item(1)
objWayPoint = mpcMap.ActiveMap.ActiveRoute.Waypoints.Add(objLoca tion, sName)


Here is where I am trying to get the streetAddress
Dim objMap As MapPoint.Map
Dim objWayPoints As MapPoint.Waypoints
Dim objWayPoint As MapPoint.Waypoint
objMap = mpcMap.ActiveMap
objWayPoints = objMap.ActiveRoute.Waypoints()
objWayPoint = objWayPoints(1)
If objWayPoint.Location.StreetAddress Is Nothing Then
Debug.WriteLine("Waypoint.Location.StreetAddress is nothing")
Else
Debug.WriteLine(objWayPoint.Location.StreetAddress .City)
End If

Thanks
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
location, streetaddress


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
Remote procedure call failed: Location. StreetAddress Vinay MapPoint 2006/2009 Discussion 3 02-16-2006 02:34 PM
oLoc.StreetAddress.Country Anonymous MapPoint 2006/2009 Discussion 0 02-11-2003 10:22 AM


All times are GMT -5. The time now is 11:09 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


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