You can not create a kml file in BC through webapps. Modules do not work in other file types and you do not have server code access to generate a file type of results.
You need to use the google API and do this yourself or you can just use this:
And embed it into a custom field. My Maps