This project retrieves geolocation data for a list of addresses using a web API and stores the results in an SQLite database. It then converts that data into a JavaScript file which can be visualized on a map using where.html.
geoload.py: Reads addresses fromwhere.data, fetches their geolocation from the OpenGeo API, and saves responses intoopengeo.sqlite.geodump.py: Extracts geolocation data fromopengeo.sqliteand createswhere.jsfor map visualization.where.html: Displays the geolocation points on a map (requires internet access for Leaflet or similar libraries).where.data: A plain text file containing one address per line (sample input).where.js: Generated output file containing coordinates and location names.
Make sure you have:
- Python 3.x
- Internet access (for retrieving data via API)
These are standard libraries; no installation required:
urllib, sqlite3, json, ssl, codecs, time