Need some help with custom code

I have a script in old MySql to exactly place a pointer on a google maps position for real estate. It needs to be converted to work with a link from a Wappler project.
I managed to get all but one error out.
Is there anyone out here with the knowledge to get it working?
I have no example available as it is running locally now.