get the line distance between two different place in the map