TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Apr 2017 |
SwiftSwift Version | 3.0 |
SPMSupports SPM | ✗ |
Maintained by Jens Grud.
CLLocationManager wrapper in Swift for easy location update, reverse geocoding and region monitoring with closure and delegate support
Download manually or install via CocoaPods:
pod 'LocationManagerSwift', '~> 1.1'
// updation location
LocationManagerSwift.shared.updateLocation { (latitude, longitude, status, error) in
}
// reverse geo coding using Apple or Google API's
LocationManagerSwift.shared.reverseGeocodeLocation(.APPLE) { (country, state, city, reverseGecodeInfo, placemark, error) in
}
// region monitoring
LocationManagerSwift.shared.monitorRegion(latitude: latitude, longitude: longitude, radius: 100.0, notifyOnExit: true, notifyOnEntry: true) { (region, status, error) in
}
pod 'LocationManagerSwift', '~> 1.0.4'
// updation location
LocationManagerSwift.sharedInstance.updateLocation { (latitude, longitude, status, error) in
}
// reverse geo coding using Apple or Google API's
LocationManagerSwift.sharedInstance.reverseGeocodeLocation(.APPLE) { (country, state, city, reverseGecodeInfo, placemark, error) in
}
// region monitoring
LocationManagerSwift.sharedInstance.monitorRegion(lat, longitude: lon, radius: radius, notifyOnExit: true, notifyOnEntry: false) { (region, status, error) in
}