josmarcristello/GeoKMLAnalyzer

IndexError: list index out of range GeoKMLAnalyzer\src\functions.py", line 148

Opened this issue · 1 comments

in get_elevation_data
Manually add the last point from the last set of points

elev_list.append(js_str['results'][-1]['elevation'])
lat_list.append(js_str['results'][-1]['location']['lat'])
lon_list.append(js_str['results'][-1]['location']['lng'])

It is tripping over the -1 as out of range

shouldn't it be response_len instead of -1?

no - response_len also does not work