I have a data from GPS in the form 1.('latitude', 'longitude','Timestamp').2.('latitude', 'longitude','Timestamp').3.('latitude', 'longitude','Timestamp').I am changing this data into the below form 'latitude_1', 'longitude_1', 'Timestamp_1', 'latitude_2', 'longitude_2', 'Timestamp_2, Timestamp_2-Timestamp_1.With this format I am training a LinearRegressionWithSGD model of spark where label is Timestamp_2-Timestamp_1 and features are latitude_1, longitude_1, latitude_2, longitude_2.But when I am giving Origin ( latitude and longitude ) and destination ( latitude and longitude ) the results are very bad.Kindly guide me whether this approach is the right approach ? and if not then how to build a prediction model from given data to predict Estimated Time of Arrival.
How to predict ETA using Regression?
machine learning;linear regression;geospatial