This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <math.h> | |
#include "CLLocation.h" //requires Core Location Framework | |
- (CLLocationCoordinate2D)convertToLatLongFromEastings:(double)E andNorthings:(double *)N { | |
//E, N are the British national grid coordinates - eastings and northings | |
double a = 6377563.396; //The Airy 180 semi-major and semi-minor axes used for OSGB36 (m) | |
double b = 6356256.909; | |
double F0 = 0.9996012717; |