ios - Getting all PFGeoPoints that are within the visible map view -


I am using paras inside my iOS app (using Swift) now with me long and latitude There is a bunch of PFGeoPoints. If I now show a map, then I would like to show every point as an annotation, which is viewable within the visible map.

I thought of something like this: query.whereKey ("location", near geopoint: userpagepoint) Where passpointpoint is between visible map, but it looks dirty.

Is this a better solution? Thanks

is working using:

  swOfSF = PFGeoPoint (latitude: 37.708813, longitude: -122.526398) NOFSF = PFGpoint point (latitude: 37.822802, longitude: -122.373962) var query = PFQAri (classname: "car") query. WKK ("Location", Geo BoxFormWebWhite: SOFFSF, Northeastern From: NEOFSF) Var visibleCars = query.findObjects ()  

Where swOfSF is the Southwest point of San Francisco and most of the neOfSF San Francisco Noor is

Cheers


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -