Latest 0.0.4
Homepage https://github.com/soheilbm/IOS-Offline-GeoCoder
License APACHE
Platforms ios 6.0, requires ARC
Frameworks Foundation, CoreLocation
Authors

An Offline version of reverse Geo Code to retrieve Countries Name and ISO Codes.

Installation

To Use this class simply add this to your Podfile.

pod 'IOS-Offline-GeoCoder'

If you are not using Cocoapods, download this project and copy the Classes directory to your project.

Import the reverseGeoCoder to your header file.

#import "reverseGeoCoder.h"

Instantiate the reverseGeoCode using :

// --- Initializing reverseGeoCode
reverseGeoCoder *reverseGeoCode = [[reverseGeoCoder alloc]init];
// --- Locations
CLLocation *location = [[CLLocation alloc]initWithLatitude:41.0987947 longitude:-86.9682634];

NSString *countryName = [reverseGeoCode getCountryDetailWithKey:KeyName withLocation:location];

NSString *countryISO  = [reverseGeoCode getCountryDetailWithKey:KeyISO2A withLocation:location];

There are three type of data you can retrieve from reverseGeo Code.

1. KeyName

// Name of the Country

2. KeyISO2A

// ISO with Alpha-2

3. KeyISO3A

// ISO with Alpha-3

You may use any of those key to retrieve detail of the Location.

If you like this repo feel free to send your pull requests.

License

This project originally created by
krisrak => https://github.com/krisrak/ios-offline-reverse-geocode-country

Latest podspec

{
    "name": "IOS-Offline-GeoCoder",
    "version": "0.0.4",
    "summary": "An Offline Reverse GeoCoder for IOS.",
    "description": "An Offline version of reverse Geo Code for IOS to retrieve Countries Name and ISO Codes.",
    "homepage": "https://github.com/soheilbm/IOS-Offline-GeoCoder",
    "license": {
        "type": "APACHE"
    },
    "authors": {
        "Soheilbm": "[email protected]"
    },
    "platforms": {
        "ios": "6.0"
    },
    "source": {
        "git": "https://github.com/soheilbm/IOS-Offline-GeoCoder.git",
        "tag": "v0.0.4"
    },
    "source_files": "Classes/reverseGeoCoder.{h,m}",
    "resources": "Classes/CountriesGeoCode.json",
    "frameworks": [
        "Foundation",
        "CoreLocation"
    ],
    "requires_arc": true
}

Pin It on Pinterest

Share This