Read gps list and encode

only finish encode part