com.esri.arcgis.networkanalyst
Interface INAStreetDirectionsAgent2

All Superinterfaces:
INAStreetDirectionsAgent, Serializable
All Known Subinterfaces:
INAStreetDirectionsAgent3
All Known Implementing Classes:
NAStreetDirectionsAgent

public interface INAStreetDirectionsAgent2
extends INAStreetDirectionsAgent, Serializable

Provides access to the Directions Agent.

Remarks

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

Length units is a required field for directions.

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


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

Specifying the language to generate directions in, requires that you know which languages are supported by your directions configuration files.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.


Method Summary
 String getLanguage()
          Language to use when generating directions.
 void setLanguage(String strLanguage)
          Language to use when generating directions.
 
Methods inherited from interface com.esri.arcgis.networkanalyst.INAStreetDirectionsAgent
execute, getDirectionsContainer, getLengthUnits, getTimeAttributeName, isAutoShowDirections, isDisplayTime, setAutoShowDirections, setDisplayTime, setLengthUnits, setTimeAttributeName
 

Method Detail

getLanguage

String getLanguage()
                   throws IOException,
                          AutomationException
Language to use when generating directions.

Remarks

Specifies the Language you want to see the directions in.

This requires that you know which languages are supported by your directions configuration files.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Returns:
The strLanguage
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setLanguage

void setLanguage(String strLanguage)
                 throws IOException,
                        AutomationException
Language to use when generating directions.

Remarks

Specifies the Language you want to see the directions in.

This requires that you know which languages are supported by your directions configuration files.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Parameters:
strLanguage - The strLanguage (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.