一部経度と緯度が逆で渡している箇所があったため修正しました。
1 parent 1671522 commit 6cc2015620acd8d0054dc032b31f221134b2bc69
t-kume authored on 14 Nov 2019
Showing 2 changed files
View
2
■■■
src/main/java/com/example/cosmos_serversb/models/Shops.java
}
return shops;
}
 
public static ArrayList<Shop> getShop(String leftLatitude, String leftLongitude, String rightLatitude, String rightLongitude) {
public static ArrayList<Shop> getShop(String leftLongitude, String leftLatitude, String rightLongitude, String rightLatitude) {
if(shops != null) {
shops.clear();
}
 
View
2
■■■
src/test/java/HttpUrlConnectionTest/SampleTest2.java
int start = 1;
int count = 100;
int roop = 1;
for(int i = 0;i < roop; i++) {
json = yolpConnection("34.6738095", "135.175471", "34.6832833", "135.2780431", start);
json = yolpConnection("34.8", "135.2", "34.7", "135.3", start);
String total = json.get("ResultInfo").get("Total").asText();
 
if (Integer.parseInt(total) - (start - 1) < 100) {
count = Integer.parseInt(total) - (start - 1);