Skip to content

NSObject to handle directions 3rd party maps applications

Notifications You must be signed in to change notification settings

carabina/AHDirectionsObject

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

About

AHDirectionsObject is an NSObject class designed to make opening other maps applications a breeze. This class is developed for our newest iOS App [All Hours](https://itunes.apple.com/gb/app/all-hours/id1000983835?mt=8), please be sure to check it out!

Supports

  • Apple Maps (Obviously)
  • Citymapper
  • Google Maps
  • Waze

    Setup

    Add the AHDirectionsObject.h & AHDirectionsObject.m files to your project. In your .h file add #import "AHDirectionsObject.h" In your .m file add
    AHDirectionsObject *directions = [[AHDirectionsObject alloc] init];
    

    Installed Applications

    To return a list (NSArray) of the available (installed) map services on the users device simple call...
    [directions directionsApplications];
    

    Open Application

    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...
  • citymapper - (Citymapper)
  • google - (Google Maps)
  • waze - (Waze Maps)

    Or, set as nil to open the native Apple Maps.

    Notes

    If a application type is passed which is not available the class will revert to Apple Maps
  • About

    NSObject to handle directions 3rd party maps applications

    Resources

    Stars

    Watchers

    Forks

    Releases

    No releases published

    Packages

    No packages published

    Languages

    • Objective-C 100.0%