Latest 0.2.0
Homepage https://github.com/tezpark/TezGeocoder
License MIT
Platforms ios 8.0
Frameworks CoreLocation, Contacts
Authors

Platform
[GitHub language]()
Version
License
Travis build

Geocoding and reverse-geocoding

Summary

  • To support geocoding and reverse geocoding.
  • This library only uses the iOS framework (CoreLocation, Contacts)
  • Geocoding
    • Coordinate(latitude, longitude) -> Address information
  • Reverse-geocoding
    • Address information -> Coordinate(latitude, longitude)

Screenshots

Sample1
Sample2

Requirements

  • iOS SDK >= 8.0

Installation

CocoaPods

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

pod "TezGeocoder"

Usage

// Reverse-geocoding (Get coordinate with address info)
CLLocationCoordinate2D coordinate = CLLocationCoordinate2DMake(37.499378, 127.043054);
TezGeocoder* reverseGeocoder = [[TezGeocoder alloc] initWithLatitude:coordinate.latitude longitude:coordinate.longitude];
NSLog(@"(%@) %@ %@ %@ %@ %@ %@ %@",
      [reverseGeocoder postalCode],
      [reverseGeocoder country],
      [reverseGeocoder countryCode],
      [reverseGeocoder state],
      [reverseGeocoder city],
      [reverseGeocoder street],
      [reverseGeocoder subStreet],
      [reverseGeocoder name]);

// Geocoding (Get address info with coordinate)
NSString *addressStr = @"Yeoksam-dong ,Gangnam-gu, Seoul";
TezGeocoder *geocoder = [[TezGeocoder alloc] initWithAddressString:addressStr];
NSLog(@"lat:%f lon:%f", geocoder.location.coordinate.latitude, geocoder.location.coordinate.longitude);    

Author

TezPark, [email protected]

License

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

Latest podspec

{
    "name": "TezGeocoder",
    "version": "0.2.0",
    "summary": "Geocoding and reverse-geocoding",
    "homepage": "https://github.com/tezpark/TezGeocoder",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "tezpark": "[email protected]"
    },
    "source": {
        "git": "https://github.com/tezpark/TezGeocoder.git",
        "tag": "0.2.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "TezGeocoder/Classes/**/*",
    "frameworks": [
        "CoreLocation",
        "Contacts"
    ]
}

Pin It on Pinterest

Share This