(self)
| 181 | return location.raw["address"]["postcode"] |
| 182 | |
| 183 | def get_current_zipcode(self): |
| 184 | ip_address = self.get_ip_address() |
| 185 | location_data = self.get_location_data(ip_address) |
| 186 | lat, long = location_data["loc"].split(",") |
| 187 | zipcode = self.get_zipcode_from_lat_long(float(lat), float(long)) |
| 188 | return zipcode |
| 189 | |
| 190 | def run(self, input): |
| 191 | assert isinstance(input, self.input_type) |
no test coverage detected