geopy/geopy — pull request #32 by crccheck (2014-01-19 18:51:25+00:00)
Title: add support for the 'components' param of Google Maps v3

This PR adds support for the `components` parameter.

#### Testing

```python
from geopy import geocoders
g = geocoders.GoogleV3()

g.geocode('santa cruz')
# GoogleV3.geocode: https://maps.googleapis.com/maps/api/geocode/json?sensor=false&address=santa+cruz
# (u'Santa Cruz, CA, USA', (36.9741171, -122.0307963))

g.geocode('santa cruz', components={'country': 'ES'})
# GoogleV3.geocode: https://maps.googleapis.com/maps/api/geocode/json?sensor=false&components=country%3AES&address=santa+cruz
# (u'Santa Cruz de Tenerife, Spain', (28.4636296, -16.2518467))
```

docs:
https://developers.google.com/maps/documentation/geocoding/#ComponentFiltering