Multi reference in custom code script

Hi everyone,

I have events CMS with multiple locations stores in it and I now create schema.org for SEO, but I don’t know how to reference to data inside the locations like name, address and so on.

How can I do it?

Thank you.