import requests


def get_geolocation(ip_address):
    """Return gelociaton of an IP address."""
    response = requests.get(f'https://ipinfo.io/{ip_address}')
    data = response.json()
    coords = [float(coord) for coord in data['loc'].split(',')]

    return coords