Using Android Google Map, with input parameters of source, and destination, and start time, how to know where the user would be after four hours in his traveling path. For example, If I start at 6 A.M, where i would be at 10 A.M in the traveling route before I start my journey.
You should read the docs which clearly mention :
The location data available to an Android device includes the current location of the device — pinpointed using a combination of technologies — the direction and method of movement, and whether the device has moved across a predefined geographical boundary, or geofence. Depending upon the needs of your application, you can choose between several ways of working with location data:
- The My Location layer provides a simple way to display a device's location on the map. It does not provide data.
- The Google Play services Location API is recommended for all programmatic requests for location data.
- The LocationSource interface allows you to provide a custom location provider.
The implementation of these concepts of MAPS API can be found here