Repository navigation
Use Google walking directions for walking-distance schools - #6
Merged
Merged
Conversation
Until now a walking-distance school (Drayton Manor) compared the walking cut-off with your straight-line distance, which is always shorter, so homes looked closer than they are. When an address is set the page asks Google's Distance Matrix (walking) for the route from home to each walking-distance school, once per address, and uses that exact distance for the verdicts, charts and wording. Near misses still read "too close to call". The map's walking areas are unchanged. The About page and README say where walking distances come from, and that Google sees the chosen location. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://polite-forest-0ca6e1603-6.westeurope.3.azurestaticapps.net |
…final - Every school's details carry an "Estimates only" note under the year line: figures come from past offers and our own distance measurements, and Ealing Council's admissions decisions are final - Same message in the list's small print and the About page - Narrow cut-off charts label only the chosen year so labels don't collide Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://polite-forest-0ca6e1603-6.westeurope.3.azurestaticapps.net |
Same facts (how to read the mini charts, where figures come from, that they're estimates and the council decides), without the stacked warnings. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://polite-forest-0ca6e1603-6.westeurope.3.azurestaticapps.net |
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.
Summary
Drayton Manor gives places by walking distance. Until now the app compared that walking cut-off with your straight-line distance, which is always shorter, so homes looked closer than they really are on the charts and in the verdicts.
When an address is set, the page now asks Google Maps for the walking route from home to each walking-distance school, and uses that exact distance everywhere:
Details
intakePathoutlines, or GraphHopper once it's run.Test plan
yarn buildThree test homes for Drayton Manor:
One Distance Matrix request per distinct address; revisiting an address reuses the stored answer.
🤖 Generated with Claude Code