code: def geocode(address, required_precision_km=1.):
      
      geocoded = geocoder.google(address)
      precision_km = geocode_confidences[geocoded.confidence]
  
      if precision_km <= required_precision_km:
          (lon, lat) = geocoded.geometry['coordinates']
          return {'lat': lat, 'lon': lon}
      else:
          raise ValueError("Address could not be precisely located")
docs: Identifies the coordinates of an address
  
      :param address:
          the address to be geocoded
      :type value:
          String
      :param required_precision_km:
          the maximum permissible geographic uncertainty for the geocoding
      :type required_precision_km:
          float
  
      :returns:
          dict
  
      :example:
          >>> geocode('1600 Pennsylvania Ave NW, Washington, DC 20500')
          {'lat': 38.89767579999999, 'lon': -77.0364827}