def straight_line_from_points(a, b):
    """
    Generate a geojson LineString object from two geojson points.

    Parameters
    ----------
    a : geojson
        Point A
    b : geojson
        Point B

    Returns
    -------
    line : geojson
        A geojson LineString object.

    """
    line = {
        'type': 'Feature',
        'geometry': {
            'type': 'LineString',
            'coordinates': [
                (
                    a['geometry']['coordinates'][0],
                    a['geometry']['coordinates'][1]
                ),
                (
                    b['geometry']['coordinates'][0],
                    b['geometry']['coordinates'][1]
                ),
            ]
        },
        'properties': {
            'id': 'terrain path'
        }
    }

    return line