i am providing lat and log values for every 2 or 3 kms but the route is drawn is a road map while the lat and log are of a train track.Any help would be appreciated

Thanxs in advance