def get_shape_points2(cur, shape_id):
cur.execute('''<STR_LIT>''', (shape_id,))<EOL>shape_points = {'<STR_LIT>': [], '<STR_LIT>':  [], '<STR_LIT>': [], '<STR_LIT:d>': []}<EOL>for row in cur:<EOL><INDENT>shape_points['<STR_LIT>'].append(row[<NUM_LIT:0>])<EOL>shape_points['<STR_LIT>'].append(row[<NUM_LIT:1>])<EOL>shape_points['<STR_LIT>'].append(row[<NUM_LIT:2>])<EOL>shape_points['<STR_LIT:d>'].append(row[<NUM_LIT:3>])<EOL><DEDENT>return shape_points<EOL>
Given a shape_id, return its shape-sequence (as a dict of lists).
get_shape_points function returns them as a list of dicts

Parameters
----------
cur: sqlite3.Cursor
    cursor to a GTFS database
shape_id: str
    id of the route

Returns
-------
shape_points: dict of lists
    dict contains keys 'seq', 'lat', 'lon', and 'd'(istance) of the shape