Geoguessr Map-Making Auto-Tag

tag by date and address

当前为 2023-09-24 提交的版本,查看 最新版本

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

作者
kakageo
评分
0 0 0
版本
2.0
创建于
2023-09-23
更新于
2023-09-24
大小
8.5 KB
许可证
MIT
适用于

Installation: First, you need to install the Tampermonkey extension in your browser. You can find it in the Chrome Web Store for Google Chrome, or in the Add-ons Manager for Firefox.

Adding the Script: Once Tampermonkey is installed, go to the Tampermonkey Dashboard and click on the ‘+’ tab to create a new script. Copy and paste the provided script into the editor and save it.

Usage: This script adds several buttons with different labels to your webpage. When you click these buttons, the script processes JSON-formatted data from your clipboard, retrieves information corresponding to the labels, and adds these labels to the JSON data in your clipboard before outputting it back to your clipboard. To get JSON-formatted data, click on the Export button on Map-Making, select the coordinates data you want to process, and click on the Copy button.

Please note:

If a coordinate has a panoId, the script retrieves metadata and address information for that panoId from the Google Street View API.
If a coordinate doesn’t have a panoId but has lat and lng, the script searches for metadata and address information based on these coordinates with a default search radius of 50 meters.
The metadata includes ‘year’ and ‘type’ labels, and address information includes ‘country’, ‘subdivision’, and ‘locality’ labels.

The script processes coordinates in chunks of 1000 at a time to manage memory usage efficiently. Once all coordinates are processed, the updated data is copied back to your clipboard in JSON format, and an alert message “New JSON data has been copied to the clipboard!” is displayed.

Additionally, this script requires an API key for the Google Street View API. You’ll be prompted to enter this key when you run the script for the first time. The key is then stored for future use.

Remember that this script makes requests to Google’s API, which may be rate-limited. If you’re processing a large amount of data, make sure that the total amount of data does not exceed Google’s set quota.