the rest-client gem can actually pass in parameters in a cleaner manner if you don't want to do this massive string interpolation:

```ruby
result = RestClient.get 'http://maps.googleapis.com/maps/api/distancematrix/json', {params: {origins: origin, destinations: destination, sensor: false}}
```

and to make this really Ruby Object-Orientated, set the API endpoint as a Class constant:

```ruby
class GoogleDistance
  BASE_API = "http://maps.googleapis.com/maps/api/distancematrix/json"
  ...
  RestClient.get BASE_API ...
end
```