====== Map Suite Routing Miscellaneous Samples ======
==== Routing Index Generator ====
{{routing:codesamples:Map_Suite_Routing_Index_Generator.png?300x180}}
[[Source_Code_Routing_Index_Generator_CS_100325.zip|View Source]] {{filehistory:Routing_Index_Generator.zip|C# Download}}
[[Map Suite Samples Applies To|Applies To: Desktop \ Web \ Silverlight \ Services \ Wpf ]] \\ [[Map Suite Samples Alternate Languages | Need it in another language?]]
The Map Suite Routing Index Generator is a utility that will allow you to generate routing index files (".rtg" and ".rtx") from ESRI shapefiles and .sqlite databases. These routing index files will be used by the Map Suite Routing Extension in order to calculate routes and driving directions. This utility allows you to specify things that one-way road information, as well as configuring the road speed and type of routes you would like to calculate. It is easily extendable to allow you to add code to deal with other routing situations. This version of the RoutingIndexGenerator requires v9.0.515.0 or higher of both MapSuiteCore.dll and SQLiteExtension.dll.
----
==== Traveling Salesman Problem ====
{{routing:codesamples:Map Suite Routing Sample Traveling Salesman Problem.jpg?300x180}}
[[Source_Code_DesktopEditionSample_TravelingSalesmanProblem_CS_100325.zip|View Source]] {{filehistory:DesktopEditionSample_TravelingSalesmanProblem_CS_100325.zip|C# Download}}
[[Map Suite Samples Applies To|Applies To: Desktop \ Web \ Silverlight \ Services \ Wpf ]] \\ [[Map Suite Samples Alternate Languages | Need it in another language?]]
In today’s project, we are seeing a variant of the sample “Traveling Salesman Problem” of the “How Do I” samples of the Routing product. At the request of a Discussion Forum user, we added a new API to the GetRouteViaVisitStops function where now you can have distinct start and end points. For being able to run this app, you will need the version 3.1.427.0 or later.