Skip to content

Conversation

@tlangs
Copy link

@tlangs tlangs commented Jul 6, 2025

Took a stab at creating a SQLite database from the LTS data generated via @sckilcoyne's tool. I also created a python ETL tool, database/load_into_sqlite.py, to take the CSV (and additional OSM Node data) and load it into a DB. For Boston, Cambridge, Somerville, Brookline, Chelsea, Everett, and Milton, the DB size is only 44mb, which about an order of magnitude smaller than the raw data. Plus, being able to query the data via SQL makes it really easy to interact with the data programmatically.

To that point, I've created a little script at geojson/geojson_from_ways.py that leverages the new SQLite database. It can be used to create LTS-annotated GeoJSON for a JSON list of OSM Ways. It's really useful for route generation!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants