How clenildo96/wme-scripts works
WME Postos ANP is a Tampermonkey userscript that brings official Brazilian fuel-station data into Waze Map Editor. The editor starts the script, which initializes the WME SDK and provides a sidebar search workflow: request ANP pages, process station records, draw georeferenced stations on a map layer, and report stations without coordinates. The script also documents a draggable station detail card, layer visibility control, and address copying. The single core file is only partially excerpted, so component boundaries and links are limited to evidenced behavior and README-described capabilities.
Main entry points: WME-Postos-ANP.user.js ANP userscript
Components 11
WME interface
- Search sidebar
WME Postos ANP/WME-Postos-ANP.user.js - Station detail card
WME Postos ANP/WME-Postos-ANP.user.js - Address copying
WME Postos ANP/WME-Postos-ANP.user.js
Search and processing
- ANP userscript
WME Postos ANP/WME-Postos-ANP.user.js - Cached API requests
WME Postos ANP/WME-Postos-ANP.user.js - Station processing
WME Postos ANP/WME-Postos-ANP.user.js
Map and reporting
- Station map layer
WME Postos ANP/WME-Postos-ANP.user.js - Layer visibility
WME Postos ANP/WME-Postos-ANP.user.js - Missing-coordinate report
WME Postos ANP/WME-Postos-ANP.user.js
Other components
- Waze editor
- ANP data API
Connections 10
- Waze editor → ANP userscript: hosts
- ANP userscript → Search sidebar: registers
WME Postos ANP/WME-Postos-ANP.user.js - Search sidebar → Cached API requests: starts search
WME Postos ANP/WME-Postos-ANP.user.js - Cached API requests → ANP data API: fetches pages
WME Postos ANP/WME-Postos-ANP.user.js - Cached API requests → Station processing: returns records
WME Postos ANP/WME-Postos-ANP.user.js - Station processing → Station map layer: adds features
WME Postos ANP/WME-Postos-ANP.user.js - ANP userscript → Layer visibility: registers checkbox
WME Postos ANP/WME-Postos-ANP.user.js - Station processing → Missing-coordinate report: updates report
WME Postos ANP/WME-Postos-ANP.user.js - Station map layer → Station detail card: shows station details
WME Postos ANP/WME-Postos-ANP.user.js - Missing-coordinate report → Address copying: copies address
WME Postos ANP/WME-Postos-ANP.user.js