diff --git a/src/main/java/com/example/cosmos_serversb/models/Shops.java b/src/main/java/com/example/cosmos_serversb/models/Shops.java index 5de0b6e..1441aba 100644 --- a/src/main/java/com/example/cosmos_serversb/models/Shops.java +++ b/src/main/java/com/example/cosmos_serversb/models/Shops.java @@ -20,7 +20,6 @@ private static Shops theInstance = null; //private static SessionFactory sessionFactory; - private static ArrayList shops = new ArrayList<>(); private static String baseURI="http://nitta-lab-www.is.konan-u.ac.jp/"; private static String AppName="cosmos"; @@ -37,6 +36,7 @@ public static ArrayList getShop(String leftLatitude, String leftLongitude, String rightLatitude, String rightLongitude) { String result = ""; + ArrayList shops = new ArrayList<>(); int count = 100; try { URL url = new URL("https://map.yahooapis.jp/search/local/V1/localSearch?bbox=" + leftLongitude + "," + leftLatitude + "," + rightLongitude + "," + rightLatitude + "&gc=02&results=100&output=json&appid=dj00aiZpPTVzYzloUDJjS0VMSyZzPWNvbnN1bWVyc2VjcmV0Jng9MGE-");