File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ The Python prototype in `src/*.py` serves as the reference implementation:
7575
7676| Rule | Limit |
7777| ------| -------|
78- | File length (code) | 500 lines max |
78+ | File length (code) | 500 lines max (NEVER remove comments to reduce - REFACTOR and SPLIT the file) |
7979| File length (tests) | 1000 lines max |
8080| Function length | 50 lines max |
8181| Line length | 100 chars max |
Original file line number Diff line number Diff line change 66 */
77
88import countries from 'i18n-iso-countries'
9+ import en from 'i18n-iso-countries/langs/en.json'
910import { generatePlaceLookupCacheKey } from '../caching/key'
1011import type { ResponseCache } from '../caching/types'
12+
1113import { extractGoogleMapsCoords } from '../extraction/heuristics/url-classifier'
1214import { guardedFetch , type HttpResponse } from '../http'
15+
1316import {
1417 type ClassifiedActivity ,
1518 formatLocation ,
@@ -19,6 +22,9 @@ import {
1922 type Result
2023} from '../types'
2124
25+ // Register English locale for country name lookups
26+ countries . registerLocale ( en )
27+
2228const PLACES_TEXT_SEARCH_API = 'https://maps.googleapis.com/maps/api/place/textsearch/json'
2329const GEOCODING_API = 'https://maps.googleapis.com/maps/api/geocode/json'
2430
You can’t perform that action at this time.
0 commit comments