Routing Sample For iOS
Description
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 Dallas, 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 refer to Wiki for the details.
Requirements
This sample makes use of the following NuGet Packages
ThinkGeo.MapSuite.Layers.ShapeFile
About the Code
string rtgPath = Path.Combine("AppData", "DallasCounty-3857.rtg");
var routingSource = new RtgRoutingSource(rtgPath);
var featureSource = new ShapeFileFeatureSource(shapeFilePath);
routingEngine = new RoutingEngine(routingSource, featureSource);
routingEngine.GeographyUnit = GeographyUnit.Meter;
routingEngine.SearchRadiusInMeters = 200;
mapView.CurrentExtent = new RectangleShape(-10781100.2970769, 3875007.18710502, -10767407.8727504, 3854947.78546675);
Getting Help
Map Suite Web for iOS Wiki Resources
Map Suite Web for iOS Product Description
Key APIs
This example makes use of the following APIs:
- ThinkGeo.MapSuite.Routing.RtgRoutingSource
- ThinkGeo.MapSuite.Layers.ShapeFileFeatureSource
- ThinkGeo.MapSuite.Routing.RoutingEngine
- ThinkGeo.MapSuite.Shapes.RectangleShape
About Map Suite
Map Suite is a set of powerful development components and services for the .Net Framework.
About ThinkGeo
ThinkGeo is a GIS (Geographic Information Systems) company founded in 2004 and located in Frisco, TX. Our clients are in more than 40 industries including agriculture, energy, transportation, government, engineering, software development, and defense.