Commit e6222a9
tim
Address PR feedback: simplify Hessen coordinate extraction
- Remove redundant URL validation (already in XPath selector)
- Add type annotation to _extract_coords_from_osm_url()
- Remove mlat/mlon and bbox fallbacks (never used)
- Remove link fallback (iframe always present with coordinates)
- Add example URL for placeholder coordinates (-1.0, -1.0)
- Replace broad Exception with specific ValueError/IndexError
- Update README with geolocation statistics (1,863/2,054 schools)
Analysis confirmed Hessen iframes always use 'marker' parameter format.
The mlat/mlon format only appears in links, which are not needed.1 parent 57a7553 commit e6222a9
2 files changed
Lines changed: 7 additions & 32 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
| 56 | + | |
| 57 | + | |
61 | 58 | | |
62 | 59 | | |
63 | | - | |
| 60 | + | |
64 | 61 | | |
65 | 62 | | |
66 | 63 | | |
67 | 64 | | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
| 65 | + | |
84 | 66 | | |
85 | 67 | | |
86 | 68 | | |
| |||
125 | 107 | | |
126 | 108 | | |
127 | 109 | | |
128 | | - | |
| 110 | + | |
129 | 111 | | |
130 | | - | |
131 | | - | |
132 | 112 | | |
133 | 113 | | |
134 | 114 | | |
135 | 115 | | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | 116 | | |
| 117 | + | |
143 | 118 | | |
144 | 119 | | |
145 | 120 | | |
| |||
0 commit comments