Latest 1.2.0
Homepage https://github.com/Taillook/ZipCode4s
License MIT
Platforms ios 8.0, requires ARC
Authors

Swift library for manipulating postal codes.

Installation

CocoaPods

pod 'ZipCode4s'

Carthage

github "Taillook/ZipCode4s"

Usage

code

import ZipCode4s
let addrInfo = ZipCode(zipcode: "1500043")

print(addrInfo.zipcode)
print(addrInfo.prefecture)
print(addrInfo.prefectureKana)
print(addrInfo.city)
print(addrInfo.cityKana)
print(addrInfo.town)
print(addrInfo.townKana)

result

1500043
東京都
トウキョウト
渋谷区
シブヤク
道玄坂
ドウゲンザカ

Contribution

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am ‘Add some feature’)
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Author

Taillook

Latest podspec

{
    "name": "ZipCode4s",
    "version": "1.2.0",
    "summary": "Swift library for manipulating postal codes.",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "homepage": "https://github.com/Taillook/ZipCode4s",
    "authors": {
        "Taillook": "taillook.s[at]gmail.com"
    },
    "social_media_url": "http://twitter.com/Taillook",
    "source": {
        "git": "https://github.com/Taillook/ZipCode4s.git",
        "tag": "1.2.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "source_files": "ZipCode4s/*.{h,m,swift}",
    "resources": "ZipCode4s/*.csv"
}

Pin It on Pinterest

Share This