Latest 0.0.2
Homepage https://github.com/WhereYat/whereyat-swift
License MIT
Platforms ios 8.0, osx 10.9, requires ARC
Authors

whereyat-swift

Swift class for Where Y’at IP-based geolocation.

How to Use

It’s pretty easy:

WhereYat.locate { (location, error) in
    if (error == nil) {
    // location looks like this:
    // var success:Bool = false // eg. true
    // var city:String? // eg. "New Orleans"
    // var metro_code:NSNumber? // eg. "504"
    // var country:String? // eg. "United States"
    // var country_code_:String? // eg. "US"
    // var time_zone:String? // eg. "America/Chicago"
    // var longitude:NSNumber? // eg. "30.123"
    // var latitude:NSNumber? // eg. "-90.001"
    // var ip:String? // eg. "1.2.3.4"
    // var subdivisions:[Dictionary<String, String>]? // e.g. [{name: "Louisiana"}]
    //
    // Now that you have this information,
    // Do your job here
    //
    //
    }
}

Where’s This From?

WhereYat was originally built as a responsive Javascript tool. It’s pretty nice, you should check it out.

License?

This is MIT licensed, so whatever.

Contributions?

Yes, please. Taking pull requests here.

Latest podspec

{
    "name": "WhereYat",
    "version": "0.0.2",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "summary": "Where y'at IP-based geolocation",
    "homepage": "https://github.com/WhereYat/whereyat-swift",
    "social_media_url": "http://twitter.com/zaneshannon",
    "authors": {
        "Zane Shannon": "[email protected]"
    },
    "source": {
        "git": "https://github.com/WhereYat/whereyat-swift.git",
        "tag": "0.0.2"
    },
    "platforms": {
        "ios": "8.0",
        "osx": "10.9"
    },
    "source_files": "WhereYat.swift",
    "requires_arc": true
}

Pin It on Pinterest

Share This