Question: how to calculate the distance in km?
Answer: On your computer, open Google Maps. ... 
Right-click on your starting point.
Choose Measure distance.
Click anywhere on the map to create a path to measure. ... 
Optional: Drag a point or path to move it, or click a point to remove it.
At the bottom, you'll see the total distance in miles (mi) and kilometers (km).