EKIPLocation
EKIPLocation is a framework created to detecting user location via ip.
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?
}