Back to project page WATisRain.
The source code is released under:
MIT License
If you think the Android project WATisRain listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.lucky.watisrain.backend; /*from www. j a v a 2 s . co m*/ import java.io.File; import com.lucky.watisrain.backend.data.*; /** * This is merely a test harness for RainBackend */ public class Main { public static void main(String... args) throws Throwable{ File file = new File("C:/Users/Bai/Desktop/dev/watisrain/deprecated/locations.txt"); Map map = MapFactory.readMapFromFile(file); //map.printDataToStdout(); RouteFinder routefinder = new RouteFinder(map); Route route = routefinder.findRoute(map.getLocationByID("MC:6"), map.getLocationByID("UWP")); route.printRouteToStdout(); System.out.println(); route.getContractedRoute().printRouteToStdout(); } }