を検索するときに、私は、解析SDKを使用していると私はnearGeoPointを検索しようとすると、私は内部エラーnearGeoPoint
2016-05-01 18:33:17.275 Partee[2557:1416403] [Error]: internal error (Code: 1, Version: 1.13.0)
2016-05-01 18:33:17.275 Partee[2557:1416403] [Error]: Network connection failed. Making attempt 1 after sleeping for 1.965591 seconds.
を取得する私が使用しているコードはCurrentUserには、「場所」を持っている
let query = PFQuery(className: "Parties")
let myLocation = currentuser?.objectForKey("location") as! PFGeoPoint
query.whereKey("location", nearGeoPoint: myLocation, withinKilometers: 100)
query.findObjectsInBackgroundWithBlock({ (objects, error) in
if error == nil {
print("\(objects?.count) searches found")
}
}
})
です彼の現在の場所が既に保存されているので、私はそのユーザーの100キロ近くのパーティーを検索しようとしているが、私はコメントnearGeoPoint行の場合、それは完全に正常に動作します。
実際に私はまだ、parse.comを使用してまだ移行していません – TestDjay
これは私の問題を解決しました!ありがとうございました –