code: def address_to_coords(self, address):
          
  
          base_coords = self.BASE_COORDS[self.region]
          get_cord = self.COORD_SERVERS[self.region]
          url_options = {
              "q": address,
              "lang": "eng",
              "origin": "livemap",
              "lat": base_coords["lat"],
              "lon": base_coords["lon"]
          }
  
          response = requests.get(self.WAZE_URL + get_cord, params=url_options, headers=self.HEADERS)
          for response_json in response.json():
              if response_json.get('city'):
                  lat = response_json['location']['lat']
                  lon = response_json['location']['lon']
                  bounds = response_json['bounds']  # sometimes the coords don't match up
                  if bounds is not None:
                      bounds['top'], bounds['bottom'] = max(bounds['top'], bounds['bottom']), min(bounds['top'], bounds['bottom'])
                      bounds['left'], bounds['right'] = min(bounds['left'], bounds['right']), max(bounds['left'], bounds['right'])
                  else:
                      bounds = {}
                  return {"lat": lat, "lon": lon, "bounds": bounds}
          raise WRCError("Cannot get coords for %s" % address)
docs: Convert address to coordinates