direction

for path calculation, changed the data type from coordinates to a
direction