It is actually implemented on that page. Use a copy of that page and only change the api key so it works on your server to see how it works.
To do it yourself you would use code like:
onClick="wagmp_map_1(document.getElementById('fromaddress').value+', '+document.getElementById('fromcity').value)"
with the updated functions from that example this would work