Hi All
Is it possible to get the address from -
loc.Waypoints.Item(1).Name
and place it into MapPoint.Location property
Thanks in advance for any advice
This is a discussion on address from waypoint within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hi All Is it possible to get the address from - loc.Waypoints.Item(1).Name and place it into MapPoint.Location property Thanks in ...
Hi All
Is it possible to get the address from -
loc.Waypoints.Item(1).Name
and place it into MapPoint.Location property
Thanks in advance for any advice
Not sure what you are trying to do but a Waypoints.Item has a location property
John
http://www.support-pc.com
Order MapPoint 2006 Here
https://secure.mp2kmag.com/?refer=support-PC
How did I miss that, thanks John
Still stuck here, probably missing somthing very simple but here goes.
Dim loc As MapPointCtl.Route
loc.Waypoints.Item(1).Name ' returns the waypoint name correctly
but how do I get/convert the full address from - loc.Waypoints.Item(1).Location etc
Thanks in advance for any advice.
What are you trying to do with the location object? What is the desired end result?
John
http://www.support-pc.com
Order MapPoint 2006 Here
https://secure.mp2kmag.com/?refer=support-PC
Hi John
I want to put the address of the waypoint, street, city etc in the address fields of a new job.
waypoint 1 being start of job
waypoint 2 being end of job
The location object has a streetaddress property IF the location represents an address. See the help file: Objects | Location Object | Streetaddress
There is an article that describes how to search for the nearest address from a point. You could use this if your waypoint does not have an address.Code:StreetAddress property Returns the StreetAddress object for the specified location. Returns "Nothing" if the location does not represent an address. Read-only. Applies to Objects: Location
Reverse Geocoding, Pt. III by Walt Cygan
http://www.mp2kmag.com/a50--reverse.....mappoint.html
John
http://www.support-pc.com
Order MapPoint 2006 Here
https://secure.mp2kmag.com/?refer=support-PC
Got it, many thanks
There are currently 1 users browsing this thread. (0 members and 1 guests)