Emulate geolocation
Capture Where am I?, a page that maps whatever navigator.geolocation reports, with the browser placed at Wall Drug, South Dakota, saved to whereami.png.
zshot -f whereami.png \
-x 880 -y 700 \
--wait-for js:whereami:ready \
--emulate-geolocation "geo:43.993184992771454,-102.24168045794855" \
https://zshot-cli.com/example_assets/whereami/{
"url": "https://zshot-cli.com/example_assets/whereami/",
"output_type": "png",
"browser_width": 880,
"browser_height": 700,
"emulate_geolocation": "geo:43.993184992771454,-102.24168045794855",
"wait_for": "js:whereami:ready"
}curl -X POST http://127.0.0.1:3000/ \
-H "Content-Type: application/json" \
-d '{"url":"https://zshot-cli.com/example_assets/whereami/","output_type":"png","browser_width":880,"browser_height":700,"emulate_geolocation":"geo:43.993184992771454,-102.24168045794855","wait_for":"js:whereami:ready"}' \
-o whereami.png