LMGeocoderUniversal 1.2.2

LMGeocoderUniversal 1.2.2

Kanstantsin Bucha 维护。



LMGeocoderUniversal

CI Status Version License Platform

示例

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

添加到 info.plist

<key>NSAppTransportSecurity</key>
<dict>
    <key>NSAllowsArbitraryLoads</key>
    <true/>
    <key>NSExceptionDomains</key>
    <dict>
        <key>maps.googleapis.com</key>
        <dict>
            <key>NSExceptionAllowsInsecureHTTPLoads</key>
            <true/>
            <key>NSIncludesSubdomains</key>
            <true/>
        </dict>
    </dict>
</dict>
    LMGeocoder * geocoder = [LMGeocoder geocoder];
    NSArray * result = [geocoder geocodeAddressString: @"Minsk. Belarus"
                                              service: kLMGeocoderGoogleService
                                                error: nil];
    NSLog(@"%@", [(LMAddress *)result.firstObject country]);

需求

安装

LMGeocoderUniversal 可通过 CocoaPods 获得。要安装,只需将以下行添加到 Podfile

pod 'LMGeocoderUniversal'

作者

truebucha, [email protected]

许可证

LMGeocoderUniversal 在 MIT 许可下可用。更多信息请参阅 LICENSE 文件。