Trace route on map

How I can trace route on map ? ,
from locationFrom to locatotionTo and return the distance in Km ?

You can use one of web services available online.
They differ in their capabities, e.g. some of them can calculate routes, time and distance taking into account current traffic state.

One service I have used personally for calculating journey time and distance is Google Directions API:

Note that it is a paid service.

Some other services are based on OpenStreetMaps map object data, see Routing - OpenStreetMap Wiki

1 Like