@Test public void annotate() throws Exception { GeoJSONWriterPoints geojson = new GeoJSONWriterPoints(null, getLocation(), "test", false); String result = geojson.getString(false); String expected = "{\"type\": \"FeatureCollection\",\"features\": [\n" + "{\"type\": \"Feature\",\"properties\":{\"time\":\"1970-01-01T00:00:00.000Z\"," + "\"provider\":\"MOCK\",\"time_long\":0,\"description\":\"test\"" + ",\"altitude\":9001.0,\"bearing\":91.88,\"speed\":188.44}," + "\"geometry\":{\"type\":\"Point\",\"coordinates\":[19.111,12.193]}}\n]}"; assertEquals("annotation", expected, result); }
@Override public void annotate(String description, Location loc) throws Exception { Runnable gw = new GeoJSONWriterPoints(file, loc, description, addNewTrackSegment); EXECUTOR.execute(gw); }
GeoJSONLogger implements FileLogger { @Override public void annotate(String description, Location loc) throws Exception { Runnable gw = new GeoJSONWriterPoints(file, loc, description, addNewTrackSegment); EXECUTOR.execute(gw); } }
GeoJSONLogger implements FileLogger { @Override public void annotate(String description, Location loc) throws Exception { Runnable gw = new GeoJSONWriterPoints(file, loc, description, addNewTrackSegment); EXECUTOR.execute(gw); } GeoJSONLogger(File file, boolean addNewTrackSegment); }
GeoJSONLogger implements FileLogger { @Override public void annotate(String description, Location loc) throws Exception { Runnable gw = new GeoJSONWriterPoints(file, loc, description, addNewTrackSegment); EXECUTOR.execute(gw); } GeoJSONLogger(File file, boolean addNewTrackSegment); @Override void write(Location loc); @Override void annotate(String description, Location loc); @Override String getName(); static int getCount(); }
GeoJSONLogger implements FileLogger { @Override public void annotate(String description, Location loc) throws Exception { Runnable gw = new GeoJSONWriterPoints(file, loc, description, addNewTrackSegment); EXECUTOR.execute(gw); } GeoJSONLogger(File file, boolean addNewTrackSegment); @Override void write(Location loc); @Override void annotate(String description, Location loc); @Override String getName(); static int getCount();  }