CocoaPods trunk is moving to be read-only. Read more on the blog, there are 18 months to go.

EKIPLocation 2.0.1

EKIPLocation 2.0.1

Maintained by Emil Karimov.



  • By
  • Emil Karimov

EKIPLocation

Swift Version Cocoapods Build Status GitHub license GitHub release

EKIPLocation is a framework created to detecting user location via ip.

text

Install

Swift Package Manager

    .package(url: "https://github.com/emvakar/EKIPLocation.git", from: "2.0.1")
    

Cocoapods

    pod 'EKIPLocation'
    

Manualy

Simply import the framework and add the following code to get started.

How to use

Empty setup with test parameters simple:

import EKIPLocation

EKIPLocationManager.shared.fetchLocation { (location) in
    print(location)
}

Response model

public struct EKPlaceModel {
    
    public var status: String?
    public var country: String?
    public var countryCode: String?
    public var region: String?
    public var regionName: String?
    public var city: String?
    public var zip: String?
    public var lat: Double?
    public var lon: Double?
    public var timezone: String?
    public var isp: String?
    public var org: String?
    public var query: String?
    
}