Since the directions google map api returns the drivind distance and time between origin and destinations. Now If I have to compare the time and distance value in java ,how can we do it. eg : Distance1= 22km Distance2= .98km Time1= 1hour 2 min Time2 = 3 min
Now if I have to compare the time and distance string which is greater ,how we can do it?