(self, lat, long)
| 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() |