def is_station_or_line(fid, shape, props):
    """
    Returns true if the given (line or polygon from way) feature is a station
    or transit line.
    """

    railway = props.get('railway')
    return railway in ('subway', 'light_rail', 'tram', 'rail')