Trying to reproduce the 'mobile-geolocation' script

Trying to reproduce the ‘mobile-geolocation’ script on the Playwright webpage.

Getting this output:
Imgur: The magic of the Internet

Here is my source code:
Nodejs_Programs/mobile_geolocation.js at master · paulgureghian/Nodejs_Programs · GitHub

I tried different ‘text’ strings, made sure Google maps was configured correctly, and added an emulated iphone11 device in Chrome dev tools.