FAQ Database Discussion Community


Parse and Swift Geopoints not saving

swift,parse.com,geopoints
I have tried everything. No matter what my Geopoints will not save when using an actual device with xcode or using the simulator. if signUpError == nil { PFGeoPoint.geoPointForCurrentLocationInBackground { (geoPoint: PFGeoPoint?, error: NSError?) -> Void in if error == nil { PFUser.currentUser()!.setValue(geoPoint, forKey: "location") } } I am not...

Reverse order from query.whereKey(“column”, nearGeoPoint) in UITableView

uitableview,swift,parse.com,geopoints
I'm trying to get location data(PFGeoPoint) from parse.com, show it in UITableView, and sort it by nearest one from user location. I already use the code same with shown in parse documentation : findPlaceData.whereKey("position", nearGeoPoint:SearchLocationGeoPoint) I managed to get the data. I also managed to show it in my UITableView....

What would be the correct json format to import GeoPoints in Parse.com?

json,import,parse.com,geopoints
I am trying to import a data set into parse.com.com and one of the columns has GeoPoints in it. Parse help shows the JSON format ought to be as follows: { "__type": "GeoPoint", "latitude": 64.124596, "longitude": -147.86327 } However, when I try to import it into the data browser, the...

Query between distances in Parse

android,parse.com,pfquery,geopoints
I would like to search places between two given distances, using GeoPoints. Using the currently api, I think I could make something like this pseudo algorithm: query.whereWithinKilometers("directions", GlobalData.ownerGeoPoint, MAXIMUM distance); MINUS query.whereWithinKilometers("directions", GlobalData.ownerGeoPoint, MINIMUM distance); How can I translate to real code?...

How to construct and store the geopoint

google-app-engine,twitter-bootstrap-3,geolocation,webapp2,geopoints
Am working on GAE with python. How to construct and store the latitude and longitude using GeoPoint? This is my DB class Customer(db.Model): name = db.StringProperty() address= db.PostalAddressProperty() geopoint= db.GeoPtProperty() My code class AddCustomerHandler(BaseHandler): input_fullname=self.request.get('fullname') input_cusaddress=self.request.get('cusaddress') input_latitude=self.request.get('latitude') input_longitude=self.request.get('longitude') input_geopoint= GeoPoint(input_latitude, input_longitude)...