def extract_roads_body(response)
        begin
          body = MultiJson.load(response.body, :symbolize_keys => true)
        rescue
          unless response.status_code == 200
            check_response_status_code(response)
          end
          raise GoogleMapsService::Error::ApiError.new(response), 'Received a malformed response.'
        end

        check_roads_body_error(response, body)

        unless response.status_code == 200
          raise GoogleMapsService::Error::ApiError.new(response)
        end
        return body
      end
def extract_roads_body(response)
        begin
          body = MultiJson.load(response.body, :symbolize_keys => true)
        rescue
          unless response.status_code == 200
            check_response_status_code(response)
          end
          raise GoogleMapsService::Error::ApiError.new(response), 'Received a malformed response.'
        end

        check_roads_body_error(response, body)

        unless response.status_code == 200
          raise GoogleMapsService::Error::ApiError.new(response)
        end
        return body
      end
Extracts a result from a Roads API HTTP response.