RouteGetConstraints Method (LatLon) |
Namespace: Telogis.GeoBase.Routing
... //Create the location and Route that we want to query LatLon myLoc = new LatLon(33.708480, -117.851811); Route myRoute = new Route(); //We need to find the first point on the StreetLink. This is achieved by //reverse geocoding 'myLoc', and then using its 'StreetLink.FirstPoint' property as the first argument to GetConstraints. GeoCodeFull gcf = GeoCoder.ReverseGeoCodeFull(myLoc); List<ConstraintLinks> constraints = myRoute.GetConstraints(gcf.StreetLink.FirstPoint); ...