def waypoint(waypoint)
      if waypoint.kind_of?(String)
        return waypoint
      end
      return GoogleMapsService::Convert.latlng(waypoint)
    end
def waypoint(waypoint)
      if waypoint.kind_of?(String)
        return waypoint
      end
      return GoogleMapsService::Convert.latlng(waypoint)
    end
Converts a waypoints to the format expected by the Google Maps server.

 Accept two representation of waypoint:

 1. String: Name of place or comma-separated lat/lon pair.
 2. Hash/Array: Lat/lon pair.

 @param [Array, String, Hash] waypoint Path.

 @return [String]