Skip to content

Commit 25a8e97

Browse files
committed
nice params
1 parent a878128 commit 25a8e97

195 files changed

Lines changed: 55759 additions & 42111 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

api/compile.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -449,8 +449,8 @@ function transformLocation(
449449
id: location.id,
450450
attributes: {
451451
name: location.name,
452-
latitude: location.latitude || null,
453-
longitude: location.longitude || null,
452+
lat: location.lat || null,
453+
lng: location.lng || null,
454454
region: location.region || null,
455455
address: location.address || null,
456456
googleMapsLink: location.googleMapsLink || null,
@@ -1489,7 +1489,7 @@ export function printData(data: AggregateData): void {
14891489
for (const [id, location] of data.locations) {
14901490
console.log(`[${id}] ${location.name}`);
14911491
console.log(` Region: ${location.region}`);
1492-
console.log(` Coordinates: ${location.latitude}, ${location.longitude}`);
1492+
console.log(` Coordinates: ${location.lat}, ${location.lng}`);
14931493
if (location.address) {
14941494
console.log(` Address: ${location.address.street}, ${location.address.city}, ${location.address.state} ${location.address.zip}`);
14951495
}

api/interfaces/location.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
export interface Location {
22
name: string;
3-
latitude: number | null;
4-
longitude: number | null;
3+
lat: number | null;
4+
lng: number | null;
55
region: string | null;
66
address: Address | null;
77
googleMapsLink: string | null;
@@ -19,8 +19,8 @@ export interface JSONAPILocation {
1919
id: string;
2020
attributes: {
2121
name: string;
22-
latitude: number | null;
23-
longitude: number | null;
22+
lat: number | null;
23+
lng: number | null;
2424
region: string | null;
2525
address: Address | null;
2626
googleMapsLink: string | null;

api/seeds/locations/001_skyline-gate.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import type { Location } from "../../interfaces/location";
33
export const data = {
44
name: "Skyline Gate",
55
region: "Reinhardt Redwood Regional Park",
6-
latitude: 37.831606,
7-
longitude: -122.185388,
6+
lat: 37.831606,
7+
lng: -122.185388,
88
address: {
99
street: "8490 Skyline Blvd",
1010
city: "Oakland",

api/seeds/locations/002_serpentine-praire.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import type { Location } from "../../interfaces/location";
33
export const data = {
44
"name": "Serpentine Prairie",
55
"region": "Reinhardt Redwood Regional Park",
6-
latitude: 37.803480,
7-
longitude: -122.176789,
6+
"lat": 37.803480,
7+
"lng": -122.176789,
88
"address": {
99
"street": "11500 Skyline Blvd",
1010
"city": "Oakland",

api/seeds/locations/003_selby-trailhead.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import type { Location } from "../../interfaces/location";
33
export const data = {
44
"name": "Selby Trailhead",
55
"region": "Tilden Regional Park",
6-
latitude: 37.904384,
7-
longitude: -122.267624,
6+
lat: 37.904384,
7+
lng: -122.267624,
88
"address": {
99
"street": "551 Wildcat Canyon Rd",
1010
"city": "Kensington",

api/seeds/locations/004_proctor-staging.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import type { Location } from "../../interfaces/location";
33
export const data = {
44
"name": "Proctor Staging Area",
55
"region": "Chabot Regional Park",
6-
latitude: 37.721359,
7-
longitude: -122.076503,
6+
lat: 37.721359,
7+
lng: -122.076503,
88
"address": {
99
"street": "Redwood Rd",
1010
"city": "Castro Valley",

api/seeds/locations/005_lafayette-community-park.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import type { Location } from "../../interfaces/location";
33
export const data = {
44
"name": "Lafayette Community Park",
55
"region": "Las Trampas Regional Wilderness",
6-
latitude: 37.860661,
7-
longitude: -122.101127,
6+
lat: 37.860661,
7+
lng: -122.101127,
88
"address": {
99
"street": "480 St Marys Rd",
1010
"city": "Lafayette",

api/seeds/locations/006_bear-creek-ebrpd.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import type { Location } from "../../interfaces/location";
33
export const data = {
44
"name": "Bear Creek Staging (EPRPD)",
55
"region": "Briones Regional Park",
6-
latitude: 37.927396,
7-
longitude: -122.158356,
6+
lat: 37.927396,
7+
lng: -122.158356,
88
"address": {
99
"street": "1611 Bear Creek Rd",
1010
"city": "Lafayette",

api/seeds/locations/007_lone-oak.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import type { Location } from "../../interfaces/location";
33
export const data = {
44
"name": "Lone Oak Trailhead",
55
"region": "Tilden Regional Park",
6-
latitude: 37.905756,
7-
longitude: -122.261288,
6+
lat: 37.905756,
7+
lng: -122.261288,
88
"address": {
99
"street": "199 Loop Rd",
1010
"city": "Kensington",

api/seeds/locations/008_mill-valley-depot.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import type { Location } from "../../interfaces/location";
33
export const data = {
44
"name": "Mill Valley Depot",
55
"region": "Mt. Tamalpais",
6-
latitude: 37.906024,
7-
longitude: -122.548075,
6+
lat: 37.906024,
7+
lng: -122.548075,
88
"address": {
99
"street": "87 Throckmorton Ave",
1010
"city": "Mill Valley",

0 commit comments

Comments
 (0)