To get started with, God's Algorithm is not an algorithm. There is no particular way in which you can solve different permutations of cube with that algo.
What creators of god's algo did:
Partitioned the positions into 2,217,093,120 sets of 19,508,428,800 positions each.
Reduced the count of sets we needed to solve to 55,882,296 using symmetry and set covering.
And they wrote a program which used about 35 CPU years to find solutions to all of the positions in each of the 55,882,296 sets.
I hope this gives you a hint about how god's algo work.
What you can do -
Just store the
43,252,003,274,489,856,000 permutations of cube along
with the solutions in a database and then everytime you get a scrambled cube, check in you database for that particular permutation of cube and then get solution. Easy. (Pun intended)
Anyways, here is a link that I found out which may help you - Coset solver source code