!pip install geocoder
Collecting geocoder
  Downloading geocoder-1.16.1-py2.py3-none-any.whl (64kB)
    100% |████████████████████████████████| 71kB 2.2MB/s 
Requirement already satisfied (use --upgrade to upgrade): requests in /srv/paws/lib/python3.4/site-packages (from geocoder)
Requirement already satisfied (use --upgrade to upgrade): click in /srv/paws/lib/python3.4/site-packages (from geocoder)
Collecting ratelim (from geocoder)
  Downloading ratelim-0.1.6-py2.py3-none-any.whl
Requirement already satisfied (use --upgrade to upgrade): six in /srv/paws/lib/python3.4/site-packages (from geocoder)
Requirement already satisfied (use --upgrade to upgrade): decorator in /srv/paws/lib/python3.4/site-packages (from ratelim->geocoder)
Installing collected packages: ratelim, geocoder
Successfully installed geocoder-1.16.1 ratelim-0.1.6
import geocoder
g = geocoder.google('خ چهارباغ عباسی، ابتدای خ آمادگاه اصفهان ایران')
g.latlng
[32.6503625, 51.6716838]
 
['GEOCODE_QUERY_URL',
 'USER_AGENT',
 '__class__',
 '__delattr__',
 '__dict__',
 '__dir__',
 '__doc__',
 '__eq__',
 '__format__',
 '__ge__',
 '__getattribute__',
 '__gt__',
 '__hash__',
 '__init__',
 '__le__',
 '__lt__',
 '__module__',
 '__ne__',
 '__new__',
 '__reduce__',
 '__reduce_ex__',
 '__repr__',
 '__setattr__',
 '__sizeof__',
 '__str__',
 '__subclasshook__',
 '__weakref__',
 'add_signature',
 'api_key',
 'client_id',
 'geocode',
 'get_data',
 'private_key',
 'proxy',
 'reverse_geocode',
 'set_proxy']
test = g.geocode('خ چهارباغ عباسی، ابتدای خ آمادگاه اصفهان ایران')
---------------------------------------------------------------------------
GeocoderError                             Traceback (most recent call last)
<ipython-input-7-6f467620ed9a> in <module>()
----> 1 test = g.geocode('خ چهارباغ عباسی، ابتدای خ آمادگاه اصفهان ایران')

/srv/paws/lib/python3.4/site-packages/pygeocoder.py in geocode(self, address, sensor, bounds, region, language, components)
    125 
    126         if self is not None:
--> 127             return GeocoderResult(self.get_data(params=params))
    128         else:
    129             return GeocoderResult(Geocoder.get_data(params=params))

/srv/paws/lib/python3.4/site-packages/pygeocoder.py in get_data(self, params)
    210 
    211         if response_json['status'] != GeocoderError.G_GEO_OK:
--> 212             raise GeocoderError(response_json['status'], response.url)
    213         return response_json['results']
    214 

GeocoderError: Error REQUEST_DENIED
Query: https://maps.google.com/maps/api/geocode/json?address=%D8%AE+%DA%86%D9%87%D8%A7%D8%B1%D8%A8%D8%A7%D8%BA+%D8%B9%D8%A8%D8%A7%D8%B3%DB%8C%D8%8C+%D8%A7%D8%A8%D8%AA%D8%AF%D8%A7%DB%8C+%D8%AE+%D8%A2%D9%85%D8%A7%D8%AF%DA%AF%D8%A7%D9%87+%D8%A7%D8%B5%D9%81%D9%87%D8%A7%D9%86+%D8%A7%DB%8C%D8%B1%D8%A7%D9%86&bounds=&components=&sensor=false&region=&language=&key=google