This document is archived and information here might be outdated. Recommended version. |
Provides access to a container for driving directions.
Name | Description | |
---|---|---|
Directions | The route directions by index. | |
DirectionsCount | The number of routes for the generated directions. | |
SaveAsXML | Saves the directions to a file in XML format. |
Classes | Description |
---|
The INAStreetDirectionsContainer interface provides access to the directions contents and a method to save the contents in a file in XML format.
For example:
INAStreetDirectionsAgent streetAgent = naContext.Agents.get_ItemByName("StreetDirectionsAgent") as INAStreetDirectionsAgent;
INAStreetDirectionsContainer directionsContainer = streetAgent.DirectionsContainer;
directionsContainer.SaveAsXML(@"c:\mydirections.xml");
For example:
Dim streetAgent As INAStreetDirectionsAgent = naContext.Agents.ItemByName("StreetDirectionsAgent")
Dim directionsContainer As INAStreetDirectionsContainer = streetAgent.DirectionsContainer
directionsContainer.SaveAsXML("c:\mydirections.xml")