|
LuxChat
2.0
Instant messenger for iOS
|
#import <PFGeoPoint.h>
Instance Methods | |
| (double) | - distanceInRadiansTo: |
More... | |
| (double) | - distanceInMilesTo: |
| (double) | - distanceInKilometersTo: |
Class Methods | |
| (instancetype) | + geoPoint |
More... | |
| (instancetype) | + geoPointWithLocation: |
| (instancetype) | + geoPointWithLatitude:longitude: |
| (void) | + geoPointForCurrentLocationInBackground: |
Properties | |
| double | latitude |
More... | |
| double | longitude |
PFGeoPoint may be used to embed a latitude / longitude point as the value for a key in a PFObject. It could be used to perform queries in a geospatial manner using PFQuery.-whereKey:nearGeoPoint:.
Currently, instances of PFObject may only have one key associated with a PFGeoPoint type.
| - (double) distanceInKilometersTo: | (nullable PFGeoPoint *) | point |
Get distance in kilometers from this point to specified point.
| point | PFGeoPoint that represents the location of other point. |
point. | - (double) distanceInMilesTo: | (nullable PFGeoPoint *) | point |
Get distance in miles from this point to specified point.
| point | PFGeoPoint that represents the location of other point. |
point. | - (double) distanceInRadiansTo: | (nullable PFGeoPoint *) | point |
Get distance in radians from this point to specified point.
| point | PFGeoPoint that represents the location of other point. |
point. | + (instancetype) geoPoint |
| + (void) geoPointForCurrentLocationInBackground: | (nullable PFGeoPointResultBlock) | resultBlock |
Fetches the current device location and executes a block with a new PFGeoPoint object.
| resultBlock | A block which takes the newly created PFGeoPoint as an argument. It should have the following argument signature: ^(PFGeoPoint *geoPoint, NSError *error) |
| + (instancetype) geoPointWithLatitude: | (double) | latitude | |
| longitude: | (double) | longitude | |
Create a new PFGeoPoint object with the specified latitude and longitude.
| latitude | Latitude of point in degrees. |
| longitude | Longitude of point in degrees. |
| + (instancetype) geoPointWithLocation: | (nullable CLLocation *) | location |
Creates a new PFGeoPoint object for the given CLLocation, set to the location's coordinates.
| location | Instace of CLLocation, with set latitude and longitude. |
|
readwritenonatomicassign |
Latitude of point in degrees. Valid range is from -90.0 to 90.0.
|
readwritenonatomicassign |
Longitude of point in degrees. Valid range is from -180.0 to 180.0.
1.8.9.1