This document is archived and information here might be outdated.  Recommended version.


INACompactStreetDirectionsAgent Interface (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > NetworkAnalyst > ESRI.ArcGIS.NetworkAnalyst > Interfaces > IN > INACompactStreetDirectionsAgent Interface
ArcGIS Developer Help

INACompactStreetDirectionsAgent Interface

Provides access to the compact directions agent.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server. Requires Network Analyst Extension.

Members

Name Description
Read-only property DirectionsContainer The container for the directions.
Method Execute Constructs the directions.
Read/write property Language Language to use when generating directions.
Read/write property LengthUnits The length units.
Read/write property TimeAttributeName The network attribute for time calculation.

Classes that implement INACompactStreetDirectionsAgent

Classes Description
NACompactStreetDirectionsAgent Generates compact driving directions for network analysis results.

Remarks

The INACompactStreetDirectionsAgent interface allows you to specify the properties for generating directions.

It generates directions that contain less information and compressed geometries representing the traversed streets.  Due to their smaller size, these directions are better suited for passing across low bandwidth connections in server applications.  To return these directions using NAServer, rather than using this interface directly, set the property INAServerRouteParams2::ReturnCompactDirections or INAServerClosestFacilityParams2::ReturnCompactDirections to true.

You get the NACompactStreetDirectionsAgent from the NAContext's list of agents using the name "CompactStreetDirectionsAgent".  For example:

Set pStreetAgent = NAContext.Agents.ItemByName("CompactStreetDirectionsAgent")