public static String createTestPtStationCSVFile ( File file ) { try ( BufferedWriter bw = new BufferedWriter ( new FileWriter ( file ) ) ) { bw . write ( "id,x,y" ) ; bw . newLine ( ) ; bw . write ( "1,10,10" ) ; bw . newLine ( ) ; bw . write ( "2,10, 190" ) ; bw . newLine ( ) ; bw . write ( "3,190,190" ) ; bw . newLine ( ) ; bw . write ( "4,190,10" ) ; bw . newLine ( ) ; return file . getCanonicalPath ( ) ; } catch ( IOException e ) { throw new RuntimeException ( e ) ; } }
This method creates 4 pt stops for the test network from createTestNetwork ( ) . The information about the coordinates will be written to a csv file . The 4 pt stops are located as a square in the coordinate plane with a side length of 180 meter ( see the sketch below ) .