Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
Pod
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Geography

Version License Platform

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.

Installation

KSGeography is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "KSGeography"

Usage

Countries

KSCountry *country = [KSCountries.all named:@"Canada"]; // <KSCountry name="Canada" code="CAN">
country.name; // "Canada"
country.code; // "CAN"

Regions

KSRegion *region = [KSRegions.all named:@"Ontario"]; // <KSCountry name="Ontario" code="ON" type="province">
region.name; // "Ontario"
region.code; // "ON"

Author

Kevin Sylvestre, kevin@ksylvest.com

License

KSGeography is available under the MIT license. See the LICENSE file for more info.