|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface INACompactStreetDirectionsAgent
Provides access to the compact directions agent.
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")
Method Summary | |
---|---|
void |
execute(ISet set,
ITrackCancel trackCancel)
Constructs the directions. |
INACompactStreetDirectionsContainer |
getDirectionsContainer()
The container for the directions. |
String |
getLanguage()
Language to use when generating directions. |
int |
getLengthUnits()
The length units. |
String |
getTimeAttributeName()
The network attribute for time calculation. |
void |
setLanguage(String strLanguage)
Language to use when generating directions. |
void |
setLengthUnits(int units)
The length units. |
void |
setTimeAttributeName(String name)
The network attribute for time calculation. |
Method Detail |
---|
int getLengthUnits() throws IOException, AutomationException
LengthUnits specifies the length units of the directions in esriNetworkAttributeUnits. The currently supported length units for this property are esriNAUMiles, esriNAUKilometers, esriNAUMeters, esriNAUYards, and esriNAUFeet.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setLengthUnits(int units) throws IOException, AutomationException
LengthUnits specifies the length units of the directions in esriNetworkAttributeUnits. The currently supported length units for this property are esriNAUMiles, esriNAUKilometers, esriNAUMeters, esriNAUYards, and esriNAUFeet.
units
- A com.esri.arcgis.geodatabase.esriNetworkAttributeUnits constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getTimeAttributeName() throws IOException, AutomationException
TimeAttributeName specifies the name of the time cost attribute used by directions.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setTimeAttributeName(String name) throws IOException, AutomationException
TimeAttributeName specifies the name of the time cost attribute used by directions.
name
- The name (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getLanguage() throws IOException, AutomationException
Specifies the Language you want to see the directions in.
This requires that you know which languages are supported by your directions configuration files.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setLanguage(String strLanguage) throws IOException, AutomationException
Specifies the Language you want to see the directions in.
This requires that you know which languages are supported by your directions configuration files.
strLanguage
- The strLanguage (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.INACompactStreetDirectionsContainer getDirectionsContainer() throws IOException, AutomationException
DirectionsContainer provides access to the directions contents.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void execute(ISet set, ITrackCancel trackCancel) throws IOException, AutomationException
Execute is a method to compute the driving directions. This method takes a set containing the route features that you want to generate directions for. If null is passed in, it will generate directions for all routes. If you want to generate directions for a subset of the routes, create a new set object and add route features from the corresponding Routes or CFRoutes network analysis class.
set
- A reference to a com.esri.arcgis.system.ISet (in)trackCancel
- A reference to a com.esri.arcgis.system.ITrackCancel (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |