Multimap have recently released a really good REST API for geocoding, getting directions etc. Its particularly good for geocoding UK postcodes down to street level (which google doesnt do in the UK currently). This data can then be plugged into the gmaps javascript API. Its free for public use not sure about anything commercial.