Local-first lead scanner for finding Google Business Profile listings that do not have a website.
- Install dependencies:
npm install- Create
.env.local:
NEXT_PUBLIC_GOOGLE_MAPS_BROWSER_KEY=your_browser_key_here
GOOGLE_PLACES_SERVER_KEY=your_server_key_hereEnable these Google Cloud APIs:
Browser key:
- Restriction: Websites
- APIs: Maps JavaScript API, Places API
- Referrers:
http://localhost:3000/*,http://127.0.0.1:3000/*
Server key:
- Restriction: None for local dev, or IP addresses if you have a stable outbound IP
- APIs: Places API (New)
- Start the app:
npm run devOpen http://localhost:3000/scan.
- Scans are manual only. The app only calls Google Places when you click
Scan This Area. - Results are stored in
data/lead-mapper.sqlite. - Nearby Search (New) currently returns up to 20 places per request and supports
websiteUriin the response field mask.