diff --git a/lib/google_directions.rb b/lib/google_directions.rb index 12fa114..a695ad0 100644 --- a/lib/google_directions.rb +++ b/lib/google_directions.rb @@ -69,7 +69,7 @@ def distance_in_miles distance_in_miles = 0 else meters = distance - distance_in_miles = (meters.to_f / 1610.22).round + distance_in_miles = (meters.to_f / 1610.22).round(2) distance_in_miles end end