diff --git a/src/osm/jp/api/HttpPOST.java b/src/osm/jp/api/HttpPOST.java index a8d0092..c354073 100644 --- a/src/osm/jp/api/HttpPOST.java +++ b/src/osm/jp/api/HttpPOST.java @@ -18,10 +18,14 @@ double maxlat = 35.66d; double minlon = 138.99d; double maxlon = 139.79d; - getCapabilities(new File("."), minlat, maxlat, minlon, maxlon); + getCapabilities(new File("output.xml"), "highway", "bus_stop", minlat, maxlat, minlon, maxlon); + getCapabilities(new File("output.xml"), "highway", "disused:bus_stop", minlat, maxlat, minlon, maxlon); + getCapabilities(new File("output.xml"), "amenity", "bus_station", minlat, maxlat, minlon, maxlon); + getCapabilities(new File("output.xml"), "public_transport", "platform", minlat, maxlat, minlon, maxlon); + getCapabilities(new File("output.xml"), "public_transport", "stop_position", minlat, maxlat, minlon, maxlon); } - public static void getCapabilities(File oFile, double minLat, double maxLat, double minLon, double maxLon) throws MalformedURLException, ProtocolException, IOException { + public static void getCapabilities(File oFile, String key, String value, double minLat, double maxLat, double minLon, double maxLon) throws MalformedURLException, ProtocolException, IOException { System.out.println(host + "/api/interpreter"); URL url = new URL(host + "/api/interpreter"); @@ -37,36 +41,10 @@ PrintWriter pw = new PrintWriter(new BufferedWriter(new OutputStreamWriter(urlconn.getOutputStream(), "utf-8"))); outputWriter(pw, ""); outputWriter(pw, " "); - /* outputWriter(pw, " "); - outputWriter(pw, " "); + outputWriter(pw, " "); outputWriter(pw, " "); outputWriter(pw, " "); - */ - outputWriter(pw, " "); - outputWriter(pw, " "); - outputWriter(pw, " "); - outputWriter(pw, " "); - /* - outputWriter(pw, " "); - outputWriter(pw, " "); - outputWriter(pw, " "); - outputWriter(pw, " "); - outputWriter(pw, " "); - */ - /* - outputWriter(pw, " "); - outputWriter(pw, " "); - outputWriter(pw, " "); - outputWriter(pw, " "); - outputWriter(pw, " "); - */ - /* - outputWriter(pw, " "); - outputWriter(pw, " "); - outputWriter(pw, " "); - outputWriter(pw, " "); - */ outputWriter(pw, " "); outputWriter(pw, " "); outputWriter(pw, ""); diff --git a/src/osm/jp/coverage/busstop/Busstop.java b/src/osm/jp/coverage/busstop/Busstop.java index ee4e8fc..287fbcc 100644 --- a/src/osm/jp/coverage/busstop/Busstop.java +++ b/src/osm/jp/coverage/busstop/Busstop.java @@ -27,7 +27,6 @@ // 近くのバス停を探す範囲(バス停を中心としたNEER×2m四方の領域 static final int NEER = 150; // 150m(0.15km) - static boolean nocheck = false; static boolean update = false; public static SimpleDateFormat timeStampFmt = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'"); @@ -36,7 +35,6 @@ * メイン * * java -cp .:ConvBusstop.jar:hayashi_0225.jar:hsqldb_2.2.9.jar osm.jp.ConvBusstop