xsanda / GeoGuessr Path Logger

Published:

Version: 0.2.4+041765a updated

Summary: Add a trace of where you have been to GeoGuessr’s results screen

License: MIT

GeoGuessr Path Logger

Have you ever wondered how your GeoGuessr exploring matched up to the map? When you’ve finished a round/a game, this will add a trace of your navigation to the map, in addition to the pin. No changes are visible while playing, only on the screen showing the correct location.

This is a user script, for use with TamperMonkey for Chrome/GreaseMonkey for Firefox. Only install scripts you trust, and read the source code to verify the script is not doing anything unexpected.

This script uses localStorage to store your path history. This is stored as an encoded polyline to reduce storage requirements (1 m precision for each click). Games older than 1 week (from the point the most recent round was completed) are cleared from memory when you next visit the GeoGuessr website.

The recording of movement is done by the new events injected into the Google Maps API’s Map and StreetViewPanorama classes, through replacing their constructors. The GeoGuessr UI is queried to check the game state.

Fragility

This script has been tested on the latest version of Google Chrome and Firefox on Mac. Please let me know by Reddit or email if it does not work for your setup.

This script is dependent on the structure of GeoGuessr, and so if the site significantly rebuilt, it will stop working.

Example image

The red lines represent the exploration paths.

Example

Changelog

0.2.4 (2020-07-01): Fix missing lines when the results page is reloaded.
0.2.3 (2020-07-01): Add a global constant for setting how long to keep routes for, and change to keeping for 1 week.
0.2.2 (2020-06-28): Fix failing to determine the round number on the results page.
0.2.1 (2020-06-28): Reddit release with docs
0.2.0 (2020-06-28): Add Chrome support (use MutationObserver instead of onbeforescriptexecute)
0.1.0 (2020-06-27): Build for Firefox

Rating: 0