Repository navigation
Metro generator: agency-style names and colours for lines and stations - #38
Merged
Merged
Conversation
metro/names.py (python -m metro names <id>, and at the end of every generation run): today's lines keep their agency names, cleaned of GTFS route numbers and capitals; new metro and streetcar lines take colour names in order, skipping today's colours; regional rail is named for the town at its outer end; BRT for the street it runs on most, or its two main streets, or its two ends. New stations are named by dfwt's Namer with the metro's own gazetteer, a new fetch stage (metro/overture.fetch_gazetteer: Overture landmarks whose names say what they are, macrohoods and neighbourhoods with a Wikidata item, cities and towns) and the registry's anchors as landmarks. Hand fixes in <METRO_HOME>/names/<id>/ win. Writes names.csv with every name and why. dfwt/naming.Namer takes other gazetteer files and extra landmarks (DFW's own names are unchanged). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GsUvo7SNZomvEVjWUMuYvF
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is phase 1 of Texas Transit's site parity review (
study/site_parity.md). Until now the generator named each line after its two end centres' cross streets ("Pellicano / George Dieter - Nonap / Mark Twain BRT").Line names and colours (
metro/names.py;python -m metro names <id>, also run at the end of every generation):Station names:
Namer, now with each metro's own gazetteer. The newgazetteerfetch stage (metro/overture.fetch_gazetteer) builds it from Overture:Hand fixes:
<METRO_HOME>/names/<id>/line_names.csvandstation_renames.csvwin over the generated names. Each run writesnames.csvwith every name and the reason for it.dfwt/naming.Namer: now accepts other gazetteer files and extra landmarks. DFW's own names don't change.Tests: 176 pass, including new
NamesTestsand DFW'stest_station_names.Generated by Claude Code