/QMGeocoder

universal google/apple geocoder using QMLocationInfo as output format

Primary LanguageObjective-CMIT LicenseMIT

It was archived. Please write to me at kanstantsin.bucha@icloud.com in case any issues occur.

QMGeocoder

CI Status Version License Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

you could place google API key inside info.plist file at ["google"]["GeocoderApiKey"]

    <key>Google</key>
    <dict>
    <key>GeocoderApiKey</key>
    <string>ApiKeyStringHere</string>
    </dict>
[QMGeocoder.shared geocodeAddress: address
                            using: QMGeocoderServiceApple
                       completion: ^(QMLocationInfo * _Nullable appleInfo, NSError * _Nullable error) {
    NSLog(@"Apple: %@", appleInfo);
}];

[QMGeocoder.shared geocodeAddress: address
                            using: QMGeocoderServiceGoogle
                       completion: ^(QMLocationInfo * _Nullable googleInfo, NSError * _Nullable error) {
    NSLog(@"Google: %@", googleInfo);
}];

Requirements

Installation

QMGeocoder is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'QMGeocoder'

Author

truebucha, truebucha@gmail.com

License

QMGeocoder is available under the MIT license. See the LICENSE file for more info.