I'm trying to use the Mapkit js Geocode function, but I'm not sure how to call this function. Here's my code, I'm getting a null from alert(data). https://developer.apple.com/documentation/mapkitjs/mapkit/geocoder/2973884-lookup
var geocoder = new mapkit.Geocoder({
language: "en-GB",
getsUserLocation: true
});
geocoder.lookup("450 Serra Mall, Stanford, CA USA", getResult);
function getResult(data) {
alert(data);
}