from typing import List


def __get_geojson_feature_dict(way_id, coords: List[tuple], db: int, gvi: float) -> dict:
    """Returns a dictionary with GeoJSON schema and geometry based on the given geometry.
    The returned dictionary can be used as a feature inside a GeoJSON feature collection.
    """
    feature = {
        'type': 'Feature',
        'id': way_id,
        'properties': {
            'db': db,
            'gvi': gvi
        },
        'geometry': {
            'coordinates': coords,
            'type': 'LineString'
        }
    }
    return feature