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);
  }
}

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 ) .
