Inherits from NSObject
Declared in KiiGeoPoint.h
KiiGeoPoint.m

Tasks

  •   latitude

    latitude of this point.

    property
  •   longitude

    longitude of this point.

    property
  • – initWithLatitude:andLongitude:

    Create an instance of GeoPoint with the given latitude and longitude. throws NSInvalidArgumentException when the given lat/ lon is out of range.

  • – isEqual:

    Return true when both latitude and longitude of the specified object are equal to this one.

Properties

latitude

latitude of this point.

@property (readonly) double latitude

Discussion

latitude of this point.

Declared In

KiiGeoPoint.h

longitude

longitude of this point.

@property (readonly) double longitude

Discussion

longitude of this point.

Declared In

KiiGeoPoint.h

Instance Methods

initWithLatitude:andLongitude:

Create an instance of GeoPoint with the given latitude and longitude. throws NSInvalidArgumentException when the given lat/ lon is out of range.

- (KiiGeoPoint *)initWithLatitude:(double)lat andLongitude:(double)lon

Parameters

lat

of the point in degrees. Valid if the value is greater than -90 degrees and less than +90 degrees.

lon

of the point in degrees. Valid if the value is greater than -180 degrees and less than +180 degrees.

Discussion

Create an instance of GeoPoint with the given latitude and longitude. throws NSInvalidArgumentException when the given lat/ lon is out of range.

Declared In

KiiGeoPoint.h

isEqual:

Return true when both latitude and longitude of the specified object are equal to this one.

- (BOOL)isEqual:(id)other

Parameters

other

object that will be compared to this.

Return Value

true if the given object is equal to this, false otherwise.

Discussion

Return true when both latitude and longitude of the specified object are equal to this one.

Declared In

KiiGeoPoint.h