SVGeocoderGoogle Geocoding Service 的簡單?Cocoa?封裝
SVGeocoder 是對 Google Geocoding Service 的簡單 Cocoa 封裝,它可以讓你迅速的進行地理編碼和反向地理編碼地址和坐標。它是基于塊的,內部使用 NSURLConnection 以及 JSONKit(包含在軟件包中)。在使用 SVGeocoder 之前,請確保你閱讀 Google Geocoding Service 的服務條款。
示例代碼:
[SVGeocoder geocode:addressString
completion:^(NSArray *placemarks, NSError *error) {
// do something with placemarks, handle errors
}];評論
圖片
表情
