xsanda / GeoGuessr Path Logger - beta

Published:

Version: 0.4.8+4b2d9a7 updated

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

License: MIT

Libraries Used

Beta version: this version with a remote server is still pre-release. The stable version is available here.

GeoGuessr Path Logger, with a server

Have you ever wondered how your GeoGuessr exploring matched up to the map? How your exploring compared to other people’s? 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. When you finish the game, you can see other people’s traces too.

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.

In challenge games, the trace is also sent to a central log after every round. These are publicly available for everyone else with the extension installed, playing the same challenge.

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.4.x (2020-12-30): Show other participants’ moves (beta).
0.3.3 (2020-12-26): Refactor to move Google Maps handling to a library.
0.3.2 (2020-10-15): Repush to force update.
0.3.1 (2020-10-09): Fix breaking typo.
0.3.0 (2020-10-09): Add support for the country streak game.
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