GitBucket
Toggle navigation
Sign in
Files
Branches
16
Releases
Issues
Pull requests
Labels
Priorities
Milestones
Wiki
Fork
: 0
nitta-lab-2019
/
CosmosServer
Browse code
一部経度と緯度が逆で渡している箇所があったため修正しました。
master
yolp
1 parent
1671522
commit
6cc2015620acd8d0054dc032b31f221134b2bc69
t-kume
authored
on 14 Nov 2019
Patch
Unified
Split
Showing
2 changed files
+1
-1
■
■
■■■
src/main/java/com/example/cosmos_serversb/models/Shops.java
+1
-1
■
■
■■■
src/test/java/HttpUrlConnectionTest/SampleTest2.java
Ignore Space
Show notes
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
();
}
Ignore Space
Show notes
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
);
Show line notes below