zoukankan      html  css  js  c++  java
  • MKReverseGeocoder 获取地址的详细信息

    - (void)reverseGeocoder:(MKReverseGeocoder *)geocoder didFindPlacemark:(MKPlacemark *)placemark
    {
    NSLog(@"%@",placemark.locality);
    }
    //=======================================================
    Street = 科韵路 18号
    Thoroughfare = 科韵路
    SubThoroughfare = 18号
    City = 广州市
    SubLocality = 天河区
    State = 广东省
    SubAdministrativeArea = (null)
    ZIP = (null)
    Country = 中国
    {
    City = "广州市";
    Country = "中国";
    CountryCode = CN;
    FormattedAddressLines = (
    "中国",
    "广东省广州市天河区",
    "科韵路18号"
    );
    State = "广东省";
    Street = "科韵路18号";
    SubLocality = "天河区";
    SubThoroughfare = "18号";
    Thoroughfare = "科韵路";
    }
    MKPlacemark:
    @property (nonatomic, readonly) NSDictionary *addressDictionary; //地址字典
    @property (nonatomic, readonly) NSString *thoroughfare; //街道名——“科韵路”
    @property (nonatomic, readonly) NSString *subThoroughfare; // 门牌号——“18号”
    @property (nonatomic, readonly) NSString *locality; //城市——“广州市”
    @property (nonatomic, readonly) NSString *subLocality; //区县——“天河区”
    @property (nonatomic, readonly) NSString *administrativeArea; //身份——“广东省”
    @property (nonatomic, readonly) NSString *subAdministrativeArea; //没获取到,不知道是什么东东
    @property (nonatomic, readonly) NSString *postalCode; //邮政编码——不知道是什么原因,这里没获取到
    @property (nonatomic, readonly) NSString *country; //国家——“中国”
    @property (nonatomic, readonly) NSString *countryCode; //国家代码——“CN”
  • 相关阅读:
    mysql压缩版安装
    网站还没加载完成时,显示正在加载的画面
    LESS基础教程
    用CSS编写多种常见的图形
    JavaScript的this
    JavaScript的闭包
    立即执行函数表达式(自执行函数)
    JavaScript的全局变量
    关于async function(){ let res = await } 详解
    mysql数据库的系统操作基本操作
  • 原文地址:https://www.cnblogs.com/solitary/p/2751304.html
Copyright © 2011-2022 走看看