Added logic to handle values given from Google API, including:

1.) Handling for kms and m to convert m to kms when m.
2.) Handling of number formatting.

Tested script works 100%.