User Tools

Site Tools


map_suite_routing_all_samples

This is an old revision of the document!


Map Suite Routing All Samples

Map Suite Routing Desktop Edition How Do I Samples

The Map Suite Routing “How Do I?” solution offers a series of useful how-to examples for using the Map Suite Routing extension. The bundled solution comes with a small set of routable street data from Austin, TX and demonstrates simple routing, avoiding specific areas, getting turn-by-turn directions, optimizing for the Traveling Salesman Problem, and much more. Full source code is included in both C# and VB.NET languages; simply select your preferred language to download the associated solution.

Please note that you will need an evaluation (or full version) of both Map Suite Routing and Map Suite Desktop Edition to build and run these samples.


Map Suite Routing Silverlight Edition How Do I Samples

The Map Suite Routing “How Do I?” solution offers a series of useful how-to examples for using the Map Suite Routing extension. The bundled solution comes with a small set of routable street data from Austin, TX and demonstrates simple routing, avoiding specific areas, getting turn-by-turn directions, optimizing for the Traveling Salesman Problem, and much more. Full source code is included in both C# and VB.NET languages; simply select your preferred language to download the associated solution.

Please note that you will need an evaluation (or full version) of both Map Suite Routing and Map Suite Silverlight Edition to build and run these samples.



Map Suite Routing Web Edition How Do I Samples

The Map Suite Routing “How Do I?” solution offers a series of useful how-to examples for using the Map Suite Routing extension. The bundled solution comes with a small set of routable street data from Austin, TX and demonstrates simple routing, avoiding specific areas, getting turn-by-turn directions, optimizing for the Traveling Salesman Problem, and much more. Full source code is included in both C# and VB.NET languages; simply select your preferred language to download the associated solution.

Please note that you will need an evaluation (or full version) of both Map Suite Routing and Map Suite Web Edition to build and run these samples.


Routing Index Generator

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

map_suite_routing_sample_traveling_salesman_problem.jpg

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.


Displaying One-Way Streets

LEAD Technologies Inc. V1.01

In the Discussion Forum Post “Drawing one-way streets in the map”, we have a question on how to display an arrow on a street that is one way as Google Map does. In this project, we show the solution by creating a LineStyle specifically for that purpose. We take the shapefile “AustinWithOneWayRoad.shp” from the sample app “Route On One-Way Roads” of Map Suite Routing Extension to display the arrow according to the traffic direction on the one-way streets


Routing Styles

map_suite_routing_sample_routing_styles.jpg

The API for the Routing extension product provides a class RoutingLayer. RoutingLayer is basically a convenient layer to have the features for routing being displayed in a default way. You can add the start, end point, the routes and it is going to display that nicely for you without much work on your side. While this is convenient, you may be in the situation when you want more control on the styles and have the whole flexibility that an InMemoryFeatureLayer gives you. In this project, we show how to display in InMemoryFeaturesLayers the start and end points, as well as the resulting route using the full power of InMemoryFeatureLayer such as zoom levels and custom styles.


Smooth Transparent Route

map_suite_routing_sample_smooth_transparent_route.jpg

In the Routing extension, the API GetRoute of the RoutingEngine returns a MultilineShape made of a collection of LineShape. By default, the MultilineShape has LineShapes for each two vertex line segment. The result in the displaying of the route using some transparency is a route that looks dotted and irregular. In this project, we show the trick to get one continuous LineShape which will show as smooth and regular. We recognized that the default result is not the most adequate in most cases and we will correct that for the next major release of the Routing extension. In the meantime, you can use that project to get the result that you want to display your routes.

Smart Brute Force TSP Routing Algorithm

In this Routing sample project, we are looking at the Routing Extension of Map Suite. Here we created a BruteForceRoutingEngine class to deal with complicated TSP (Traveling Salesman Problem) with fixed start and end points, you can get more details at https://en.wikipedia.org/wiki/Travelling_salesman_problem . Compared with built-in TSP algorithm in Routing Extension, it may be a bit slower, but show a better visit sequence and more reasonable route.

map_suite_routing_all_samples.1444281412.txt.gz · Last modified: 2015/10/08 05:16 by admin