Mapping algorithms to judge distance and directions in Texas