Coming up!

 

LTLocationManager.framework

Location Services Has Never been so easy..
 

  • 3 lines of code

Will execute LTLocationManager Framework.

All User Location Data is waiting for you..

Implementation:

  1. initilize

  2. delegate (optional)

  3. start

 

Enjoy!

LTLocationManager.Framework

Location Services Custom Framework

Fast Location data Collection & Calculation:

 

 

Classes:

1. LTLocationManager_mvc.h:

  • Full Current Location Data collection.

2. LTLocationService.h:

  • Current location data

  • Calculate Distance

  • Compare Locations

3. LTSearchAddress.h:

  • Get Coordinates / Placemark details by given Address String.

 

this class will collect for you all location data:

 

COORDINATE

  • float latitude;

  • float longitude;

  • float altitude;

  • float maxAltitude;

  • float minAltitude;

 

CLLOCATIONS

  • MKPlacemark * currentPlacemark;

  • CLLocationCoordinate2D lastCoordinate;

  • CLLocationCoordinate2D currentCoordinate;

  • CLLocation* newLocation;

  • CLLocation* oldLocation;

  • NSMutableArray * arrPassedCLLocations;

 

 

SPEED

  •  CLLocationSpeed speed_km;

  •  CLLocationSpeed speed_miles;

  •  CLLocationSpeed maxSpeed_km;

  •  float average_speed;

  •  NSMutableArray* arr_Speeds;

  •  CLLocationSpeed maxSpeed_miles;

  • //run

  •  CLLocationSpeed min_RunSpeed;

 

 

 

CLLocationDistance

  • CLLocationDistance distance_miles;

  • CLLocationDistance distance_km;

  • CLLocationDistance distance_m;

  • CLLocationDistance Accumulate_Step_distance;

  • CLLocationDistance Accumulate_distance;

  • CLLocationDistance passedDistance;

 

 

CURRENT CLPLACEMARK

  • //_mapPlacemark=myPlacemark.addressDictionary;

  •  NSDictionary * dicPlacemark;

  •  MKPlacemark *placemark;

  •  NSString *thoroughfare;

  •  NSString *subThoroughfare;

  •  NSString *locality;

  •  NSString *subLocality;

  •  NSString *adminisArea;

  •  NSString *subAdminArea;

  •  NSString *postalCode;

  •  NSString *ISOcountryCode; // eg. US

  •  NSString *country;

  •  NSString *city;

  •  NSMutableString *FormattedAddressLines;

  •  NSMutableString *FormattedAddressLinesShortStyle;

  •  NSString *inlandWater; // eg. Lake Tahoe

  •  NSString *ocean; // eg. Pacific Ocean

  •  NSArray *areasOfInterest; // eg. Golden Gate Park

 

 

@end

 

Delegate:

- (void)locationManager:(CLLocationManager *)manager didChangeAuthorizationStatus:(CLAuthorizationStatus)status;

 

CLLOCATIONS

- (void)didUpdateToLocation:(CLLocation *)coordinates;

- (void)didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation;

 

SPEED

- (void)didChangedSpeed_km:(float)speed_km;

 

ADDRESS & PLACEMARK

- (void)didUpdateAddress:(NSString*)FormattedAddressLines;

- (void)didUpdatePlaceMark:(MKPlacemark*)PlaceMark;

- (void)didChanged_ISOCountryCode:(NSString *)ISOCountryCode;

 

HEADING

- (void)didUpdateHeading:(CLLocationDirection)Heading;

 
 

LTLocationService.h: (static library)

fast location calculation & data:

 

CURRENT LOCATION:

+ (CLLocation*)currentCLLocation;

+ (CLLocationCoordinate2D)currentCoordinate;

+ (float)latitude;

+ (float)longitude;

+ (NSString*)currentLocationName;

+ (void)logCurrentCoordinates;

 

 

DISTANCE

+ (CLLocationDistance)getDistanceBetween:(CLLocationCoordinate2D)first and:(CLLocationCoordinate2D)second;

+ (CLLocationDistance)getDistanceBetweenCLLocations:(CLLocation *)first and:(CLLocation *)second;

+ (CLLocationDistance)getDistanceBetCurrentLocAnd:(CLLocationCoordinate2D)second;

+ (CLLocationDistance)getDistanceBetCurrentLoc_AndUserDictionary:(NSDictionary*)dictionary;

+ (CLLocationDistance)getDistanceBetCurrentLoc_AndLocDictionary:(NSDictionary*)dictionary;

 

 

LOCATION DICS

+(NSDictionary*)getUserLocationDic; //current coordinates

+(NSMutableDictionary*)updateLocationDic:(NSMutableDictionary*)locationDic;

+(NSMutableDictionary*)updateLocationDic:(NSMutableDictionary*)locationDic centerMapView:(MKMapView*)mapview;

 

 

UPDATE DISTANCE DICS

+ (NSMutableArray*)updateDistanceDics:(NSMutableArray*)arrayDics

                                              fromlocation:(CLLocationCoordinate2D)fromlocation

                                                        latKey:(NSString*)latKey lngKey:(NSString*)lngKey disKey:(NSString*)disKey

                                              inKilometers:(BOOL)inKilometers ;

 

 

COMPARE LOCATIONS

+ (BOOL)compareUserLocation_withlocation:(CLLocation*)location;

+ (BOOL)compareLocation:(CLLocation*)location1 location2:(CLLocation*)location2;

+ (BOOL)compareLocation:(CLLocation*)location1 location2:(CLLocation*)location2 meters:(int)meters;

 

@end

 

 

 

 

 

 

LTSearchAddress.h:

get best address Coordinate's results by Apple & Google:

- (void)searchAddress:(NSString*)address;

@end

Delegate:

- (void)searchAddressSuccessWithPlacemark:(MKPlacemark*)placemark; // by Apple

- (void)searchAddressSuccessWithCoordinates:(CLLocationCoordinate2D)coordinates; // by Google

- (void)searchAddressFinishedWithNoResults:(id)searchedObject;

 

Apple