title: Supporting gzip response from Google Geocoding API
body: <p>I am using the Google Geocoding API v3[1] from an iOS application but can't get it to return a gzip response. The v2 was much more lightweight but with v3 I'm getting a ~20kb JSON response .. which might take some time to retrieve on a bad GPRS connection, so I would really like to get a gzipped result back.</p>
  
  <p>Am I wondering if I'm doing anything wrong in my call or if their API really doesn't support gzip or deflate. It just sounds strange to me.</p>
  
  <p>This is a what I'm doing in my code:</p>
  
  <pre><code>NSURL *url = [NSURL URLWithString:@"http://maps.googleapis.com/maps/api/geocode/json?latlng=55,12&amp;sensor=true"];
  
  NSMutableURLRequest *req = [[NSMutableURLRequest alloc] initWithURL:url];
  [req setValue:@"gzip,deflate" forHTTPHeaderField:@"Accept-Encoding"];
  
  NSURLConnection *c = [[NSURLConnection alloc] 
    initWithRequest:req delegate:self startImmediately:YES];
  </code></pre>
  
  <p>I've tried with only "gzip" and "deflate" too. Same result.</p>
  
  <p>[1] <a href="http://code.google.com/apis/maps/documentation/geocoding/" rel="nofollow">http://code.google.com/apis/maps/documentation/geocoding/</a></p>