turns directions into points array
returns array of coordinates