Waypoint Constructor (LatLon) | |
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Creates a Waypoint at the given location.
Namespace:
Telogis.GeoBase
Assembly:
geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax public Waypoint(
LatLon loc
)
Public Sub New (
loc As LatLon
)
Parameters
- loc
- Type: Telogis.GeoBaseLatLon
The LatLon at which to place the waypoint.
Remarks
A Waypoint is used to influence how a Route is calculated: it is used in a similar
fashion to a RouteStop, but unlike RouteStops, Waypoints will not appear in Directions.
In other words, if a Route comprises RouteStops and Waypoints, although the route will
pass through both RouteStops and Waypoints, only the RouteStops will be disclosed in
the Directions.
When added to a MapCtrl, Waypoints are rendered as circles (as opposed to squares for RouteStops),
and will snap to the nearest street.
Waypoints can not be used with a RouteMatrix, Route Highlighting, or OptimizeStops.
Examples
The code snippet below creates a Waypoint at the given LatLon, and then displays it on the MapCtrl
object by adding it to the renderer list.
Waypoint wp = new Waypoint(new LatLon(37.71971, -122.08319));
RendererList rl = new RendererList();
rl.Add(wp);
mapCtrl.Renderer = rl;
See Also