1. paste code to new script (google app script as .gs)
  2. then goto menu tools -> macro -> import -> TravelDistance, press import bottom
  3. so use function in cell C5=TravelDistance( origin_place, destination_place, your_google_API_key)