NIFCLOUD-mbaas / UserCommunity

ニフクラ mobile backend ユーザーコミュニティ
https://mbaas.nifcloud.com/
82 stars 18 forks source link

AndroidのqueryでwhereWithinKilometersで距離指定の単位は? #608

Open HiroHosono opened 7 years ago

HiroHosono commented 7 years ago

iOSで作ったアプリをandroidに移植しようとしています。 queryのwhereWithinKilometersで距離(100m)を指定しようと0.1を設定したら整数(Int)ではないと怒られてしまいました。 (iOS版SDKでは引数はDouble型だったので問題なく0.1を指定できました。) android版では100mは指定できないのでしょうか? Kilometersという名前だけどm単位で指定して100を指定すればOK?

goofmint commented 7 years ago

http://mb.cloud.nifty.com/assets/sdk_doc/android/javadoc/com/nifty/cloud/mb/core/NCMBQuery.html#whereWithinKilometers-java.lang.String-android.location.Location-int-

あら1.5系だとdoubleなので、SDK側の問題に見えますね。Android SDKのIssueに登録してもらえますか?

https://github.com/NIFTYCloud-mbaas/ncmb_android/issues

HiroHosono commented 7 years ago

回答ありがとうございます。 Android SDKのIssue#99として登録しました。