Update Jest and tests
Move constants to separate file Fix loop compatibility
This commit is contained in:
26
app/utils/library-locations.ts
Normal file
26
app/utils/library-locations.ts
Normal file
@ -0,0 +1,26 @@
|
||||
// Library branch locations with approximate coordinates
|
||||
// Shared between API route and tests
|
||||
|
||||
export const LIBRARY_LOCATIONS: Record<string, { lat: number; lng: number }> = {
|
||||
'Beckwourth': { lat: 32.7157, lng: -117.1611 },
|
||||
'Benjamin': { lat: 32.8328, lng: -117.2713 },
|
||||
'Balboa': { lat: 32.7330, lng: -117.1430 },
|
||||
'Carmel Mountain': { lat: 32.9286, lng: -117.1311 },
|
||||
'Carmel Valley': { lat: 32.9340, lng: -117.2340 },
|
||||
'Central Library': { lat: 32.7216, lng: -117.1574 },
|
||||
'City Heights': { lat: 32.7411, lng: -117.1045 },
|
||||
'Clairemont': { lat: 32.8328, lng: -117.2050 },
|
||||
'College-Rolando': { lat: 32.7482, lng: -117.0704 },
|
||||
'Kensington': { lat: 32.7644, lng: -117.1164 },
|
||||
'La Jolla': { lat: 32.8344, lng: -117.2544 },
|
||||
'Linda Vista': { lat: 32.7714, lng: -117.1789 },
|
||||
'Logan Heights': { lat: 32.7030, lng: -117.1289 },
|
||||
'Malcolm X': { lat: 32.7089, lng: -117.1242 },
|
||||
'Mission Hills': { lat: 32.7469, lng: -117.1978 },
|
||||
'Oak Park': { lat: 32.7328, lng: -117.1461 },
|
||||
'Paradise Hills': { lat: 32.6747, lng: -117.0742 },
|
||||
'Rancho Bernardo': { lat: 33.0200, lng: -117.1156 },
|
||||
'Rancho Penasquitos': { lat: 32.958034, lng: -117.121975 },
|
||||
'San Ysidro': { lat: 32.5592, lng: -117.0431 },
|
||||
'Skyline Hills': { lat: 32.6781, lng: -117.0200 },
|
||||
};
|
||||
Reference in New Issue
Block a user