Hi Dean, the magicKey is generated as part of the output of the suggest request, and is basically just a key we generate to link a suggestion to a record in the data used to build the locator:
dojo_request_script_callbacks.dojo_request_script70(
{"suggestions":[
{"text":"1 WEST PORTLAND RD, SACKVILLE NSW 2756","magicKey":"GANSW705879336","isCollection":false
},
{"text":"34 WEST PORTLAND RD, SACKVILLE NSW 2756","magicKey":"GANSW706501063","isCollection":false
},
{"text":"74 WEST PORTLAND RD, SACKVILLE NSW 2756","magicKey":"GANSW706501060","isCollection":false
},
{"text":"93 WEST PORTLAND RD, SACKVILLE NSW 2756","magicKey":"GANSW705892850","isCollection":false
},
{"text":"96 WEST PORTLAND RD, SACKVILLE NSW 2756","magicKey":"GANSW706524225","isCollection":false
}]
});
So when if you generate suggestions and choose one to use for search (findAddressCandidates), you can pull the magicKey and matching input text from the suggestion you choose.