MCPcopy Create free account
hub / github.com/billxbf/ReWOO / get_zipcode_from_lat_long

Method get_zipcode_from_lat_long

nodes/Worker.py:178–181  ·  view source on GitHub ↗
(self, lat, long)

Source from the content-addressed store, hash-verified

176 return data
177
178 def get_zipcode_from_lat_long(self, lat, long):
179 geolocator = Nominatim(user_agent="zipcode_locator")
180 location = geolocator.reverse((lat, long))
181 return location.raw["address"]["postcode"]
182
183 def get_current_zipcode(self):
184 ip_address = self.get_ip_address()

Callers 1

get_current_zipcodeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected