parsing almost there, need to implement distance calculations