hyperion/fetch/postcode.py
async def fetch_postcodes_from_coordinates(lat: float, long: float) -> Optional[List[Postcode]]:
    """
    Gets a postcode object from the lat and long.
    :param lat: The latitude to look up.
    :param long: The longitude to look up.
    :return: The mapping corresponding to the lat and long or none if the postcode does not exist.
    :raises ApiError: When there was an error connecting to the API.
    :raises CircuitBreakerError: When the circuit breaker is open.
    """
    postcode_lookup = f"/postcodes?lat={lat}&lon={long}"
    return await _get_postcode_from_url(postcode_lookup)
async def fetch_postcodes_from_coordinates(lat: float, long: float) -> Optional[List[Postcode]]:
    """
    Gets a postcode object from the lat and long.
    :param lat: The latitude to look up.
    :param long: The longitude to look up.
    :return: The mapping corresponding to the lat and long or none if the postcode does not exist.
    :raises ApiError: When there was an error connecting to the API.
    :raises CircuitBreakerError: When the circuit breaker is open.
    """
    postcode_lookup = f"/postcodes?lat={lat}&lon={long}"
    return await _get_postcode_from_url(postcode_lookup)
Gets a postcode object from the lat and long.
    :param lat: The latitude to look up.
    :param long: The longitude to look up.
    :return: The mapping corresponding to the lat and long or none if the postcode does not exist.
    :raises ApiError: When there was an error connecting to the API.
    :raises CircuitBreakerError: When the circuit breaker is open.