SVGeocoder 介绍
SVGeocoder 是对 Google Geocoding
Service 的简单 Cocoa
封装,它可以让你迅速的进行地理编码和反向地理编码地址和坐标。It is block-based, uses NSURLConnection
internally as well as JSONKit (included in
package). Make sure you read the Google Geocoding Service Terms of
Service before
using SVGeocoder.
示例代码:
[SVGeocoder geocode:addressstring completion:^(NSArray *placemarks, NSError *error) { // do something with placemarks, handle errors }];