Type property (Waypoint)
Returns the data type for the Waypoint object. Read-only GeoWaypointType.
GeoWaypointType |
Value |
Description |
---|---|---|
geoWaypointEnd |
3 |
End point |
geoWaypointStart |
1 |
Start point |
geoWaypointStop |
2 |
Intermediate stop |
Applies to
Objects: Waypoint
Syntax
object.Type
Parameters
Part |
Description |
---|---|
object |
Required. An expression that returns a Waypoint object. |
Remarks
- Changing the order of a waypoint by using the Reorder method on the Waypoint object can also change its Type property.
Example
Sub WaypointType()
Dim objApp As New MapPoint.Application
Dim objMap As MapPoint.Map
Dim objRoute As MapPoint.Route
'Set up the application
Set objMap = objApp.ActiveMap
Set objRoute = objMap.ActiveRoute
objApp.Visible = True
objApp.UserControl = True
'Add a waypoint to the map
objRoute.Waypoints.Add objMap.FindResults("Seattle, WA").Item(1)
'Find the type of the waypoint that was added
MsgBox "Waypoint type: " + CStr(objRoute.Waypoints.Item(1).Type)
End Sub
Note This sample code is specific for use in MapPoint North America; it is for illustration purposes only.