from typing import List


def station_by_name(station_list: List[dict], station_name: str) -> int:
    """Returns the current index of a station. The starting point is the name of the station. If no station with this
    name exists, -1 is returned.
    """

    for index, station in enumerate(station_list):
        if station['name'] == station_name:
            return index

    return -1