No description, website, or topics provided.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
CLLocation+DirectionFromLocation.h
CLLocation+DirectionFromLocation.m
LICENSE
README.md

README.md

CLLocation-DirectionFromLocation

Let's say you have two CLLocation objects, and you want to determine the cardinal direction from one to the other (i.e. Location 1 is south-west of Location 2)

CLLocationCardinalDirection direction = [location1 directionfromLocation:location2];

CLLocationCardinalDirections can be the following:

  • North
  • South
  • East
  • West
  • NorthEast
  • NorthWest
  • SouthEast
  • SouthWest