QMGeocoder 1.0.3

QMGeocoder 1.0.3

维护者:Kanstantsin Bucha.



 
依赖项
LocationInfo>= 0
LocationInfo/LMGeocoder>= 0
LocationInfo/AppleGeocoder>= 0
LMGeocoderUniversal>= 0
 

QMGeocoder

CI Status Version License Platform

示例

要运行示例项目,请克隆仓库,然后首先从 Example 目录中运行 pod install

您可以在 info.plist 文件中放置 Google API 密钥 ["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);
}];

需求

安装

QMGeocoder 通过 CocoaPods 提供。要安装它,只需将以下行添加到 Podfile 即可

pod 'QMGeocoder'

作者

truebucha, [email protected]

许可协议

QMGeocoder遵循MIT许可协议。更多信息请参阅LICENSE文件。