As far as I'm aware there is no geocode function in the spatial engine, you should look at an internet based geocode api which you could call from xsjs for example, google offers one such service. With a little googlefu you'll find oodles of examples on how to work with the api, listed one example below.
https://developers.google.com/maps/documentation/geocoding/
How to Geocode an Address in Google Maps Javascript: 13 Steps