Supports
#import "AHDirectionsObject.h"
In your .m file add
AHDirectionsObject *directions = [[AHDirectionsObject alloc] init];To return a list (NSArray) of the available (installed) map services on the users device simple call...
[directions directionsApplications];
To open a specifyed application call the
directionsHandle
. This method has two parameters - the location (CLLocation
) and the type of application (NSString
)[directions directionsHandle:[[CLLocation alloc] initWithLatitude:YOUR_LATITUDE_FLOAT longitude:YOUR_LONGITUDE_FLOAT] type:@"citymapper"];
They type key accepts...
Or, set as nil
to open the native Apple Maps.
type
is passed which is not available the class will revert to Apple Maps