Hi Anil,
Here are the answers:
1. There isn’t built-in function to get the right shape file in worldmapkit just based on a given start and end point. To avoid some unexpected efforts are made, can you let us know your scenario and then we can provide you some hints.
Yes, the network for route is stored in routing index file (.rtg). In other words, we can route just based on routing index file, but there are lots of limitations. For instance, we just can use “GetRouteSegments(string startFeatureId, string endFeatureId)” to find a route and there will be no other information, such as road name, road limitations which stored in .dbf file.
2. Generally, the routing engine just works with one shapefile and rtg files. But there are two ways to process multiple shape files.
a. Building the .ids, .idx for multiple shape files using MultipleShapeFileFeatureSource, and then build the Routing index file “.rtg” using MultipleShapeFileFeatureSource. This is a very efficient way that costs lots of time for building index file.
b. Firstly, Divide the roads into different levels and combine all shp files belonging to one level to one shp file, and then build routing index file for each of level using merged shape file. Secondly, write our own logic to switch the index file and shape files for right level when finding the route. I think it will be a little complex.
Thanks,
Johnny