|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface INAStreetDirectionsContainer
Provides access to a container for driving directions.
The INAStreetDirectionsContainer interface provides access to the directions contents and a method to save the contents in a file in XML format.
Method Summary | |
---|---|
INAStreetDirections |
getDirections(int index)
The route directions by index. |
int |
getDirectionsCount()
The number of routes for the generated directions. |
void |
saveAsXML(String filename)
Saves the directions to a file in XML format. |
Method Detail |
---|
int getDirectionsCount() throws IOException, AutomationException
DirectionsCount returns the number of NAStreetDirections objects that were generated based on the number of routes passed in to INAStreetDirectionsAgent::Execute.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.INAStreetDirections getDirections(int index) throws IOException, AutomationException
index
- The index (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void saveAsXML(String filename) throws IOException, AutomationException
SaveAsXML saves all of the directions into an XML file.
The output XML file containing directions can be converted into a properly formatted HTML file using the style sheets available in the ArcGIS installation folder. For example, the directions output in XML format can be converted into an HTML file or a Text file using the style sheet Dir2WebDocument.xsl or Dir2PlainText.xsl respectively (usually found at C:\Program Files\ArcGIS\NetworkAnalyst\Directions\Styles).
filename
- The filename (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 |