I don't have tools like ArcGIS. I have two LINESTRING
s
LINESTRING(121.5160996 25.0358556,121.5168148 25.0347768,121.5170452 25.0345573)
LINESTRING(121.517053 25.0345682,121.516851 25.0347814,121.5161259 25.0358884)
They are the same MRT route with different directions. Is there any algorithm or module that can merge them to one LINESTRING like the red one in picture?